Attention is currently required from: Arne Schwabe, Frank Lichtenheld, Răzvan
Cojocaru.
Hello Arne Schwabe, Frank Lichtenheld,
I'd like you to reexamine a change. Please visit
https://gerrit.openvpn.net/c/openvpn/+/2369?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review-1 by Frank Lichtenheld
Change subject: mroute: remove leftovers of the PF removal
......................................................................
mroute: remove leftovers of the PF removal
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 <[email protected]>
---
M src/openvpn/mroute.c
M src/openvpn/mroute.h
2 files changed, 3 insertions(+), 18 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/69/2369/2
diff --git a/src/openvpn/mroute.c b/src/openvpn/mroute.c
index 261d25a..f102071 100644
--- a/src/openvpn/mroute.c
+++ b/src/openvpn/mroute.c
@@ -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));
diff --git a/src/openvpn/mroute.h b/src/openvpn/mroute.h
index 9d61b22..bccfed5 100644
--- a/src/openvpn/mroute.h
+++ b/src/openvpn/mroute.h
@@ -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);
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2369?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I459bcd0193347698b274b0d79b8f187289d4589b
Gerrit-Change-Number: 2369
Gerrit-PatchSet: 2
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Frank Lichtenheld <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Attention: Frank Lichtenheld <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel