-/* $OpenBSD: bgpd.h,v 1.484 2024/01/30 13:50:08 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.485 2024/02/13 16:35:43 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
struct in_addr v4;
struct in6_addr v6;
/* maximum size for a prefix is 256 bits */
- } ba; /* 128-bit address */
+ }; /* 128-bit address */
uint64_t rd; /* route distinguisher for VPN addrs */
uint32_t scope_id; /* iface scope id for v6 */
uint8_t aid;
uint8_t labellen; /* size of the labelstack */
uint8_t labelstack[18]; /* max that makes sense */
-#define v4 ba.v4
-#define v6 ba.v6
};
#define DEFAULT_LISTENER 0x01
-/* $OpenBSD: pftable.c,v 1.17 2022/08/17 15:15:26 claudio Exp $ */
+/* $OpenBSD: pftable.c,v 1.18 2024/02/13 16:35:43 claudio Exp $ */
/*
* Copyright (c) 2004 Damien Miller <djm@openbsd.org>
#include "log.h"
-/* Namespace collision: these are defined in both bgpd.h and pfvar.h */
+/* Namespace collision: these are defined in pfvar.h and bgpd.h */
#undef v4
#undef v6
-#undef addr8
-#undef addr16
-#undef addr32
#include "bgpd.h"
pfa = &pft->worklist[pft->naddrs];
memset(pfa, 0, sizeof(*pfa));
- memcpy(&pfa->pfra_u, &addr->ba, (len + 7U) / 8);
+ memcpy(&pfa->pfra_u, &addr->v6, (len + 7U) / 8);
pfa->pfra_af = aid2af(addr->aid);
pfa->pfra_net = len;