Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/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 OptionsDatabytes 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 OptionsDatafield of the IP_OPTION_INFORMATIONstructure. 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
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ICMP Structures