diff options
author | Volker Lendecke <vl@samba.org> | 2011-01-05 14:50:21 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-01-07 13:28:07 +0100 |
commit | 2672101cc4fa406ed89647b3d541556e548c10bf (patch) | |
tree | f5e59f1156f176ee811f6ad56db93a185e4f5a08 /source3/libsmb/nmblib.c | |
parent | dab6a35f4cf6a7e8a3c05319e891e06887d63998 (diff) | |
download | samba-2672101cc4fa406ed89647b3d541556e548c10bf.tar.gz samba-2672101cc4fa406ed89647b3d541556e548c10bf.tar.bz2 samba-2672101cc4fa406ed89647b3d541556e548c10bf.zip |
s3: Remove some unused code
Diffstat (limited to 'source3/libsmb/nmblib.c')
-rw-r--r-- | source3/libsmb/nmblib.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index fd011ebf27..ae7ad996b3 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/libsmb/nmblib.c @@ -1133,51 +1133,11 @@ struct packet_struct *receive_packet(int fd,enum packet_type type,int t) } /**************************************************************************** - Receive a UDP/137 packet either via UDP or from the unexpected packet - queue. The packet must be a reply packet and have the specified trn_id. - The timeout is in milliseconds. -***************************************************************************/ - -struct packet_struct *receive_nmb_packet(int fd, int t, int trn_id) -{ - struct packet_struct *p; - - p = receive_packet(fd, NMB_PACKET, t); - - if (p && p->packet.nmb.header.response && - p->packet.nmb.header.name_trn_id == trn_id) { - return p; - } - if (p) - free_packet(p); - - /* try the unexpected packet queue */ - return receive_unexpected(NMB_PACKET, trn_id, NULL); -} - -/**************************************************************************** Receive a UDP/138 packet either via UDP or from the unexpected packet queue. The packet must be a reply packet and have the specified mailslot name The timeout is in milliseconds. ***************************************************************************/ -struct packet_struct *receive_dgram_packet(int fd, int t, - const char *mailslot_name) -{ - struct packet_struct *p; - - p = receive_packet(fd, DGRAM_PACKET, t); - - if (p && match_mailslot_name(p, mailslot_name)) { - return p; - } - if (p) - free_packet(p); - - /* try the unexpected packet queue */ - return receive_unexpected(DGRAM_PACKET, 0, mailslot_name); -} - /**************************************************************************** See if a datagram has the right mailslot name. ***************************************************************************/ |