Source code of Windows XP (NT5)
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.

46 lines
1.1 KiB

  1. /*
  2. *
  3. * Modifications: $Header: W:/LCS/ARCHIVES/preboot/lsa2/inc/ip.h_v 1.3 Apr 04 1997 13:57:08 GRGUSTAF $
  4. *
  5. * Copyright(c) 1997 by Intel Corporation. All Rights Reserved.
  6. *
  7. */
  8. #ifndef _IP_H
  9. #define _IP_H
  10. #define IPLEN 4 /* length of an IP address */
  11. #define PROTUDP 17 /* IP package type is UDP */
  12. #define PROTIGMP 2 /* .. is IGMP */
  13. #define FR_MF 0x2000 /* .. fragment bit */
  14. #define FR_OFS 0x1fff /* .. fragment offset */
  15. /* Internet Protocol (IP) header */
  16. typedef struct iph {
  17. UINT8 version; /* version and hdr length */
  18. /* each half is four bits */
  19. UINT8 service; /* type of service for IP */
  20. UINT16 length, /* total length of IP packet */
  21. ident, /* transaction identification */
  22. frags; /* combination of flags and value */
  23. UINT8 ttl, /* time to live */
  24. protocol; /* higher level protocol type */
  25. UINT16 chksum; /* header checksum */
  26. UINT8 source[IPLEN], /* IP addresses */
  27. dest[IPLEN];
  28. } IPLAYER;
  29. struct in_addr { /* INTERNET address */
  30. UINT32 s_addr;
  31. };
  32. #endif /* _IP_H */
  33. /* EOF - $Workfile: ip.h $ */