ttNtRteEntry
typedef struct tsNtRteEntry
{
struct sockaddr_storage ntRteDestSockAddr;
ttUser8Bit ntRtePrefixLength;
ttUser32Bit ntRteOwnerCount;
ttUser32Bit ntRteMhomeIndex;
char ntRteDeviceName[(((TM_MAX_DEVICE_NAME + 3) / 4) * 4)];
struct sockaddr_storage ntRteGwSockAddr;
ttUser8Bit ntRteHwAddress[(((TM_MAX_PHYS_ADDR + 3) / 4) * 4)];
int ntRteHwLength;
ttUser8Bit ntRteClonePrefixLength;
ttUser32Bit ntRteMtu;
ttUser32Bit ntRteHops;
ttUser32Bit ntRteTtl;
ttUser16Bit ntRteFlags;
} ttNtRteEntry;
typedef ttNtRteEntry * ttNtRteEntryPtr;
Members
- ntRteDestSockAddr
- ntRteDestSockAddr.ss_family indicates the family of the address. ntRteDestSockAddr.addr.ipv6 or ntRteDestSockAddr.addr.ipv4 has the actual key IP address.
- ntRtePrefixLength
- Matching prefix length associated with the routing entry. [1-128] for IPV6 and [1-32] for IPV4 entries.
- ntRteOwnerCount
- Owner count for the routing entry.
- ntRteMhomeIndex
- Multihome index in device entry.
- ntRteDeviceName
- Name of the device associated with the routing entry.
- ntRteGwSockAddr
- For gateway route, this is the address of the gateway . For direct routes, this address is set to the IP address of the corresponding interface just to indicate that it is a direct route. This follows the UNIX convention. ntRteGwSockAddr.ss_family indicates the family of the address.ntRteGwSockAddr.addr.ipv6 or ntRteGwSockAddr.addr.ipv4 has the actual IP Address of the gateway.
- ntRteHwAddress
- This field is valid if the routing entry is a local route, in which case it is the hardware address of the target host.
- ntRteHwLength
- This field is valid if the routing entry is a local route, in which case it is the length of the hardware address of the target host.
- ntRteClonePrefixLength
- Prefix length for cloning a local host routing entry.
- ntRteMtu
- Mtu for the routing entry.
- ntRteHops
- Maximum hops for the routing entry.
- ntRteTtl
- Lifetime of the routing entry, in milliseconds. an special value is reserved for "infinite", TM_RTE_INF (as defined in <trsocket.h>).
- ntRteFlags
- Routing flags, see the table for routing flags.
Routing Flags
The ntRteFlags field can be an or'ed value of one or more of the following values:
| Possible values of ntRteFlags | Symbol | Description |
|---|---|---|
| TM_NT_RTE_UP | U | Route is up, if not set, route is down |
| TM_NT_RTE_HOST | H | Target is a host, if not set, target is a network |
| TM_NT_RTE_GW | G | Use gateway, if not set, target is directly connected |
| TM_NT_RTE_DYNAMIC | D | Dynamically installed by daemon or redirect, if not set, the routing entry is created statically |
| TM_NT_RTE_REJECT | J | Output through this route is rejected |
| TM_NT_RTE_CLONABLE | C | Clonable entry |
| TM_NT_RTE_CLONED | L | Cloned entry |
| TM_NT_RTE_STATIC | S | Static entry configured by the user |