diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2016-10-05 07:38:07 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2016-10-05 07:38:07 +0000 |
commit | fc3f943158b70e208265cb5b52b20953505e3865 (patch) | |
tree | 9787167bf2c03cbfca6a312f95f071a2f5137d8e /usr.sbin/bgpd/bgpd.h | |
parent | 262f0f6c1197205331edd8d3e5b0ed1c0f9e2ba0 (diff) |
Let bgpd announce routes based on a route-label.
OK henning@ benno@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 6bd19c19c55..1531dac3bd9 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.295 2016/09/02 14:00:29 benno Exp $ */ +/* $OpenBSD: bgpd.h,v 1.296 2016/10/05 07:38:06 phessler Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -85,6 +85,7 @@ #define F_CTL_ADJ_IN 0x2000 #define F_CTL_ADJ_OUT 0x4000 #define F_CTL_ACTIVE 0x8000 +#define F_RTLABEL 0x10000 /* * Limit the number of control messages generated by the RDE and queued in @@ -334,6 +335,7 @@ enum network_type { NETWORK_DEFAULT, NETWORK_STATIC, NETWORK_CONNECTED, + NETWORK_RTLABEL, NETWORK_MRTCLONE }; @@ -342,6 +344,7 @@ struct network_config { struct filter_set_head attrset; struct rde_aspath *asp; u_int rtableid; + u_int16_t rtlabel; enum network_type type; u_int8_t prefixlen; u_int8_t old; /* used for reloading */ @@ -507,6 +510,7 @@ struct kroute_full { struct bgpd_addr prefix; struct bgpd_addr nexthop; char label[RTLABEL_LEN]; + u_int16_t labelid; u_int16_t flags; u_short ifindex; u_int8_t prefixlen; |