diff options
Diffstat (limited to 'bgpd/bgp_open.h')
-rw-r--r-- | bgpd/bgp_open.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h index 2b1382d8..dd294eae 100644 --- a/bgpd/bgp_open.h +++ b/bgpd/bgp_open.h @@ -21,6 +21,10 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #ifndef _QUAGGA_BGP_OPEN_H #define _QUAGGA_BGP_OPEN_H +#include "log.h" +#include "stream.h" +#include "vty.h" + /* Standard header for capability TLV */ struct capability_header { @@ -37,7 +41,7 @@ struct capability_mp_data }; #pragma pack(1) -struct capability_orf_entry +struct capability_orf_entry { struct capability_mp_data mpc; u_char num; @@ -86,13 +90,13 @@ struct capability_gr /* Cooperative Route Filtering Capability. */ /* ORF Type */ -#define ORF_TYPE_PREFIX 64 +#define ORF_TYPE_PREFIX 64 #define ORF_TYPE_PREFIX_OLD 128 /* ORF Mode */ -#define ORF_MODE_RECEIVE 1 -#define ORF_MODE_SEND 2 -#define ORF_MODE_BOTH 3 +#define ORF_MODE_RECEIVE 1 +#define ORF_MODE_SEND 2 +#define ORF_MODE_BOTH 3 /* Capability Message Action. */ #define CAPABILITY_ACTION_SET 0 @@ -102,10 +106,20 @@ struct capability_gr #define RESTART_R_BIT 0x8000 #define RESTART_F_BIT 0x80 +extern const struct message capcode_str[]; +extern const int capcode_str_max; + +extern const struct message orf_type_str[]; +extern const int orf_type_str_max; +extern const struct message orf_mode_str[]; +extern const int orf_mode_str_max; + extern int bgp_open_option_parse (struct peer *, u_char, int *); extern void bgp_open_capability (struct stream *, struct peer *); extern void bgp_capability_vty_out (struct vty *, struct peer *); extern as_t peek_for_as4_capability (struct peer *, u_char); +extern void bgp_capability_mp_data (struct stream *s, + struct capability_mp_data *mpc); extern int bgp_afi_safi_valid_indices (afi_t, safi_t *); #endif /* _QUAGGA_BGP_OPEN_H */ |