summaryrefslogtreecommitdiff
path: root/bgpd/bgp_rd.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2018-03-26 17:11:39 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-25 12:39:16 -0400
commit92708db6c3b8ff9dfa81a8bbb99a472f05d76f35 (patch)
treeef9595c1c81148365e41ef311e17e2deb701709b /bgpd/bgp_rd.h
parentd793761d5a3355225d147f3ba853a56537dbf330 (diff)
bgpd: Auto RD definitions and encoding
Setup a per-VRF identifier to use along with the Router Id to build the RD. Define a function to encode the RD. Code is brought over from EVPN and EVPN code has been modified to use the generic function. Ticket: CM-20256 Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_rd.h')
-rw-r--r--bgpd/bgp_rd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_rd.h b/bgpd/bgp_rd.h
index a8ea83a4a7..c5ea34103f 100644
--- a/bgpd/bgp_rd.h
+++ b/bgpd/bgp_rd.h
@@ -66,5 +66,7 @@ extern void decode_rd_vnc_eth(uint8_t *pnt, struct rd_vnc_eth *rd_vnc_eth);
extern int str2prefix_rd(const char *, struct prefix_rd *);
extern char *prefix_rd2str(struct prefix_rd *, char *, size_t);
+extern void form_auto_rd(struct in_addr router_id, uint16_t rd_id,
+ struct prefix_rd *prd);
#endif /* _QUAGGA_BGP_RD_H */