您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021
  1. #ifndef _IN_H
  2. #define _IN_H
  3. #include <if_ether.h>
  4. #define IP ETH_P_IP
  5. #define ARP ETH_P_ARP
  6. #define RARP ETH_P_RARP
  7. #define IP_ICMP 1
  8. #define IP_IGMP 2
  9. #define IP_TCP 6
  10. #define IP_UDP 17
  11. /* Same after going through htonl */
  12. #define IP_BROADCAST 0xFFFFFFFF
  13. typedef struct {
  14. uint32_t s_addr;
  15. } in_addr;
  16. #endif /* _IN_H */