NetSim Source Code Help
Loading...
Searching...
No Matches
stru_NetSim_ICMP_RouterAdvertisement Struct Reference

#include <ICMP.h>

Collaboration diagram for stru_NetSim_ICMP_RouterAdvertisement:
Collaboration graph

Data Fields

char Type
 
char Code
 
unsigned short int CheckSum
 
char NumAddrs
 
char AddrEntrySize
 
unsigned short int Lifetime
 
NETSIM_IPAddressRouterAddress
 
unsigned int * PreferenceLevel
 

Detailed Description

Network Working Group S. Deering, Editor
Request for Comments: 1256 Xerox PARC
September 1991
ICMP Router Advertisement Message
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Num Addrs |Addr Entry Size| Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router Address[1] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Preference Level[1] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router Address[2] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Preference Level[2] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| . |
| . |
| . |
IP Fields:
Source Address An IP address belonging to the interface
from which this message is sent.
Destination Address The configured AdvertisementAddress or the
IP address of a neighboring host.
Time-to-Live 1 if the Destination Address is an IP
multicast address; at least 1 otherwise.
ICMP Fields:
Type 9
Code 0
Checksum The 16-bit one's complement of the one's
complement sum of the ICMP message, start-
ing with the ICMP Type. For computing the
checksum, the Checksum field is set to 0.
Num Addrs The number of router addresses advertised
in this message.
Addr Entry Size The number of 32-bit words of information
per each router address (2, in the version
of the protocol described here).
Lifetime The maximum number of seconds that the
router addresses may be considered valid.
Router Address[i], The sending router's IP address(es) on the
i = 1..Num Addrs interface from which this message is sent.
Preference Level[i], The preferability of each Router Address[i]
i = 1..Num Addrs as a default router address, relative to
other router addresses on the same subnet.
A signed, twos-complement value; higher
values mean more preferable.
static struct stru_802_11_Phy_Parameters_HT a
void IP(uint state[], uchar in[])
Definition: des.c:116
unsigned short int Lifetime
Definition: ICMP.h:207

Definition at line 200 of file ICMP.h.

Field Documentation

◆ AddrEntrySize

char stru_NetSim_ICMP_RouterAdvertisement::AddrEntrySize

Definition at line 206 of file ICMP.h.

◆ CheckSum

unsigned short int stru_NetSim_ICMP_RouterAdvertisement::CheckSum

Definition at line 204 of file ICMP.h.

◆ Code

char stru_NetSim_ICMP_RouterAdvertisement::Code

Definition at line 203 of file ICMP.h.

◆ Lifetime

unsigned short int stru_NetSim_ICMP_RouterAdvertisement::Lifetime

Definition at line 207 of file ICMP.h.

◆ NumAddrs

char stru_NetSim_ICMP_RouterAdvertisement::NumAddrs

Definition at line 205 of file ICMP.h.

◆ PreferenceLevel

unsigned int* stru_NetSim_ICMP_RouterAdvertisement::PreferenceLevel

Definition at line 209 of file ICMP.h.

◆ RouterAddress

NETSIM_IPAddress* stru_NetSim_ICMP_RouterAdvertisement::RouterAddress

Definition at line 208 of file ICMP.h.

◆ Type

char stru_NetSim_ICMP_RouterAdvertisement::Type

Definition at line 202 of file ICMP.h.


The documentation for this struct was generated from the following file: