net.c: use AF_PACKET unconditionally
* net.c: Do not check for AF_PACKET availability.
diff --git a/net.c b/net.c
index 8ba5e13..cb4e636 100644
--- a/net.c
+++ b/net.c
@@ -100,9 +100,7 @@
#include "xlat/msg_flags.h"
-#if defined(AF_PACKET) /* from e.g. linux/if_packet.h */
-# include "xlat/af_packet_types.h"
-#endif
+#include "xlat/af_packet_types.h"
static void
print_ifindex(unsigned int ifindex)
@@ -131,9 +129,7 @@
#if defined(AF_IPX)
struct sockaddr_ipx sipx;
#endif
-#ifdef AF_PACKET
struct sockaddr_ll ll;
-#endif
struct sockaddr_nl nl;
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
struct sockaddr_hci hci;
@@ -212,7 +208,6 @@
}
break;
#endif /* AF_IPX */
-#ifdef AF_PACKET
case AF_PACKET:
{
int i;
@@ -228,7 +223,6 @@
}
break;
-#endif /* AF_PACKET */
case AF_NETLINK:
tprintf("pid=%d, groups=%08x", addr->nl.nl_pid, addr->nl.nl_groups);
break;