You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

in.h 333B

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 */