mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-16 08:11:31 +00:00
22 lines
333 B
C
22 lines
333 B
C
|
#ifndef _IN_H
|
||
|
#define _IN_H
|
||
|
|
||
|
#include <if_ether.h>
|
||
|
#define IP ETH_P_IP
|
||
|
#define ARP ETH_P_ARP
|
||
|
#define RARP ETH_P_RARP
|
||
|
|
||
|
#define IP_ICMP 1
|
||
|
#define IP_IGMP 2
|
||
|
#define IP_TCP 6
|
||
|
#define IP_UDP 17
|
||
|
|
||
|
/* Same after going through htonl */
|
||
|
#define IP_BROADCAST 0xFFFFFFFF
|
||
|
|
||
|
typedef struct {
|
||
|
uint32_t s_addr;
|
||
|
} in_addr;
|
||
|
|
||
|
#endif /* _IN_H */
|