summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-09-12 06:04:47 +0000
committertholo <tholo@openbsd.org>1996-09-12 06:04:47 +0000
commitc1ef6a27742a761a60b0fbf85a84ff631f73dff8 (patch)
tree19707feb9932389fbfcdb07190137ba5a53f99fe /sys/netinet/in.c
parentSupport 16 partitions. (diff)
downloadwireguard-openbsd-c1ef6a27742a761a60b0fbf85a84ff631f73dff8.tar.xz
wireguard-openbsd-c1ef6a27742a761a60b0fbf85a84ff631f73dff8.zip
Don't assume other subnets than our own are local to us; from Luigi Rizzo
by way of Jason Downs & Theo de Raadt. Can be overridden in the kernel configuration file by using "option SUBNETSARELOCAL=1"
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 5de33584784..15dc3692352 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.2 1996/03/03 22:30:28 niklas Exp $ */
+/* $OpenBSD: in.c,v 1.3 1996/09/12 06:04:47 tholo Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -59,7 +59,7 @@
#ifdef INET
#ifndef SUBNETSARELOCAL
-#define SUBNETSARELOCAL 1
+#define SUBNETSARELOCAL 0
#endif
int subnetsarelocal = SUBNETSARELOCAL;
/*