Move struct wire_largecommunity to rde_attr.c since it is only used internally
authorclaudio <claudio@openbsd.org>
Wed, 8 Aug 2018 14:29:05 +0000 (14:29 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 8 Aug 2018 14:29:05 +0000 (14:29 +0000)
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/rde_attr.c

index bb310a3..92ffec8 100644 (file)
@@ -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 <henning@openbsd.org>
@@ -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;
index 5f8ebac..a5291c2 100644 (file)
@@ -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 <claudio@openbsd.org>
@@ -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)