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 370B

1234567891011121314151617181920212223
  1. #ifndef _IP_H
  2. #define _IP_H
  3. #include "stddef.h"
  4. #include "stdint.h"
  5. #include <gpxe/in.h>
  6. struct iphdr {
  7. uint8_t verhdrlen;
  8. uint8_t service;
  9. uint16_t len;
  10. uint16_t ident;
  11. uint16_t frags;
  12. uint8_t ttl;
  13. uint8_t protocol;
  14. uint16_t chksum;
  15. struct in_addr src;
  16. struct in_addr dest;
  17. } PACKED;
  18. extern uint16_t tcpudpchksum(struct iphdr *ip);
  19. #endif /* _IP_H */