mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
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)
This commit is contained in:
parent
676b220f3e
commit
3d7c2443b8
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
*/
|
||||
static void nbtd_ntlogon_sam_logon(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_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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user