diff options
author | Michael Brown <mcb30@etherboot.org> | 2005-05-01 11:10:17 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2005-05-01 11:10:17 +0000 |
commit | 3ae7a3d1f0f868593aa6599b6dbfc351320cebda (patch) | |
tree | 25dc0589954df013e44c8872c7561c6e8826cf6f /src/include/nmb.h | |
parent | e1d6f3a8acfd61943650e0a79af606c1e3c184a4 (diff) | |
download | ipxe-3ae7a3d1f0f868593aa6599b6dbfc351320cebda.zip ipxe-3ae7a3d1f0f868593aa6599b6dbfc351320cebda.tar.gz ipxe-3ae7a3d1f0f868593aa6599b6dbfc351320cebda.tar.bz2 |
NMB packets are so similar to DNS packets; we may as well add NMB as a
name resolution method.
Diffstat (limited to 'src/include/nmb.h')
-rw-r--r-- | src/include/nmb.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/nmb.h b/src/include/nmb.h new file mode 100644 index 0000000..695f8e0 --- /dev/null +++ b/src/include/nmb.h @@ -0,0 +1,22 @@ +#ifndef NMB_H +#define NMB_H + +#include "dns.h" + +/* + * NetBIOS name query packets are basically the same as DNS packets, + * though the resource record format is different. + * + */ + +#define DNS_TYPE_NB 0x20 +#define DNS_FLAG_BROADCAST ( 0x01 << 4 ) +#define NBNS_UDP_PORT 137 + +struct dns_rr_info_nb { + struct dns_rr_info; + uint16_t nb_flags; + struct in_addr nb_address; +} __attribute__ (( packed )); + +#endif /* NMB_H */ |