Temporary hack for the benefit of the X-Bone project

(http://www.isi.edu/xbone). I expect this to go away in due course.

Submitted by:	Lars Eggert <larse@ISI.EDU>
This commit is contained in:
Kris Kennaway 2000-07-20 00:35:37 +00:00
parent e4ac984548
commit 914594eaa1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63577
4 changed files with 5 additions and 0 deletions

View File

@ -2497,3 +2497,4 @@ options VFS_BIO_DEBUG
options VM_KMEM_SIZE
options VM_KMEM_SIZE_MAX
options VM_KMEM_SIZE_SCALE
options XBONEHACK

View File

@ -265,6 +265,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

View File

@ -2497,3 +2497,4 @@ options VFS_BIO_DEBUG
options VM_KMEM_SIZE
options VM_KMEM_SIZE_MAX
options VM_KMEM_SIZE_SCALE
options XBONEHACK

View File

@ -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) \