IP_OPTION_INFORMATION (Windows Embedded CE 6.0)
1/6/2010
This structure describes the options to be included in the header of an IP packet. The TTL, TOS, and Flags values are carried in specific fields in the header. The OptionsData bytes are carried in the options area following the standard IP header. With the exception of source route options, this data must be in the format to be transmitted on the wire as specified in RFC 791.
Syntax
typedef struct IP_OPTION_INFORMATION {
unsigned char Ttl;
unsigned char Tos;
unsigned char Flags;
unsigned char OptionsSize;
unsigned char FAR* OptionsData;
} IP_OPTION_INFORMATION;
Members
- Ttl
String containing the Time-to-live.
- Tos
String containing the type of service.
Flags
String containing IP header flag. The following table shows the flag value.Value Description IP_FLAG_DF 0x2
Do not fragment this packet.
- OptionsSize
Size, in bytes, of options data.
OptionsData
String containing supported IP option types. These types define the options that may be used in the OptionsData field of the IP_OPTION_INFORMATION structure. The following table shows the supported IP option types. For a complete description of each type, see RFC 791.Value Description IP_OPT_EOL 0
End of list option
IP_OPT_NOP 1
No operation
IP_OPT_SECURITY 0x82
Security option
IP_OPT_LSRR 0x83
Loose source route
IP_OPT_SSRR 0x89
Strict source route
IP_OPT_RR 0x7
Record route
IP_OPT_TS 0x44
Timestamp
IP_OPT_SID 0x88
Stream ID (obsolete)
Remarks
A source route option should contain the full route — first hop through final destination — in the route data. The first hop will be pulled out of the data and the option will be reformatted accordingly. Otherwise, the route option should be formatted as specified in RFC 791.
Requirements
Header | icmpapi.h |
Windows Embedded CE | Windows CE 2.0 and later |