IP_OPTION_INFORMATION32 (Compact 2013)
3/26/2014
This structure describes the options to be included in the header of an IP packet on a 64-bit platform.
Syntax
typedef struct _IP_OPTION_INFORMATION32 {
UCHAR Ttl;
UCHAR Tos;
UCHAR Flags;
UCHAR OptionsSize;
UCHAR * POINTER_32 OptionsData;
} IP_OPTION_INFORMATION32,
*PIP_OPTION_INFORMATION32;
Members
- Ttl
The Time to Live field in an IPv4 packet header. This is the Hop Limit field in an IPv6 header.
- Tos
The type of service field in an IPv4 header. This member is currently silently ignored.
Flags
The Flags field. In IPv4, this is the Flags field in the IPv4 header. In IPv6, this field is represented by options headers.For IPv4, the possible values for the Flags member are a combination of the following values that are defined in the Ipexport.h header file:
Value
Meaning
IP_REVERSE
0x01
This value causes the IP packet to add in an IP routing header with the source.
IP_FLAG_DF
0x02
This value indicates that the packet should not be fragmented.
- OptionsSize
The size, in bytes, of IP options data.
- OptionsData
A pointer to options data.
Remarks
The IP_OPTION_INFORMATION32 structure is used to describe the options to be included in the header of an IP packet on a 64-bit platform. The IP_OPTION_INFORMATION32 structure is only defined if _WIN64 is defined.
The values in the TTL, TOS and Flags members are carried in specific fields in the IP header.
The bytes in the OptionsData member are carried in the options area that follows the standard IP header.
With the exception of source route options for IPv4, the options data must be in the format to be transmitted on the wire as specified in RFC 791. An IPv4 source route option should contain the full route, first hop through final destination, in the route data. The first hop is pulled out of the data and the option is reformatted accordingly. Otherwise, the route option should be formatted as specified in RFC 791.
For use with IPv6, the options data must be in the format to be transmitted on the wire as specified in RFC 2460.
The IP_OPTION_INFORMATION32 structure is a member of the structure that is used by IcmpSendEcho, IcmpSendEcho2, and Icmp6SendEcho2 functions.
This structure is defined in the Ipexport.h header file which is automatically included in the Iphlpapi.h header file. The Ipexport.h header file should never be used directly.
See Also
Reference
IP Helper Structures
Icmp6SendEcho2
IcmpSendEcho
IcmpSendEcho2
IP_OPTION_INFORMATION