From eb60ee34c5b755b706d6eb986f95e636a4d75be1 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 23 Sep 2022 15:50:41 +0000 Subject: [PATCH] Don't depend on RTLABEL_LEN but instead define our own ROUTELABEL_LEN. With this bgpd.h no longer depends on net/route.h OK tb@ --- usr.sbin/bgpd/bgpd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 7eedb84f988..70d47382f69 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.453 2022/09/21 21:12:03 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.454 2022/09/23 15:50:41 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -41,6 +40,7 @@ #define PEER_DESCR_LEN 32 #define REASON_LEN 256 /* includes NUL terminator */ #define PFTABLE_LEN 32 +#define ROUTELABEL_LEN 32 #define TCP_MD5_KEY_LEN 80 #define IPSEC_ENC_KEY_LEN 32 #define IPSEC_AUTH_KEY_LEN 20 @@ -705,7 +705,7 @@ struct ktable { struct kroute_full { struct bgpd_addr prefix; struct bgpd_addr nexthop; - char label[RTLABEL_LEN]; + char label[ROUTELABEL_LEN]; uint32_t mplslabel; uint16_t flags; u_short ifindex; @@ -1117,7 +1117,7 @@ struct filter_set { struct nexthop *nh_ref; struct community community; char pftable[PFTABLE_LEN]; - char rtlabel[RTLABEL_LEN]; + char rtlabel[ROUTELABEL_LEN]; uint8_t origin; } action; enum action_types type; -- 2.20.1