diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-23 19:50:00 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-23 19:50:00 +0000 |
commit | 2f76715fb3c6085157c269d3bc144859714ba8ee (patch) | |
tree | 8c42a934719b871da6c50f8514edf37e679f16d0 | |
parent | 99415d830f9163d5b3ef2c183bd90f8c7aa83b0b (diff) | |
download | FreeBSD-src-2f76715fb3c6085157c269d3bc144859714ba8ee.zip FreeBSD-src-2f76715fb3c6085157c269d3bc144859714ba8ee.tar.gz |
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.
-rw-r--r-- | sys/netipx/ipx_input.c | 22 | ||||
-rw-r--r-- | 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 |