blob: fc4ef8f49330752bd863405bada265cd354fab6e (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define RIP_PORT 520
#define RIPCMD_REQUEST 1
#define RIPCMD_RESPONSE 2
#define RIP98_INFINITY 16
#define RIP_VERSION_98 98
#define RIP_AF_INET 2
#define RIP98_HEADER 4
#define RIP98_ENTRY 6
#define RIP98_MAX_FRAME 30
struct route_struct {
struct route_struct *next;
struct in_addr addr;
int bits;
int metric;
#define ORIG_ROUTE 0
#define FIXED_ROUTE 1
#define NEW_ROUTE 2
#define DEL_ROUTE 3
int action;
};
extern struct route_struct *first_route;
struct dest_struct {
struct in_addr dest_addr;
};
extern struct dest_struct dest_list[];
extern int dest_count;
extern int debug;
extern int route_restrict;
extern int logging;
/* In rip98d.c */
extern unsigned int mask2bits(unsigned long int);
extern unsigned long int bits2mask(unsigned int);
/* In rip98t.c */
extern void transmit_routes(int);
/* In rip98r.c */
extern void receive_routes(int);
|