#include <sys/socket.h>Data Structures | |
| struct | rtentry |
Defines | |
| #define | _ROUTE_H 1 |
Typedefs | |
| typedef struct rtentry | rtentry_t |
Enumerations | |
| enum | RouteCmdsEnum { ADDROUTE = 30, DELETEROUTE, READROUTE } |
Functions | |
| int16_t | routecntl (uint16_t cmd, int16_t rtindex, rtentry_t *rtentry) |
| int16_t | num_rtentries () |
| A system call to get the number of valid route entries in the routing table. | |
| #define _ROUTE_H 1 |
| enum RouteCmdsEnum |
Commands for routecntl().
| int16_t num_rtentries | ( | ) |
A system call to get the number of valid route entries in the routing table.
| int16_t routecntl | ( | uint16_t | cmd, | |
| int16_t | rtindex, | |||
| rtentry_t * | rtentry | |||
| ) |
A system call to get and configure the routing table. If successful, the routes in the route table can be extracted or changed.
| [in] | cmd | See commands RouteCmdsEnum
|
| [in] | rtindex | index to the route table |
| [in,out] | rtentry | contains the entry of the routing table to be set to or extracted from the table |
1.5.5