From b5578ef4f5761a59735b81baee016beb3df596f6 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 8 Aug 2018 14:29:05 +0000 Subject: [PATCH] Move struct wire_largecommunity to rde_attr.c since it is only used internally --- usr.sbin/bgpd/bgpd.h | 8 +------- usr.sbin/bgpd/rde_attr.c | 8 +++++++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index bb310a3909e..92ffec8bd16 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.328 2018/07/22 16:52:27 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.329 2018/08/08 14:29:05 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -682,12 +682,6 @@ struct filter_largecommunity { int64_t ld2; }; -struct wire_largecommunity { - uint32_t as; - uint32_t ld1; - uint32_t ld2; -}; - struct filter_extcommunity { u_int16_t flags; u_int8_t type; diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index 5f8ebac6966..a5291c2a390 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.106 2018/08/08 13:32:36 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.107 2018/08/08 14:29:05 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker @@ -1337,6 +1337,12 @@ community_ext_matchone(struct filter_extcommunity *c, u_int16_t neighas, return (0); } +struct wire_largecommunity { + uint32_t as; + uint32_t ld1; + uint32_t ld2; +}; + int community_large_match(struct rde_aspath *asp, int64_t as, int64_t ld1, int64_t ld2) -- 2.20.1