1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00

r5108: the beginnings of a nbtd server for Samba4. Currently just displays

the packets it receives, but it at least shows how the server
structure will work.

To implement it I extended the libcli/nbt/ library to allow for an
incoming packet handler to be registered. That allows the nbt client
library to be used for low level processing of the nbtd server packets.

Other changes:

 - made the socket library always set SO_REUSEADDR when binding to an
   interface, to ensure that restarts of a server don't have to wait
   for a couple of minutes.

 - made the nbt port configurable. Defaults to 137, but other ports
   will be useful for testing.
This commit is contained in:
Andrew Tridgell
2005-01-30 10:24:36 +00:00
committed by Gerald (Jerry) Carter
parent 39d1ced21b
commit 2fedca6adf
14 changed files with 285 additions and 4 deletions

View File

@@ -139,6 +139,8 @@ static NTSTATUS ipv4_listen(struct socket_context *sock,
struct ipv4_addr ip_addr;
int ret;
socket_set_option(sock, "SO_REUSEADDR=1", NULL);
ip_addr = interpret_addr2(my_address);
ZERO_STRUCT(my_addr);