summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-05 14:50:21 +0100
committerVolker Lendecke <vl@samba.org>2011-01-07 13:28:07 +0100
commit2672101cc4fa406ed89647b3d541556e548c10bf (patch)
treef5e59f1156f176ee811f6ad56db93a185e4f5a08 /source3/winbindd
parentdab6a35f4cf6a7e8a3c05319e891e06887d63998 (diff)
downloadsamba-2672101cc4fa406ed89647b3d541556e548c10bf.tar.gz
samba-2672101cc4fa406ed89647b3d541556e548c10bf.tar.bz2
samba-2672101cc4fa406ed89647b3d541556e548c10bf.zip
s3: Remove some unused code
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_wins.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/source3/winbindd/winbindd_wins.c b/source3/winbindd/winbindd_wins.c
index 164816ce2e..adfe55247c 100644
--- a/source3/winbindd/winbindd_wins.c
+++ b/source3/winbindd/winbindd_wins.c
@@ -26,50 +26,6 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND
-/* Use our own create socket code so we don't recurse.... */
-
-static int wins_lookup_open_socket_in(void)
-{
- struct sockaddr_in sock;
- int val=1;
- int res;
-
- memset((char *)&sock,'\0',sizeof(sock));
-
-#ifdef HAVE_SOCK_SIN_LEN
- sock.sin_len = sizeof(sock);
-#endif
- sock.sin_port = 0;
- sock.sin_family = AF_INET;
- sock.sin_addr.s_addr = interpret_addr("0.0.0.0");
- res = socket(AF_INET, SOCK_DGRAM, 0);
- if (res == -1)
- return -1;
-
- if (setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&val,sizeof(val))) {
- close(res);
- return -1;
- }
-#ifdef SO_REUSEPORT
- if (setsockopt(res,SOL_SOCKET,SO_REUSEPORT,(char *)&val,sizeof(val))) {
- close(res);
- return -1;
- }
-#endif /* SO_REUSEPORT */
-
- /* now we've got a socket - we need to bind it */
-
- if (bind(res, (struct sockaddr *)(void *)&sock, sizeof(sock)) < 0) {
- close(res);
- return(-1);
- }
-
- set_socket_options(res,"SO_BROADCAST");
-
- return res;
-}
-
-
static struct node_status *lookup_byaddr_backend(TALLOC_CTX *mem_ctx,
const char *addr, int *count)
{