Namespace inet
RipEntry
structRIPv2 route entry
see RFC 2453 3.6 and 4
Fields
Name | Type | Description |
---|---|---|
addressFamilyId | RipAf |
usually AF_INET (2), but NONE (0) for whole table requests |
routeTag | unsigned short |
0 for RIPv1 |
address | L3Address |
destination address |
prefixLength | int |
prefix length of the destination |
nextHop | L3Address |
next hop address; may be unspecified if the packet is received from the next hop |
metric | unsigned int |
metric of the route (1-15) or infinity (16) if no route to the destination |
Source code
// // RIPv2 route entry // // see RFC 2453 3.6 and 4 // struct RipEntry { @packetData; RipAf addressFamilyId; // usually AF_INET (2), but NONE (0) for whole table requests unsigned short routeTag; // 0 for RIPv1 L3Address address; // destination address int prefixLength; // prefix length of the destination L3Address nextHop; // next hop address; may be unspecified if the packet is received from the next hop unsigned int metric; // metric of the route (1-15) or infinity (16) if no route to the destination }File: src/inet/routing/rip/RipPacket.msg