aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig/af_ipx.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-06-13 18:07:59 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-06-13 18:07:59 +0000
commit0cae11b9cc34f93c79dd1a48f85e6d68224456e3 (patch)
tree98fb7c4ffa2afe3d88771757ae161ff33fcae39c /sbin/ifconfig/af_ipx.c
parentd3fd8d85fcf5507c669471c1dfea3cb66881d8ab (diff)
downloadsrc-0cae11b9cc34f93c79dd1a48f85e6d68224456e3.tar.gz
src-0cae11b9cc34f93c79dd1a48f85e6d68224456e3.zip
Remove IPX over IP tunneling pieces from ifconfig(8), omitted portion of
previous commit: Remove IPX over IP tunneling support, which allows IPX routing over IP tunnels, and was not MPSAFE. The code can be easily restored in the event that someone with an IPX over IP tunnel configuration can work with me to test patches. This removes one of five remaining consumers of NET_NEEDS_GIANT. Approved by: re (kensmith) Spotted by: Artem Naluzhny <tutat nhamon dot com dot ua>
Notes
Notes: svn path=/head/; revision=170679
Diffstat (limited to 'sbin/ifconfig/af_ipx.c')
-rw-r--r--sbin/ifconfig/af_ipx.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sbin/ifconfig/af_ipx.c b/sbin/ifconfig/af_ipx.c
index dd98d7efccb6..bc5d500dac76 100644
--- a/sbin/ifconfig/af_ipx.c
+++ b/sbin/ifconfig/af_ipx.c
@@ -44,7 +44,6 @@ static const char rcsid[] =
#include <ifaddrs.h>
#include <net/if_var.h>
-#define IPXIP
#define IPTUNNEL
#include <netipx/ipx.h>
#include <netipx/ipx_if.h>
@@ -97,16 +96,7 @@ ipx_getaddr(const char *addr, int which)
static void
ipx_postproc(int s, const struct afswtch *afp)
{
- if (setipdst) {
- struct ipxip_req rq;
- int size = sizeof(rq);
- rq.rq_ipx = ipx_addreq.ifra_addr;
- rq.rq_ip = ipx_addreq.ifra_dstaddr;
-
- if (setsockopt(s, 0, SO_IPXIP_ROUTE, &rq, size) < 0)
- Perror("Encapsulation Routing");
- }
}
static struct afswtch af_ipx = {