The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ll_map.h
Go to the documentation of this file.
1 #ifndef LL_MAP_H
2 #define LL_MAP_H
3 
4 void ll_free_index(void);
5 int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
6 int ll_init_map(struct rtnl_handle *rth);
7 int ll_name_to_index(const char *name);
8 const char *ll_index_to_name(int idx);
9 const char *ll_idx_n2a(int idx, char *buf);
10 int ll_index_to_type(int idx);
11 unsigned ll_index_to_flags(int idx);
12 int ll_first_up_if(void);
13 int ll_nth_up_if(int n);
14 
15 #endif /*LL_MAP_H*/
const char * ll_index_to_name(int idx)
Definition: ll_map.c:110
int ll_init_map(struct rtnl_handle *rth)
Definition: ll_map.c:192
int ll_name_to_index(const char *name)
Definition: ll_map.c:142
Definition: libnetlink.h:8
int ll_nth_up_if(int n)
Definition: ll_map.c:166
int ll_index_to_type(int idx)
Definition: ll_map.c:117
struct rtnl_handle * rth
Definition: if.c:46
const char * ll_idx_n2a(int idx, char *buf)
Definition: ll_map.c:96
char name[16]
Definition: ll_map.c:30
int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
Definition: ll_map.c:46
unsigned ll_index_to_flags(int idx)
Definition: ll_map.c:129
int ll_first_up_if(void)
Definition: ll_map.c:187
void ll_free_index(void)
Definition: ll_map.c:35