summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-10-05 21:29:04 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-10-05 21:54:25 +0200
commit57aa077227d1f2440dc1b2bb6cbbebd418a6b898 (patch)
tree6fa256de15ca415262cfaeb7c4e0cc61cca3cdd1 /proto/bgp/bgp.h
parentba01a6f2e66d03eb5d9426fdf4973f30e09c5710 (diff)
BGP: Improve custom BGP attributes
- Implement EA_GET for custom BGP attributes - Forbid EA_SET on existing opaque attributes - Forbid redefining existing attributes - Document possible compatibility problems
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index 1ba3de5e..2e95037c 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -611,6 +611,7 @@ bgp_unset_attr(ea_list **to, struct linpool *pool, uint code)
int bgp_encode_mp_reach_mrt(struct bgp_write_state *s, eattr *a, byte *buf, uint size);
+const char * bgp_attr_name(uint code);
int bgp_encode_attrs(struct bgp_write_state *s, ea_list *attrs, byte *buf, byte *end);
ea_list * bgp_decode_attrs(struct bgp_parse_state *s, byte *data, uint len);
void bgp_finish_attrs(struct bgp_parse_state *s, rta *a);