diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-04-03 04:32:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:24 -0500 |
commit | a47cb58c2f6d34dd98e3dc2dd023a259ff501643 (patch) | |
tree | 7ce71f8ac40452570f110ec1895d3e5a65fafbd2 /source4/param | |
parent | b9df3f5fe80087a55a45474a5a860aec2788a26d (diff) | |
download | samba-a47cb58c2f6d34dd98e3dc2dd023a259ff501643.tar.gz samba-a47cb58c2f6d34dd98e3dc2dd023a259ff501643.tar.bz2 samba-a47cb58c2f6d34dd98e3dc2dd023a259ff501643.zip |
r6184: the beginnings of the libcli/dgram/ library, and the dgram
server. Currently just listens on port 138 and parses the packets
(using IDL like the rest of NBT). This allows me to develop the
structures and test with real packets
(This used to be commit 10d64a525349ff96695ad961a3cfeb5bc7c8844f)
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 33026dd9e0..29da770d47 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -236,6 +236,7 @@ typedef struct int iLockSpinCount; int iLockSpinTime; int nbt_port; + int dgram_port; char *socket_options; BOOL bDNSproxy; BOOL bWINSsupport; @@ -617,6 +618,7 @@ static struct parm_struct parm_table[] = { {"smb ports", P_LIST, P_GLOBAL, &Globals.smb_ports, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER}, {"nbt port", P_INTEGER, P_GLOBAL, &Globals.nbt_port, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER}, + {"dgram port", P_INTEGER, P_GLOBAL, &Globals.dgram_port, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER}, {"large readwrite", P_BOOL, P_GLOBAL, &Globals.bLargeReadwrite, NULL, NULL, FLAG_DEVELOPER}, {"max protocol", P_ENUM, P_GLOBAL, &Globals.maxprotocol, NULL, enum_protocol, FLAG_DEVELOPER}, {"min protocol", P_ENUM, P_GLOBAL, &Globals.minprotocol, NULL, enum_protocol, FLAG_DEVELOPER}, @@ -1051,6 +1053,7 @@ static void init_globals(void) do_parameter("smb ports", SMB_PORTS); do_parameter("nbt port", "137"); + do_parameter("dgram port", "138"); do_parameter("nt status support", "True"); @@ -1152,6 +1155,7 @@ static const char *lp_string(const char *s) FN_GLOBAL_LIST(lp_smb_ports, &Globals.smb_ports) FN_GLOBAL_INTEGER(lp_nbt_port, &Globals.nbt_port) +FN_GLOBAL_INTEGER(lp_dgram_port, &Globals.dgram_port) FN_GLOBAL_STRING(lp_dos_charset, &Globals.dos_charset) FN_GLOBAL_STRING(lp_unix_charset, &Globals.unix_charset) FN_GLOBAL_STRING(lp_display_charset, &Globals.display_charset) |