[Openvpn-devel,v2] mroute: remove leftovers of the PF removal
Commit Message
From: Razvan Cojocaru <razvanc@mailbox.org>
Commit 1308ccec ("Remove support for PF (Packet Filter)") removed the
last users of the MROUTE_SEC_* flags, the code setting MR_ARP and all
callers passing MAPF_SHOW_ARP. Drop them and the "ARP/" branch in
mroute_addr_print_ex() that could no longer be reached, and renumber
the remaining flags to close the gaps.
Change-Id: I459bcd0193347698b274b0d79b8f187289d4589b
Signed-off-by: Razvan Cojocaru <razvanc@mailbox.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2369
---
This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2369
This mail reflects revision 2 of this Change.
Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <frank@lichtenheld.com>
@@ -392,10 +392,6 @@
case MR_ADDR_IPV4:
{
- if ((flags & MAPF_SHOW_ARP) && (maddr.type & MR_ARP))
- {
- buf_printf(&out, "ARP/");
- }
if (maddr.type & MR_WITH_PROTO)
{
buf_printf(&out, "%s:", proto2ascii(maddr.proto, AF_INET, false));
@@ -40,13 +40,6 @@
#define MROUTE_EXTRACT_MCAST (1 << 2)
#define MROUTE_EXTRACT_IGMP (1 << 3)
-#define MROUTE_SEC_EXTRACT_SUCCEEDED (1 << (0 + MROUTE_SEC_SHIFT))
-#define MROUTE_SEC_EXTRACT_BCAST (1 << (1 + MROUTE_SEC_SHIFT))
-#define MROUTE_SEC_EXTRACT_MCAST (1 << (2 + MROUTE_SEC_SHIFT))
-#define MROUTE_SEC_EXTRACT_IGMP (1 << (3 + MROUTE_SEC_SHIFT))
-
-#define MROUTE_SEC_SHIFT 4
-
/*
* Choose the largest address possible with
* any of our supported types, which is IPv6
@@ -69,14 +62,11 @@
/* Address type mask indicating that netbits is part of address */
#define MR_WITH_NETBITS 8
-/* Indicates than IPv4 addr was extracted from ARP packet */
-#define MR_ARP 16
-
/* Address type mask indicating that proto # is part of address */
-#define MR_WITH_PROTO 32
+#define MR_WITH_PROTO 16
/* MRoute is an on link/scope address needed for DCO on Unix platforms */
-#define MR_ONLINK_DCO_ADDR 64
+#define MR_ONLINK_DCO_ADDR 32
struct mroute_addr
{
@@ -154,8 +144,7 @@
#define MAPF_SUBNET (1 << 0)
#define MAPF_IA_EMPTY_IF_UNDEF (1 << 1)
-#define MAPF_SHOW_ARP (1 << 2)
-#define MAPF_SHOW_FAMILY (1 << 3)
+#define MAPF_SHOW_FAMILY (1 << 2)
const char *mroute_addr_print_ex(const struct mroute_addr *ma, const unsigned int flags,
struct gc_arena *gc);