summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-18 12:32:12 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-28 16:40:19 +0100
commit7eedf69bc9c9d2a5305f0c889e5f81139a537a29 (patch)
treeaab9d03e8c030cd23ec784f6b3b31799b187df7a /source3/libsmb
parenta2970dfaef9ceac6af2784cbffe9e2d8ac14b188 (diff)
downloadsamba-7eedf69bc9c9d2a5305f0c889e5f81139a537a29.tar.gz
samba-7eedf69bc9c9d2a5305f0c889e5f81139a537a29.tar.bz2
samba-7eedf69bc9c9d2a5305f0c889e5f81139a537a29.zip
s3: Remove unused receive_packet
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/nmblib.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index ae7ad996b3..778b9c0b95 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "../lib/util/select.h"
static const struct opcode_names {
const char *nmb_opcode_name;
@@ -1101,38 +1100,6 @@ bool send_packet(struct packet_struct *p)
}
/****************************************************************************
- Receive a packet with timeout on a open UDP filedescriptor.
- The timeout is in milliseconds
-***************************************************************************/
-
-struct packet_struct *receive_packet(int fd,enum packet_type type,int t)
-{
- fd_set fds;
- struct timeval timeout;
- int ret;
-
- FD_ZERO(&fds);
- FD_SET(fd,&fds);
- timeout.tv_sec = t/1000;
- timeout.tv_usec = 1000*(t%1000);
-
- if ((ret = sys_select_intr(fd+1,&fds,NULL,NULL,&timeout)) == -1) {
- /* errno should be EBADF or EINVAL. */
- DEBUG(0,("select returned -1, errno = %s (%d)\n",
- strerror(errno), errno));
- return NULL;
- }
-
- if (ret == 0) /* timeout */
- return NULL;
-
- if (FD_ISSET(fd,&fds))
- return(read_packet(fd,type));
-
- return(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.