From 2f76715fb3c6085157c269d3bc144859714ba8ee Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 23 Mar 2006 19:50:00 +0000 Subject: Admit to ourselves that we don't actually implement pr_ctlinput() for IPX or SPX, as the code in the implementing functions is essentially a no-op. Replace with a comment indicating we don't implement these currently. --- sys/netipx/ipx_input.c | 22 +--------------------- sys/netipx/spx_usrreq.c | 24 +----------------------- 2 files changed, 2 insertions(+), 44 deletions(-) diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c index 9631b74..b751ea4c 100644 --- a/sys/netipx/ipx_input.c +++ b/sys/netipx/ipx_input.c @@ -294,28 +294,8 @@ ipx_ctlinput(cmd, arg_as_sa, dummy) struct sockaddr *arg_as_sa; /* XXX should be swapped with dummy */ void *dummy; { - caddr_t arg = (/* XXX */ caddr_t)arg_as_sa; - struct ipx_addr *ipx; - if (cmd < 0 || cmd >= PRC_NCMDS) - return; - switch (cmd) { - struct sockaddr_ipx *sipx; - - case PRC_IFDOWN: - case PRC_HOSTDEAD: - case PRC_HOSTUNREACH: - sipx = (struct sockaddr_ipx *)arg; - if (sipx->sipx_family != AF_IPX) - return; - ipx = &sipx->sipx_addr; - break; - - default: - if (ipxprintfs) - printf("ipx_ctlinput: cmd %d.\n", cmd); - break; - } + /* Currently, nothing. */ } /* diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c index 3b42731..0307d64 100644 --- a/sys/netipx/spx_usrreq.c +++ b/sys/netipx/spx_usrreq.c @@ -698,30 +698,8 @@ spx_ctlinput(cmd, arg_as_sa, dummy) struct sockaddr *arg_as_sa; /* XXX should be swapped with dummy */ void *dummy; { - caddr_t arg = (/* XXX */ caddr_t)arg_as_sa; - struct ipx_addr *na; - struct sockaddr_ipx *sipx; - if (cmd < 0 || cmd >= PRC_NCMDS) - return; - - switch (cmd) { - - case PRC_ROUTEDEAD: - return; - - case PRC_IFDOWN: - case PRC_HOSTDEAD: - case PRC_HOSTUNREACH: - sipx = (struct sockaddr_ipx *)arg; - if (sipx->sipx_family != AF_IPX) - return; - na = &sipx->sipx_addr; - break; - - default: - break; - } + /* Currently, nothing. */ } static int -- cgit v1.1