Nut/OS  4.10.3
API Reference
route.c File Reference
#include <cfg/os.h>
#include <sys/heap.h>
#include <net/if_var.h>
#include <net/route.h>
#include <netinet/ip.h>
#include <stdlib.h>
#include <string.h>
#include <memdebug.h>
#include <sys/osdebug.h>
Include dependency graph for route.c:

Go to the source code of this file.

Functions

int NutIpRouteAdd (uint32_t ip, uint32_t mask, uint32_t gate, NUTDEVICE *dev)
 Add a new entry to the IP routing table.
int NutIpRouteDelAll (NUTDEVICE *dev)
 Delete all route table entries for the given device.
int NutIpRouteDel (uint32_t ip, uint32_t mask, uint32_t gate, NUTDEVICE *dev)
 Delete the specified route table entry.
RTENTRYNutIpRouteList (int *numEntries)
 Return an array of RTENTRY structures which contain all the current route table entries.
NUTDEVICENutIpRouteQuery (uint32_t ip, uint32_t *gate)
 Find a device associated with a particular IP route.

Variables

RTENTRYrteList