diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-05-17 13:24:29 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-05-17 13:24:29 +1000 |
commit | 4f557d7954eb80e566a91b2fe22f7b7e30e0b456 (patch) | |
tree | 6e656626a2631200c66869c7bef313f77ef37084 /source4/nbt_server/dgram/request.c | |
parent | 842040d18490d9f6d1fed621aa36946e2becc3e1 (diff) | |
download | samba-4f557d7954eb80e566a91b2fe22f7b7e30e0b456.tar.gz samba-4f557d7954eb80e566a91b2fe22f7b7e30e0b456.tar.bz2 samba-4f557d7954eb80e566a91b2fe22f7b7e30e0b456.zip |
Show that the NTLOGON and NETLOGON mailslots are *very* similar.
Rework the mailslot infrustructure to cope, passing down the mailslot
name so that we can implement both in the same callback function.
Andrew Bartlett
(This used to be commit 89fdd77891529aa74bb920994b8b5959aae8ac2d)
Diffstat (limited to 'source4/nbt_server/dgram/request.c')
-rw-r--r-- | source4/nbt_server/dgram/request.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/nbt_server/dgram/request.c b/source4/nbt_server/dgram/request.c index 205a544209..277b64741d 100644 --- a/source4/nbt_server/dgram/request.c +++ b/source4/nbt_server/dgram/request.c @@ -35,8 +35,10 @@ static const struct { const char *mailslot_name; dgram_mailslot_handler_t handler; } mailslot_handlers[] = { + /* Handle both NTLOGON and NETLOGON in the same function, as + * they are very similar */ { NBT_MAILSLOT_NETLOGON, nbtd_mailslot_netlogon_handler }, - { NBT_MAILSLOT_NTLOGON, nbtd_mailslot_ntlogon_handler }, + { NBT_MAILSLOT_NTLOGON, nbtd_mailslot_netlogon_handler }, { NBT_MAILSLOT_BROWSE, nbtd_mailslot_browse_handler } }; |