From 7cd889f566ebe352721943e53a055db5b817f12f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sat, 20 Oct 2001 23:34:40 +0000 Subject: Converted a bunch of 0x85 constants to SMBkeepalive. (This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e) --- source3/lib/util_sock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/lib/util_sock.c') 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); -- cgit