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.

ip.h 245B

1234567891011121314151617
  1. #ifndef _IP_H
  2. #define _IP_H
  3. struct iphdr {
  4. uint8_t verhdrlen;
  5. uint8_t service;
  6. uint16_t len;
  7. uint16_t ident;
  8. uint16_t frags;
  9. uint8_t ttl;
  10. uint8_t protocol;
  11. uint16_t chksum;
  12. in_addr src;
  13. in_addr dest;
  14. } PACKED;
  15. #endif /* _IP_H */