XenevaOS
Loading...
Searching...
No Matches
route.h
Go to the documentation of this file.
1
30#ifndef __ROUTE_H__
31#define __ROUTE_H__
32
33#include <stdint.h>
34
35/* Simple Route table entry structure */
44
49
50
51/*
52 * AuRouteTableInitialise -- initialise the kernel route
53 * table
54 */
55extern void AuRouteTableInitialise();
56
57/*
58 * AuRouteTableCreateEntry -- create a new route table
59 * entry and return
60 */
62
63/*
64 * AuRouteTableAdd -- add an entry to route
65 * table
66 * @param entry -- Entry to add
67 */
69
70/*
71 * AuRouteTableDelete -- delete an entry from
72 * route table
73 * @param entry -- entry to delete
74 */
76
77/*
78 * AuRouteTableGetNumEntry -- returns the number
79 * route entry present in the system
80 */
81extern int AuRouteTableGetNumEntry();
82
83/*
84 * AuRouteTablePopulate -- populates a given memory pointer with
85 * route table entry indexed by entryIndex number
86 * @param whereToPopulate -- memory pointer where to populate
87 * with an entry
88 * @param entryIndex -- entry index number
89 */
90extern void AuRouteTablePopulate(AuRouteEntry* whereToPopulate, int entryIndex);
91
92/*
93 * AuRouteTableDoRouteLookup -- takes the decision on taking
94 * the best route
95 * @param address -- address to take for routing
96 */
98#endif
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
void(* entry)(void *)
Definition process.h:91
struct _route_entry_ AuRouteEntry
void AuRouteTableDelete(AuRouteEntry *entry)
Definition route.cpp:83
struct _route_entry_info_ AuRouteEntryInfo
int AuRouteTableGetNumEntry()
Definition route.cpp:109
void AuRouteTableAdd(AuRouteEntry *entry)
Definition route.cpp:68
void AuRouteTablePopulate(AuRouteEntry *whereToPopulate, int entryIndex)
Definition route.cpp:120
AuRouteEntry * AuRouteTableDoRouteLookup(uint32_t address)
Definition route.cpp:145
AuRouteEntry * AuRouteTableCreateEntry()
Definition route.cpp:56
void AuRouteTableInitialise()
Definition route.cpp:47
Definition route.h:36
uint32_t gateway
Definition route.h:41
uint32_t netmask
Definition route.h:39
uint32_t ifaddress
Definition route.h:40
char * ifname
Definition route.h:37
uint32_t dest
Definition route.h:38
uint8_t flags
Definition route.h:42
Definition route.h:45
int index
Definition route.h:46
void * route_entry
Definition route.h:47