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/+/2329?usp=email

to review the following change.


Change subject: tun: drop unused is_ip_packet_valid()
......................................................................

tun: drop unused is_ip_packet_valid()

Its last caller went away with Wintun support in ad7a6945
("win: remove Wintun support").

Change-Id: Ibab5e329d386651ba0dd0e2f4f9bc61c357cdebb
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/tun.h
1 file changed, 0 insertions(+), 27 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/2329/1

diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h
index 61fe943..d8680c6 100644
--- a/src/openvpn/tun.h
+++ b/src/openvpn/tun.h
@@ -502,33 +502,6 @@
 int tun_write_win32(struct tuntap *tt, const struct buffer *buf);

 static inline bool
-is_ip_packet_valid(const struct buffer *buf)
-{
-    const struct openvpn_iphdr *ih = (const struct openvpn_iphdr *)CBPTR(buf);
-
-    if (OPENVPN_IPH_GET_VER(ih->version_len) == 4)
-    {
-        if (BLENZ(buf) < sizeof(struct openvpn_iphdr))
-        {
-            return false;
-        }
-    }
-    else if (OPENVPN_IPH_GET_VER(ih->version_len) == 6)
-    {
-        if (BLENZ(buf) < sizeof(struct openvpn_ipv6hdr))
-        {
-            return false;
-        }
-    }
-    else
-    {
-        return false;
-    }
-
-    return true;
-}
-
-static inline bool
 tuntap_is_dco_win(const struct tuntap *tt)
 {
     return tt && tt->backend_driver == DRIVER_DCO;

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2329?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: Ibab5e329d386651ba0dd0e2f4f9bc61c357cdebb
Gerrit-Change-Number: 2329
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