]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - nest/route.h
RPKI protocol with one cache server per protocol
[thirdparty/bird.git] / nest / route.h
index b5885ee3fb29c7934ae59b38b859095faeeb1542..74bbe4abdb1097f1ef09bea33770d4d1c1b0cb8e 100644 (file)
@@ -283,7 +283,7 @@ void *net_route(rtable *tab, const net_addr *n);
 int net_roa_check(rtable *tab, const net_addr *n, u32 asn);
 rte *rte_find(net *net, struct rte_src *src);
 rte *rte_get_temp(struct rta *);
-void rte_update2(struct channel *c, net_addr *n, rte *new, struct rte_src *src);
+void rte_update2(struct channel *c, const net_addr *n, rte *new, struct rte_src *src);
 /* rte_update() moved to protocol.h to avoid dependency conflicts */
 void rte_discard(rtable *tab, rte *old);
 int rt_examine(rtable *t, net_addr *a, struct proto *p, struct filter *filter);
@@ -384,6 +384,8 @@ typedef struct rta {
 #define RTS_BGP 11                     /* BGP route */
 #define RTS_PIPE 12                    /* Inter-table wormhole */
 #define RTS_BABEL 13                   /* Babel route */
+#define RTS_RPKI 14                    /* Route Origin Authorization */
+
 
 #define RTC_UNICAST 0
 #define RTC_BROADCAST 1
@@ -561,6 +563,7 @@ extern struct protocol *attr_class_to_protocol[EAP_MAX];
 #define DEF_PREF_BABEL         130     /* Babel */
 #define DEF_PREF_RIP           120     /* RIP */
 #define DEF_PREF_BGP           100     /* BGP */
+#define DEF_PREF_RPKI          100     /* RPKI */
 #define DEF_PREF_INHERITED     10      /* Routes inherited from other routing daemons */
 
 /*