]> git.proxmox.com Git - mirror_ovs.git/commitdiff
netdev-linux: Don't include <net/if_packet.h>.
authorBen Pfaff <blp@ovn.org>
Wed, 3 Oct 2018 22:39:32 +0000 (15:39 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 3 Oct 2018 23:55:55 +0000 (16:55 -0700)
This header only defines sockaddr_pkt, which this source file doesn't use.

This was the only user of net/if_packet.h, so also remove the
configure-time test for it (which netdev-linux wasn't using anyway).

Reported-by: Andre McCurdy <armccurdy@gmail.com>
Reported-at: https://github.com/openvswitch/ovs/pull/253
Signed-off-by: Ben Pfaff <blp@ovn.org>
acinclude.m4
configure.ac
lib/netdev-linux.c

index 8d850349817f00f18a9f4011de15d267226a9575..ed83df43df546c16d7f5e38e31e8a27330d83435 100644 (file)
@@ -906,17 +906,6 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
   fi
 ])
 
-dnl Checks for net/if_packet.h.
-AC_DEFUN([OVS_CHECK_IF_PACKET],
-  [AC_CHECK_HEADER([net/if_packet.h],
-                   [HAVE_IF_PACKET=yes],
-                   [HAVE_IF_PACKET=no])
-   AM_CONDITIONAL([HAVE_IF_PACKET], [test "$HAVE_IF_PACKET" = yes])
-   if test "$HAVE_IF_PACKET" = yes; then
-      AC_DEFINE([HAVE_IF_PACKET], [1],
-                [Define to 1 if net/if_packet.h is available.])
-   fi])
-
 dnl Checks for net/if_dl.h.
 dnl
 dnl (We use this as a proxy for checking whether we're building on FreeBSD
index aa92b151a28bdcbf2c93db5216f3e8f4a8f1473f..2b3800310231cc60b744e09357df6485c360ca5a 100644 (file)
@@ -96,7 +96,6 @@ OVS_CHECK_PYTHON
 OVS_CHECK_FLAKE8
 OVS_CHECK_SPHINX
 OVS_CHECK_DOT
-OVS_CHECK_IF_PACKET
 OVS_CHECK_IF_DL
 OVS_CHECK_STRTOK_R
 AC_CHECK_DECLS([sys_siglist], [], [], [[#include <signal.h>]])
index 3c6eb48ead8c470e2140a9c4b3c9857ecb355665..f86dcd06e563620274e5911d12916e534b0584b7 100644 (file)
@@ -39,7 +39,6 @@
 #include <netpacket/packet.h>
 #include <net/if.h>
 #include <net/if_arp.h>
-#include <net/if_packet.h>
 #include <net/route.h>
 #include <poll.h>
 #include <stdlib.h>