ungureanuvladvictor

Untitled

Jun 13th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. struct iphdr {
  2. #if defined(__LITTLE_ENDIAN_BITFIELD)
  3. __u8 ihl:4,
  4. version:4;
  5. #elif defined (__BIG_ENDIAN_BITFIELD)
  6. __u8 version:4,
  7. ihl:4;
  8. #else
  9. #error "Please fix <asm/byteorder.h>"
  10. #endif
  11. __u8 tos;
  12. __be16 tot_len;
  13. __be16 id;
  14. __be16 frag_off;
  15. __u8 ttl;
  16. __u8 protocol;
  17. __sum16 check;
  18. __be32 saddr;
  19. __be32 daddr;
  20. /*The options start here. */
  21. };
Advertisement
Add Comment
Please, Sign In to add comment