summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-20 23:34:40 +0000
committerTim Potter <tpot@samba.org>2001-10-20 23:34:40 +0000
commit7cd889f566ebe352721943e53a055db5b817f12f (patch)
tree1e58956a4364719e01a683a7bcf1b1c20b28c427 /source3/lib/util_sock.c
parent88b55f47b4914f7d390939e4394ec3edd42be91f (diff)
downloadsamba-7cd889f566ebe352721943e53a055db5b817f12f.tar.gz
samba-7cd889f566ebe352721943e53a055db5b817f12f.tar.bz2
samba-7cd889f566ebe352721943e53a055db5b817f12f.zip
Converted a bunch of 0x85 constants to SMBkeepalive.
(This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e)
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 5979cd8b5a..681bc3065d 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -396,7 +396,7 @@ BOOL send_keepalive(int client)
{
unsigned char buf[4];
- buf[0] = 0x85;
+ buf[0] = SMBkeepalive;
buf[1] = buf[2] = buf[3] = 0;
return(write_socket_data(client,(char *)buf,4) == 4);
@@ -592,7 +592,7 @@ static ssize_t read_smb_length_return_keepalive(int fd,char *inbuf,unsigned int
len = smb_len(inbuf);
msg_type = CVAL(inbuf,0);
- if (msg_type == 0x85)
+ if (msg_type == SMBkeepalive)
DEBUG(5,("Got keepalive packet\n"));
}
@@ -620,7 +620,7 @@ ssize_t read_smb_length(int fd,char *inbuf,unsigned int timeout)
return len;
/* Ignore session keepalives. */
- if(CVAL(inbuf,0) != 0x85)
+ if(CVAL(inbuf,0) != SMBkeepalive)
break;
}
@@ -702,7 +702,7 @@ BOOL client_receive_smb(int fd,char *buffer, unsigned int timeout)
}
/* Ignore session keepalive packets. */
- if(CVAL(buffer,0) != 0x85)
+ if(CVAL(buffer,0) != SMBkeepalive)
break;
}
show_msg(buffer);