From: Razvan Cojocaru <[email protected]> Its last caller went away with Wintun support in ad7a6945 ("win: remove Wintun support").
Change-Id: Ibab5e329d386651ba0dd0e2f4f9bc61c357cdebb Signed-off-by: Razvan Cojocaru <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2329 --- 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/+/2329 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering <[email protected]> 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; _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
