diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:29:16 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:29:16 +0200 |
commit | 6410e93aa52a7b406bcbdaecc05a67a2030e4a27 (patch) | |
tree | 721a04018dbfe2fb7935d6f8d5c89b5c4692bd14 /bgpd/bgp_open.h | |
parent | quagga: quagga-debian-upgrade.patch (diff) | |
download | frr-6410e93aa52a7b406bcbdaecc05a67a2030e4a27.tar.xz frr-6410e93aa52a7b406bcbdaecc05a67a2030e4a27.zip |
bgpd-hostname-cap.patch
bgpd: Exchange hostname capability and display hostnames in outputs
This patch adds a hostname capability. The node's hostname and
domainname are exchanged in the new capability and used in show command
outputs based on a knob enabled by the user. The hostname and domainname
can be a maximum of 64 chars long, each.
Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Vivek Venkataraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_open.h')
-rw-r--r-- | bgpd/bgp_open.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h index da6f29d2a..a818141fc 100644 --- a/bgpd/bgp_open.h +++ b/bgpd/bgp_open.h @@ -79,6 +79,7 @@ struct capability_gr #define CAPABILITY_CODE_ADDPATH 69 /* Addpath Capability */ #define CAPABILITY_CODE_REFRESH_OLD 128 /* Route Refresh Capability(cisco) */ #define CAPABILITY_CODE_ORF_OLD 130 /* Cooperative Route Filtering Capability(cisco) */ +#define CAPABILITY_CODE_HOSTNAME 131 /* Advertise hostname capabilty */ /* Capability Length */ #define CAPABILITY_CODE_MP_LEN 4 @@ -87,6 +88,7 @@ struct capability_gr #define CAPABILITY_CODE_RESTART_LEN 2 /* Receiving only case */ #define CAPABILITY_CODE_AS4_LEN 4 #define CAPABILITY_CODE_ADDPATH_LEN 4 +#define CAPABILITY_CODE_MIN_HOSTNAME_LEN 2 /* Cooperative Route Filtering Capability. */ |