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
This commit is contained in:
Guido van Rooij 1998-02-11 18:43:42 +00:00
parent 8da0cd6227
commit a293037f7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33249

View File

@ -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 @@ ip_dooptions(m)
ipt->ipt_ptr += sizeof(n_time);
}
}
if (forward) {
if (forward && ip_forwarding) {
ip_forward(m, 1);
return (1);
}