summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1998-02-11 18:43:42 +0000
committerguido <guido@FreeBSD.org>1998-02-11 18:43:42 +0000
commit2f8caa4fd654ed1b60b4125cc7de07882455bddb (patch)
treeb6fd34731ff78cafaba1a815ff2404b918f2adb2 /sys/netinet/ip_input.c
parent7dc03c77e76a9c89874a9541d3ebad93bf9d8eab (diff)
downloadFreeBSD-src-2f8caa4fd654ed1b60b4125cc7de07882455bddb.zip
FreeBSD-src-2f8caa4fd654ed1b60b4125cc7de07882455bddb.tar.gz
Only forward source routed packets when ip_forwarding is set to 1.
This means that a FreeBSD will only forward source routed packets when both net.inet.ip.forwarding and net.inet.ip.sourceroute are set to 1. You can hit me now ;-) Submitted by: Thomas Ptacek
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 5923d4e..7dbd970 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_input.c 8.2 (Berkeley) 1/4/94
- * $Id: ip_input.c,v 1.74 1998/02/04 22:33:08 eivind Exp $
+ * $Id: ip_input.c,v 1.75 1998/02/06 12:13:51 eivind Exp $
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
*/
@@ -1088,7 +1088,7 @@ nosourcerouting:
ipt->ipt_ptr += sizeof(n_time);
}
}
- if (forward) {
+ if (forward && ip_forwarding) {
ip_forward(m, 1);
return (1);
}
OpenPOWER on IntegriCloud