diff options
author | guido <guido@FreeBSD.org> | 1998-02-11 18:43:42 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1998-02-11 18:43:42 +0000 |
commit | 2f8caa4fd654ed1b60b4125cc7de07882455bddb (patch) | |
tree | b6fd34731ff78cafaba1a815ff2404b918f2adb2 /sys | |
parent | 7dc03c77e76a9c89874a9541d3ebad93bf9d8eab (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
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); } |