|
Link Here
|
| 1 |
--- bgpd/bgpd.h.orig Tue Oct 12 22:06:09 2004 |
1 |
--- bgpd/bgpd.h.orig Wed Jan 11 03:10:10 2006 |
| 2 |
+++ bgpd/bgpd.h Fri Jan 28 21:03:40 2005 |
2 |
+++ bgpd/bgpd.h Mon Jan 30 08:52:06 2006 |
| 3 |
@@ -335,6 +335,9 @@ |
3 |
@@ -347,6 +347,9 @@ |
| 4 |
#define PEER_FLAG_DYNAMIC_CAPABILITY (1 << 6) /* dynamic capability */ |
4 |
#define PEER_FLAG_DYNAMIC_CAPABILITY (1 << 5) /* dynamic capability */ |
| 5 |
#define PEER_FLAG_ENFORCE_MULTIHOP (1 << 7) /* enforce-multihop */ |
5 |
#define PEER_FLAG_DISABLE_CONNECTED_CHECK (1 << 6) /* disable-connected-check */ |
| 6 |
#define PEER_FLAG_LOCAL_AS_NO_PREPEND (1 << 8) /* local-as no-prepend */ |
6 |
#define PEER_FLAG_LOCAL_AS_NO_PREPEND (1 << 7) /* local-as no-prepend */ |
| 7 |
+#ifdef QUAGGA_TCP_MD5SIG /* XXX should move to AF_INET/SFI_UNICAST below */ |
7 |
+#ifdef QUAGGA_TCP_MD5SIG |
| 8 |
+#define PEER_FLAG_TCP_SIGNATURE (1 << 9) /* use TCP-MD5 digest */ |
8 |
+#define PEER_FLAG_TCP_SIGNATURE (1 << 9) /* use TCP-MD5 digest */ |
| 9 |
+#endif /* QUAGGA_TCP_MD5SIG */ |
9 |
+#endif /* QUAGGA_TCP_MD5SIG */ |
| 10 |
|
10 |
|
| 11 |
/* Per AF configuration flags. */ |
11 |
/* NSF mode (graceful restart) */ |
| 12 |
u_int32_t af_flags[AFI_MAX][SAFI_MAX]; |
12 |
u_char nsf[AFI_MAX][SAFI_MAX]; |
| 13 |
@@ -496,6 +499,13 @@ |
13 |
@@ -522,6 +525,13 @@ |
| 14 |
#define PEER_RMAP_TYPE_NOSET (1 << 5) /* not allow to set commands */ |
14 |
#define PEER_RMAP_TYPE_NOSET (1 << 5) /* not allow to set commands */ |
| 15 |
#define PEER_RMAP_TYPE_IMPORT (1 << 6) /* neighbor route-map import */ |
15 |
#define PEER_RMAP_TYPE_IMPORT (1 << 6) /* neighbor route-map import */ |
| 16 |
#define PEER_RMAP_TYPE_EXPORT (1 << 7) /* neighbor route-map export */ |
16 |
#define PEER_RMAP_TYPE_EXPORT (1 << 7) /* neighbor route-map export */ |
| 17 |
+ |
17 |
+ |
| 18 |
+#ifdef QUAGGA_TCP_MD5SIG |
18 |
+#ifdef QUAGGA_TCP_MD5SIG |
| 19 |
+ /* TCP-MD5 Password Support -- bms */ |
19 |
+ /* TCP-MD5 Password Support -- bms */ |
| 20 |
+#define PEER_PASSWORD_MINLEN 1 |
20 |
+#define PEER_PASSWORD_MINLEN 1 |
| 21 |
+#define PEER_PASSWORD_MAXLEN 80 /* width of password field */ |
21 |
+#define PEER_PASSWORD_MAXLEN 80 /* width of password field */ |
| 22 |
+ char password[PEER_PASSWORD_MAXLEN]; |
22 |
+ char password[PEER_PASSWORD_MAXLEN]; |
|
Link Here
|
| 24 |
}; |
24 |
}; |
| 25 |
|
25 |
|
| 26 |
/* This structure's member directly points incoming packet data |
26 |
/* This structure's member directly points incoming packet data |
| 27 |
@@ -879,6 +889,11 @@ |
27 |
@@ -904,6 +914,11 @@ |
| 28 |
|
28 |
|
| 29 |
int peer_local_as_set (struct peer *, as_t, int); |
29 |
extern int peer_local_as_set (struct peer *, as_t, int); |
| 30 |
int peer_local_as_unset (struct peer *); |
30 |
extern int peer_local_as_unset (struct peer *); |
| 31 |
+ |
31 |
+ |
| 32 |
+#ifdef QUAGGA_TCP_MD5SIG |
32 |
+#ifdef QUAGGA_TCP_MD5SIG |
| 33 |
+int peer_password_set (struct peer *, char *); |
33 |
+extern int peer_password_set (struct peer *, char *); |
| 34 |
+int peer_password_unset (struct peer *); |
34 |
+extern int peer_password_unset (struct peer *); |
| 35 |
+#endif /* QUAGGA_TCP_MD5SIG */ |
35 |
+#endif /* QUAGGA_TCP_MD5SIG */ |
| 36 |
|
36 |
|
| 37 |
int peer_prefix_list_set (struct peer *, afi_t, safi_t, int, const char *); |
37 |
extern int peer_prefix_list_set (struct peer *, afi_t, safi_t, int, const char *); |
| 38 |
int peer_prefix_list_unset (struct peer *, afi_t, safi_t, int); |
38 |
extern int peer_prefix_list_unset (struct peer *, afi_t, safi_t, int); |