diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-05-30 20:40:48 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-05-30 20:40:48 +0000 |
commit | 3ab97ebe6db1a5a4a0573c7c8482c94876bbce9a (patch) | |
tree | 94beff79798a1b4a0c554610fe5ae5e5fa882f63 /source3/namepacket.c | |
parent | f17269211466c790ec0b39848e24e540a7b0bd21 (diff) | |
download | samba-3ab97ebe6db1a5a4a0573c7c8482c94876bbce9a.tar.gz samba-3ab97ebe6db1a5a4a0573c7c8482c94876bbce9a.tar.bz2 samba-3ab97ebe6db1a5a4a0573c7c8482c94876bbce9a.zip |
charcnv.c: Fixed silly bugs detected on IRIX.
client.c: Fixed silly bugs detected on IRIX.
namedbname.c: Stopped 1d names from being registered in WINS db.
namedbsubnet.c: Only register 1e names on broadcast subnet.
nameelect.c: Changed add_my_name entries. Forced host announces if we
have less than 10 servers listed. Fixed registering 1b
domain name issues.
namepacket.c: Added error message when dgram discarded.
nameserv.c: Added notion of 'direct' names that are not registered on
the network. Needed to get around bugs in earlier nmbd
handling of DOMAIN(1b) names.
nameservreply.c:Tidied up debug message.
nameservresp.c: Added response_name_query_domain() code. Deals with
re-registering DOMAIN(1b) name.
nmbd.c: Fixed silly bugs detected on IRIX.
nmblib.c: Added paranoia debugs.
proto.h: Updated remove_name_entry(), add_my_name_entry().
server.c: Fixed silly bugs detected on IRIX.
trans2.c: Fixed silly bugs detected on IRIX.
uid.c: Fixed silly bugs detected on IRIX.
version.h: Updated to alpha3.
Jeremy (jallison@whistle.com).
(This used to be commit f08222bd8b86a061c52d22015f946a4737eb47fd)
Diffstat (limited to 'source3/namepacket.c')
-rw-r--r-- | source3/namepacket.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source3/namepacket.c b/source3/namepacket.c index c9db43dcc5..31cad92791 100644 --- a/source3/namepacket.c +++ b/source3/namepacket.c @@ -324,7 +324,7 @@ static BOOL listening(struct packet_struct *p,struct nmb_name *n) struct name_record *n1; /* We explicitly don't search WINS here - this will be done - in find_name_search is it was a packet from a non-local subnet. */ + in find_name_search if it was a packet from a non-local subnet. */ d = find_subnet(p->ip); n1 = find_name_search(&d,n,FIND_LOCAL|FIND_WINS|FIND_SELF,p->ip); @@ -345,13 +345,21 @@ static void process_dgram(struct packet_struct *p) /* if we aren't listening to the destination name then ignore the packet */ if (!listening(p,&dgram->dest_name)) + { + DEBUG(5,("process_dgram: ignoring dgram packet sent to name %s(%x) from %s\n", + dgram->dest_name.name, dgram->dest_name.name_type, inet_ntoa(p->ip))); return; - + } if (dgram->header.msg_type != 0x10 && dgram->header.msg_type != 0x11 && - dgram->header.msg_type != 0x12) { + dgram->header.msg_type != 0x12) + { /* don't process error packets etc yet */ + DEBUG(5,("process_dgram: ignoring dgram packet sent to name %s(%d) from %s as it is \ + an error packet of type %x\n", + dgram->dest_name.name, dgram->dest_name.name_type, + inet_ntoa(p->ip), dgram->header.msg_type)); return; } @@ -364,7 +372,7 @@ static void process_dgram(struct packet_struct *p) len = SVAL(buf,smb_vwv11); buf2 = smb_base(buf) + SVAL(buf,smb_vwv12); - DEBUG(4,("datagram from %s to %s for %s of type %d len=%d\n", + DEBUG(4,("process_dgram: datagram from %s to %s for %s of type %d len=%d\n", namestr(&dgram->source_name),namestr(&dgram->dest_name), smb_buf(buf),CVAL(buf2,0),len)); |