Error registering DOMAINNAME<1b> with 1.9.18p4 WINS server
Gerald Carter
cartegw at Eng.Auburn.EDU
Thu Sep 10 15:04:29 GMT 1998
Luke Kenneth Casson Leighton wrote:
>
> sorry? B_NODE flag has nothing to do with whether the packet is nmb
> (port 137) or dgram (port 138).
Right but the gdb output was showing both union members (nmb & dgram)
for the packet field in the packet_struct
struct packet_struct
{
struct packet_struct *next;
struct packet_struct *prev;
BOOL locked;
struct in_addr ip;
int port;
int fd;
time_t timestamp;
enum packet_type packet_type;
union {
struct nmb_packet nmb;
struct dgram_packet dgram;
} packet;
^^^^^^
};
Becasue of the was the byte was laid out in memory,
**if** (the packet would have been of type DGRAM_PACKET) then
the type would have been B_NODE ( which is 0x0 ). Since the
packet was of type NMB_PACKET, then this was irrelavent.
Make sense? Really was just that I wasn't paying attention to
what I was reading. Sorry :)
Thanks again,
j-
________________________________________________________________________
Gerald ( Jerry ) Carter
Engineering Network Services Auburn University
jerry at eng.auburn.edu http://www.eng.auburn.edu/users/cartegw
"...a hundred billion castaways looking for a home."
- Sting "Message in a Bottle" ( 1979 )
More information about the samba-technical
mailing list