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#include <Net/ipv6.h>
35
36/* Simple Route table entry structure */
45
54
59
60
61/*
62 * AuRouteTableInitialise -- initialise the kernel route
63 * table
64 */
65extern void AuRouteTableInitialise();
66
67/*
68 * AuRouteTableCreateEntry -- create a new route table
69 * entry and return
70 */
72
73/*
74 * AuRouteTableAdd -- add an entry to route
75 * table
76 * @param entry -- Entry to add
77 */
79
80/*
81 * AuRouteTableDelete -- delete an entry from
82 * route table
83 * @param entry -- entry to delete
84 */
86
87/*
88 * AuRouteTableGetNumEntry -- returns the number
89 * route entry present in the system
90 */
91extern int AuRouteTableGetNumEntry();
92
93/*
94 * AuRouteTablePopulate -- populates a given memory pointer with
95 * route table entry indexed by entryIndex number
96 * @param whereToPopulate -- memory pointer where to populate
97 * with an entry
98 * @param entryIndex -- entry index number
99 */
100extern void AuRouteTablePopulate(AuRouteEntry* whereToPopulate, int entryIndex);
101
102/*
103 * AuRouteTableDoRouteLookup -- takes the decision on taking
104 * the best route
105 * @param address -- address to take for routing
106 */
108
109/*
110 * AuRouteTable6Initialise -- initialise IPv6 route table
111 */
112extern void AuRouteTable6Initialise();
113
117#endif
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
void(* entry)(void *)
Definition process.h:98
struct _route_entry_ AuRouteEntry
void AuRouteTableDelete(AuRouteEntry *entry)
AuRouteTableDelete – delete an entry from route table.
Definition route.cpp:83
struct _route_entry_info_ AuRouteEntryInfo
int AuRouteTableGetNumEntry()
AuRouteTableGetNumEntry – returns the number route entry present in the system.
Definition route.cpp:109
void AuRouteTableAdd(AuRouteEntry *entry)
AuRouteTableAdd – add an entry to route table.
Definition route.cpp:68
AuRouteEntry6 * AuRouteTable6CreateEntry()
Definition route.c:163
void AuRouteTablePopulate(AuRouteEntry *whereToPopulate, int entryIndex)
AuRouteTablePopulate – populates a given memory pointer with route table entry indexed by entryIndex ...
Definition route.cpp:120
struct _route_entry6_ AuRouteEntry6
void AuRouteTable6Initialise()
Definition route.c:159
void AuRouteTable6Add(AuRouteEntry6 *entry)
Definition route.c:171
AuRouteEntry * AuRouteTableDoRouteLookup(uint32_t address)
AuRouteTableDoRouteLookup – takes the decision on taking the best route.
Definition route.cpp:145
AuRouteEntry * AuRouteTableCreateEntry()
AuRouteTableCreateEntry – create a new route table entry and return.
Definition route.cpp:56
void AuRouteTableInitialise()
AuRouteTableInitialise – initialise the kernel route table.
Definition route.cpp:47
AuRouteEntry6 * AuRouteTableDoRouteLookup6(const ip6_addr *address)
Definition route.c:179
Definition ipv6.h:45
Definition route.h:46
ip6_addr gateway
Definition route.h:51
uint8_t prefixLen
Definition route.h:49
ip6_addr dest
Definition route.h:48
ip6_addr ifaddress
Definition route.h:50
char * ifname
Definition route.h:47
uint8_t flags
Definition route.h:52
Definition route.h:37
uint32_t gateway
Definition route.h:42
uint32_t netmask
Definition route.h:40
uint32_t ifaddress
Definition route.h:41
char * ifname
Definition route.h:38
uint32_t dest
Definition route.h:39
uint8_t flags
Definition route.h:43
Definition route.h:55
int index
Definition route.h:56
void * route_entry
Definition route.h:57