mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +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 used to be commit 2fedca6adf)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a0ab1f7afd
commit
c7ded5ab0a
@@ -125,6 +125,8 @@ static NTSTATUS ipv6_tcp_listen(struct socket_context *sock,
|
||||
struct in6_addr ip_addr;
|
||||
int ret;
|
||||
|
||||
socket_set_option(sock, "SO_REUSEADDR=1", NULL);
|
||||
|
||||
ip_addr = interpret_addr6(my_address);
|
||||
|
||||
ZERO_STRUCT(my_addr);
|
||||
|
||||
Reference in New Issue
Block a user