Lines Matching refs:peek_buf
113 unsigned char peek_buf[4]; in smb_data_callback() local
124 peek_buf[0] = 0; in smb_data_callback()
132 result = _recvfrom(socket, (void *) peek_buf, 1, in smb_data_callback()
136 if (peek_buf[0] != 0x85) in smb_data_callback()
140 result = _recvfrom(socket, (void *) peek_buf, 4, in smb_data_callback()
420 unsigned char peek_buf[4]; in smb_get_length() local
426 result = smb_receive_raw(server, peek_buf, 4); in smb_get_length()
434 switch (peek_buf[0]) in smb_get_length()
445 PARANOIA("Invalid NBT packet, code=%x\n", peek_buf[0]); in smb_get_length()
451 memcpy(header, peek_buf, 4); in smb_get_length()
454 return smb_len(peek_buf); in smb_get_length()
476 unsigned char peek_buf[4]; in smb_receive() local
478 result = smb_get_length(server, peek_buf); in smb_receive()
499 memcpy(packet, peek_buf, 4); in smb_receive()