2005-05-01 11:10:17 +00:00
|
|
|
#ifndef NMB_H
|
|
|
|
#define NMB_H
|
|
|
|
|
2007-01-15 17:31:35 +00:00
|
|
|
#include <gpxe/dns.h>
|
2005-05-01 11:10:17 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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 {
|
2005-05-23 23:47:54 +00:00
|
|
|
struct dns_rr_info info;
|
2005-05-01 11:10:17 +00:00
|
|
|
uint16_t nb_flags;
|
|
|
|
struct in_addr nb_address;
|
|
|
|
} __attribute__ (( packed ));
|
|
|
|
|
|
|
|
#endif /* NMB_H */
|