Attention is currently required from: Arne Schwabe.

Hello Arne Schwabe,

I'd like you to do a code review.
Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2369?usp=email

to review the following change.


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.

Change-Id: I459bcd0193347698b274b0d79b8f187289d4589b
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/mroute.c
M src/openvpn/mroute.h
2 files changed, 0 insertions(+), 15 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/69/2369/1

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..802c04b 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,9 +62,6 @@
 /* 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

@@ -154,7 +144,6 @@

 #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)
 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: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I459bcd0193347698b274b0d79b8f187289d4589b
Gerrit-Change-Number: 2369
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to