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:
parent
e4ac984548
commit
914594eaa1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63577
@ -2497,3 +2497,4 @@ options VFS_BIO_DEBUG
|
||||
options VM_KMEM_SIZE
|
||||
options VM_KMEM_SIZE_MAX
|
||||
options VM_KMEM_SIZE_SCALE
|
||||
options XBONEHACK
|
||||
|
@ -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
|
||||
|
@ -2497,3 +2497,4 @@ options VFS_BIO_DEBUG
|
||||
options VM_KMEM_SIZE
|
||||
options VM_KMEM_SIZE_MAX
|
||||
options VM_KMEM_SIZE_SCALE
|
||||
options XBONEHACK
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user