summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-07-20 00:45:07 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-07-20 00:45:07 +0000
commit78f8d0eee37975cb94d01d967352da1d765c8890 (patch)
treee50af620f14526a3ef05aead39e3db71547e0b16
parent196b5480cc7a1a47dd19c15d787a061b0115c15a (diff)
Notes
-rw-r--r--sys/conf/options1
-rw-r--r--sys/i386/conf/LINT1
-rw-r--r--sys/net/if_gif.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options
index 29cd0c95bb15..cb396c7ed948 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -253,6 +253,7 @@ TCP_COMPAT_42 opt_compat.h
TCPDEBUG
TCP_DROP_SYNFIN opt_tcp_input.h
TCP_RESTRICT_RST opt_tcp_input.h
+XBONEHACK
# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
# Each netgraph node type can be either be compiled into the kernel
diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT
index cf2005f5f16c..0c1f27116a28 100644
--- a/sys/i386/conf/LINT
+++ b/sys/i386/conf/LINT
@@ -2432,3 +2432,4 @@ options VFS_BIO_DEBUG
options VM_KMEM_SIZE
options VM_KMEM_SIZE_MAX
options VM_KMEM_SIZE_SCALE
+options XBONEHACK
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 0337a61e80fa..085ff3d64864 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -470,12 +470,14 @@ gif_ioctl(ifp, cmd, data)
sc2->gif_psrc->sa_family != src->sa_family ||
sc2->gif_psrc->sa_len != src->sa_len)
continue;
+#ifndef XBONEHACK
/* can't configure same pair of address onto two gifs */
if (bcmp(sc2->gif_pdst, dst, dst->sa_len) == 0 &&
bcmp(sc2->gif_psrc, src, src->sa_len) == 0) {
error = EADDRNOTAVAIL;
goto bad;
}
+#endif
/* can't configure multiple multi-dest interfaces */
#define multidest(x) \