net.c: use AF_IPX unconditionally
* net.c (sockaddr_buf_t, print_sockaddr, SYS_FUNC(socket)): Do not check
for AF_IPX availability.
diff --git a/net.c b/net.c
index 1a6c265..8b43444 100644
--- a/net.c
+++ b/net.c
@@ -126,9 +126,7 @@
#ifdef HAVE_INET_NTOP
struct sockaddr_in6 sa6;
#endif
-#if defined(AF_IPX)
struct sockaddr_ipx sipx;
-#endif
struct sockaddr_ll ll;
struct sockaddr_nl nl;
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
@@ -189,7 +187,6 @@
}
break;
#endif
-#if defined(AF_IPX)
case AF_IPX:
{
int i;
@@ -207,7 +204,7 @@
tprintf("/[%02x]", addr->sipx.sipx_type);
}
break;
-#endif /* AF_IPX */
+
case AF_PACKET:
{
int i;
@@ -777,14 +774,14 @@
case AF_INET6:
printxval(inet_protocols, tcp->u_arg[2], "IPPROTO_???");
break;
-#ifdef AF_IPX
+
case AF_IPX:
/* BTW: I don't believe this.. */
tprints("[");
printxval(addrfams, tcp->u_arg[2], "AF_???");
tprints("]");
break;
-#endif /* AF_IPX */
+
case AF_NETLINK:
printxval(netlink_protocols, tcp->u_arg[2], "NETLINK_???");
break;