forked from wujingbang/aodv-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaodv_neigh.h
executable file
·36 lines (33 loc) · 1.57 KB
/
aodv_neigh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/***************************************************************************
aodv_neigh.h - description
-------------------
begin : Thu Jul 31 2003
copyright : (C) 2003 by Luke Klein-Berndt
email : [email protected]
***************************************************************************/
/***************************************************************************
Modified by Miguel Catalan Cid - [email protected] - Version: Mon Jan 1 2010
***************************************************************************/
#ifndef AODV_NEIGH_H
#define AODV_NEIGH_H
#include "aodv.h"
void init_aodv_neigh_list(void);
void delete_aodv_neigh_list(void);
aodv_neigh *find_aodv_neigh(u_int32_t target_ip);
int read_neigh_proc(char *buffer, char **buffer_location, off_t offset, int buffer_length,int *eof,void *data);
int read_rel_list_proc(char *buffer, char **buffer_location, off_t offset,
int buffer_length, int *eof, void *data);
int read_ett_list_proc(char *buffer, char **buffer_location, off_t offset,
int buffer_length, int *eof, void *data);
int read_node_load_proc(char *buffer, char **buffer_location, off_t offset,
int buffer_length, int *eof, void *data);
aodv_neigh *first_aodv_neigh(void);
aodv_neigh *create_aodv_neigh(u_int32_t ip);
int delete_aodv_neigh(u_int32_t ip);
int route_aodv_neigh( u_int32_t ip);
void cleanup_neigh_routes(void);
void neigh_read_lock(void);
void neigh_read_unlock(void);
void neigh_write_lock(void);
void neigh_write_unlock(void);
#endif