summaryrefslogtreecommitdiff
path: root/bgpd/bgp_attr.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-01-06 14:33:03 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-01-14 21:29:41 +0200
commita5c6a9b18ec94c01256f2c3abab2bf143a9c3622 (patch)
tree863cb4191e9be1a0a19143e87793252acbe277af /bgpd/bgp_attr.h
parent563212ee3e24aaa1f8c629814a5ecb0e78c859e4 (diff)
bgpd: Add `neighbor path-attribute discard` command
The idea is to drop unwanted attributes from the BGP UPDATE messages and continue by just ignoring them. This improves the security, flexiblity, etc. This is the command that Cisco has also. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_attr.h')
-rw-r--r--bgpd/bgp_attr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h
index a34da1a6de..cb0bf4a43c 100644
--- a/bgpd/bgp_attr.h
+++ b/bgpd/bgp_attr.h
@@ -414,6 +414,8 @@ extern unsigned int attrhash_key_make(const void *p);
extern void attr_show_all(struct vty *vty);
extern unsigned long int attr_count(void);
extern unsigned long int attr_unknown_count(void);
+extern void bgp_path_attribute_discard_vty(struct vty *vty, struct peer *peer,
+ const char *discard_attrs);
/* Cluster list prototypes. */
extern bool cluster_loop_check(struct cluster_list *cluster,