diff options
author | Tim Potter <tpot@samba.org> | 2005-05-22 10:23:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:58 -0500 |
commit | 2b7fe67f4d02f861c9a4bfe823e648f0a995e613 (patch) | |
tree | 969cd8c1c004517303dc25629ecaf0227c45bfbe /source4/libcli/dgram | |
parent | ffbeabef646987f02b98cd1f781d3c2a614b3d24 (diff) | |
download | samba-2b7fe67f4d02f861c9a4bfe823e648f0a995e613.tar.gz samba-2b7fe67f4d02f861c9a4bfe823e648f0a995e613.tar.bz2 samba-2b7fe67f4d02f861c9a4bfe823e648f0a995e613.zip |
r6933: Add a couple of helper functions for creating nbt names.
(This used to be commit b896daf11c3efb1b3ca939575da9dab82b395777)
Diffstat (limited to 'source4/libcli/dgram')
-rw-r--r-- | source4/libcli/dgram/netlogon.c | 4 | ||||
-rw-r--r-- | source4/libcli/dgram/ntlogon.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/source4/libcli/dgram/netlogon.c b/source4/libcli/dgram/netlogon.c index 6e939725d0..9d3a0dbed9 100644 --- a/source4/libcli/dgram/netlogon.c +++ b/source4/libcli/dgram/netlogon.c @@ -79,9 +79,7 @@ NTSTATUS dgram_mailslot_netlogon_reply(struct nbt_dgram_socket *dgmsock, return status; } - myname.name = lp_netbios_name(); - myname.type = NBT_NAME_CLIENT; - myname.scope = NULL; + make_nbt_name_client(&myname, lp_netbios_name()); status = dgram_mailslot_send(dgmsock, DGRAM_DIRECT_UNIQUE, mailslot_name, diff --git a/source4/libcli/dgram/ntlogon.c b/source4/libcli/dgram/ntlogon.c index 38651a4085..e4a24b0591 100644 --- a/source4/libcli/dgram/ntlogon.c +++ b/source4/libcli/dgram/ntlogon.c @@ -79,9 +79,7 @@ NTSTATUS dgram_mailslot_ntlogon_reply(struct nbt_dgram_socket *dgmsock, return status; } - myname.name = lp_netbios_name(); - myname.type = NBT_NAME_CLIENT; - myname.scope = NULL; + make_nbt_name_client(&myname, lp_netbios_name()); status = dgram_mailslot_send(dgmsock, DGRAM_DIRECT_UNIQUE, mailslot_name, |