summaryrefslogtreecommitdiff
path: root/source4/nbt_server/dgram
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-14 12:56:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:42:34 -0500
commit3d7c2443b82b3770858c236bdcd11c3d649ead75 (patch)
tree9f47e6cd9b3453ad188d519ea440609a17535c7e /source4/nbt_server/dgram
parent676b220f3e8c975824bfdae407e9f7938d79118c (diff)
downloadsamba-3d7c2443b82b3770858c236bdcd11c3d649ead75.tar.gz
samba-3d7c2443b82b3770858c236bdcd11c3d649ead75.tar.bz2
samba-3d7c2443b82b3770858c236bdcd11c3d649ead75.zip
r11041: r10358@SERNOX: metze | 2005-09-20 21:40:03 +0200
fix some missing nbt_peer_socket cases metze (This used to be commit bd25231c57f60296ad954d4f333c14d83781a1d1)
Diffstat (limited to 'source4/nbt_server/dgram')
-rw-r--r--source4/nbt_server/dgram/browse.c4
-rw-r--r--source4/nbt_server/dgram/netlogon.c16
-rw-r--r--source4/nbt_server/dgram/ntlogon.c16
3 files changed, 18 insertions, 18 deletions
diff --git a/source4/nbt_server/dgram/browse.c b/source4/nbt_server/dgram/browse.c
index ca9618f510..83ed92d4c5 100644
--- a/source4/nbt_server/dgram/browse.c
+++ b/source4/nbt_server/dgram/browse.c
@@ -31,8 +31,8 @@
*/
void nbtd_mailslot_browse_handler(struct dgram_mailslot_handler *dgmslot,
struct nbt_dgram_packet *packet,
- const char *src_address, int src_port)
+ struct nbt_peer_socket *src)
{
DEBUG(2,("Browse request on '%s' from %s:%d\n",
- dgmslot->mailslot_name, src_address, src_port));
+ dgmslot->mailslot_name, src->addr, src->port));
}
diff --git a/source4/nbt_server/dgram/netlogon.c b/source4/nbt_server/dgram/netlogon.c
index b007ca8114..3ac75a8ea3 100644
--- a/source4/nbt_server/dgram/netlogon.c
+++ b/source4/nbt_server/dgram/netlogon.c
@@ -32,7 +32,7 @@
*/
static void nbtd_netlogon_getdc(struct dgram_mailslot_handler *dgmslot,
struct nbt_dgram_packet *packet,
- const char *src_address, int src_port,
+ const struct nbt_peer_socket *src,
struct nbt_netlogon_packet *netlogon)
{
struct nbt_name *name = &packet->data.msg.dest_name;
@@ -90,7 +90,7 @@ static void nbtd_netlogon_getdc(struct dgram_mailslot_handler *dgmslot,
*/
static void nbtd_netlogon_getdc2(struct dgram_mailslot_handler *dgmslot,
struct nbt_dgram_packet *packet,
- const char *src_address, int src_port,
+ const struct nbt_peer_socket *src,
struct nbt_netlogon_packet *netlogon)
{
struct nbt_name *name = &packet->data.msg.dest_name;
@@ -193,7 +193,7 @@ static void nbtd_netlogon_getdc2(struct dgram_mailslot_handler *dgmslot,
*/
void nbtd_mailslot_netlogon_handler(struct dgram_mailslot_handler *dgmslot,
struct nbt_dgram_packet *packet,
- const char *src_address, int src_port)
+ const struct nbt_peer_socket *src)
{
NTSTATUS status = NT_STATUS_NO_MEMORY;
struct nbtd_interface *iface =
@@ -215,20 +215,20 @@ void nbtd_mailslot_netlogon_handler(struct dgram_mailslot_handler *dgmslot,
}
DEBUG(2,("netlogon request to %s from %s:%d\n",
- nbt_name_string(netlogon, name), src_address, src_port));
+ nbt_name_string(netlogon, name), src->addr, src->port));
status = dgram_mailslot_netlogon_parse(dgmslot, netlogon, packet, netlogon);
if (!NT_STATUS_IS_OK(status)) goto failed;
switch (netlogon->command) {
case NETLOGON_QUERY_FOR_PDC:
- nbtd_netlogon_getdc(dgmslot, packet, src_address, src_port, netlogon);
+ nbtd_netlogon_getdc(dgmslot, packet, src, netlogon);
break;
case NETLOGON_QUERY_FOR_PDC2:
- nbtd_netlogon_getdc2(dgmslot, packet, src_address, src_port, netlogon);
+ nbtd_netlogon_getdc2(dgmslot, packet, src, netlogon);
break;
default:
DEBUG(2,("unknown netlogon op %d from %s:%d\n",
- netlogon->command, src_address, src_port));
+ netlogon->command, src->addr, src->port));
NDR_PRINT_DEBUG(nbt_netlogon_packet, netlogon);
break;
}
@@ -238,6 +238,6 @@ void nbtd_mailslot_netlogon_handler(struct dgram_mailslot_handler *dgmslot,
failed:
DEBUG(2,("nbtd netlogon handler failed from %s:%d - %s\n",
- src_address, src_port, nt_errstr(status)));
+ src->addr, src->port, nt_errstr(status)));
talloc_free(netlogon);
}
diff --git a/source4/nbt_server/dgram/ntlogon.c b/source4/nbt_server/dgram/ntlogon.c
index 17a6c6f0af..0a2d9491c6 100644
--- a/source4/nbt_server/dgram/ntlogon.c
+++ b/source4/nbt_server/dgram/ntlogon.c
@@ -31,8 +31,8 @@
reply to a SAM LOGON request
*/
static void nbtd_ntlogon_sam_logon(struct dgram_mailslot_handler *dgmslot,
- struct nbt_dgram_packet *packet,
- const char *src_address, int src_port,
+ struct nbt_dgram_packet *packet,
+ const struct nbt_peer_socket *src,
struct nbt_ntlogon_packet *ntlogon)
{
struct nbt_name *name = &packet->data.msg.dest_name;
@@ -68,8 +68,8 @@ static void nbtd_ntlogon_sam_logon(struct dgram_mailslot_handler *dgmslot,
handle incoming ntlogon mailslot requests
*/
void nbtd_mailslot_ntlogon_handler(struct dgram_mailslot_handler *dgmslot,
- struct nbt_dgram_packet *packet,
- const char *src_address, int src_port)
+ struct nbt_dgram_packet *packet,
+ const struct nbt_peer_socket *src)
{
NTSTATUS status = NT_STATUS_NO_MEMORY;
struct nbtd_interface *iface =
@@ -91,7 +91,7 @@ void nbtd_mailslot_ntlogon_handler(struct dgram_mailslot_handler *dgmslot,
}
DEBUG(2,("ntlogon request to %s from %s:%d\n",
- nbt_name_string(ntlogon, name), src_address, src_port));
+ nbt_name_string(ntlogon, name), src->addr, src->port));
status = dgram_mailslot_ntlogon_parse(dgmslot, ntlogon, packet, ntlogon);
if (!NT_STATUS_IS_OK(status)) goto failed;
@@ -99,11 +99,11 @@ void nbtd_mailslot_ntlogon_handler(struct dgram_mailslot_handler *dgmslot,
switch (ntlogon->command) {
case NTLOGON_SAM_LOGON:
- nbtd_ntlogon_sam_logon(dgmslot, packet, src_address, src_port, ntlogon);
+ nbtd_ntlogon_sam_logon(dgmslot, packet, src, ntlogon);
break;
default:
DEBUG(2,("unknown ntlogon op %d from %s:%d\n",
- ntlogon->command, src_address, src_port));
+ ntlogon->command, src->addr, src->port));
break;
}
@@ -112,6 +112,6 @@ void nbtd_mailslot_ntlogon_handler(struct dgram_mailslot_handler *dgmslot,
failed:
DEBUG(2,("nbtd ntlogon handler failed from %s:%d - %s\n",
- src_address, src_port, nt_errstr(status)));
+ src->addr, src->port, nt_errstr(status)));
talloc_free(ntlogon);
}