r5108: the beginnings of a nbtd server for Samba4. Currently just displays
authorAndrew Tridgell <tridge@samba.org>
Sun, 30 Jan 2005 10:24:36 +0000 (10:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:23 +0000 (13:09 -0500)
commitc7ded5ab0accc54a28df4d43cb923e6c808ff347
treeeabb1e05c05f8ce01b0ffbf1fda038a80fc237a0
parenta0ab1f7afda62964d480af9dc26e60a38d1350e0
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 2fedca6adfd4df9e85cc86896dfa79630777a917)
14 files changed:
source4/build/smb_build/main.pm
source4/include/structs.h
source4/lib/socket/socket_ipv4.c
source4/lib/socket/socket_ipv6.c
source4/libcli/nbt/libnbt.h
source4/libcli/nbt/namequery.c
source4/libcli/nbt/nbtsocket.c
source4/nbt_server/config.mk [new file with mode: 0644]
source4/nbt_server/interfaces.c [new file with mode: 0644]
source4/nbt_server/nbt_server.c [new file with mode: 0644]
source4/nbt_server/nbt_server.h [new file with mode: 0644]
source4/param/loadparm.c
source4/smbd/config.mk
source4/smbd/service_stream.c