Included in: | nut/boot/bootmon/bootmon.h |
nut/boot/bootmon/ip.c |
#define INADDR_BROADCAST
#define IPPROTO_IP 0
#define IPPROTO_ICMP 1
#define IPPROTO_TCP 6
#define IPPROTO_UDP 17
#define IPVERSION 4
#define IP_DF 0x4000
#define IP_MF 0x2000
#define IP_OFFMASK 0x1fff
struct ip | |
{ | |
unsigned char ip_hl:4; | |
unsigned char ip_v:4; | |
unsigned char ip_tos; | |
short ip_len; | |
unsigned short ip_id; | |
short ip_off; | |
unsigned char ip_ttl; | |
unsigned char ip_p; | |
unsigned short ip_sum; | |
unsigned long ip_src; | |
unsigned long ip_dst; | |
} |