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)
commit2fedca6adfd4df9e85cc86896dfa79630777a917
tree5f443b781c5ec7935d9c80e6e944e223e0c36b7a
parent39d1ced21baeca40d1fca62ba65243ca8f15757e
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.
14 files changed:
source/build/smb_build/main.pm
source/include/structs.h
source/lib/socket/socket_ipv4.c
source/lib/socket/socket_ipv6.c
source/libcli/nbt/libnbt.h
source/libcli/nbt/namequery.c
source/libcli/nbt/nbtsocket.c
source/nbt_server/config.mk [new file with mode: 0644]
source/nbt_server/interfaces.c [new file with mode: 0644]
source/nbt_server/nbt_server.c [new file with mode: 0644]
source/nbt_server/nbt_server.h [new file with mode: 0644]
source/param/loadparm.c
source/smbd/config.mk
source/smbd/service_stream.c