summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-10-27 21:07:26 +0000
committerguido <guido@FreeBSD.org>1997-10-27 21:07:26 +0000
commit16baeb2dba0b34984552a6aab2b55251602e57ad (patch)
tree45671bc7a2ea8a1cd06e1861118587826ff1b44f
parentaf87f94a9c03ab34b0ccd5db7eefc2241780c97e (diff)
downloadFreeBSD-src-16baeb2dba0b34984552a6aab2b55251602e57ad.zip
FreeBSD-src-16baeb2dba0b34984552a6aab2b55251602e57ad.tar.gz
When dosourcerouting is set do not sourceoute....
-rw-r--r--sys/netinet/ip_input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 3e04a9b..9bbe743 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.65 1997/09/15 23:07:01 ache Exp $
+ * $Id: ip_input.c,v 1.66 1997/09/25 00:34:35 wollman Exp $
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
*/
@@ -950,6 +950,8 @@ ip_dooptions(m)
* Loose routing, and not at next destination
* yet; nothing to do except forward.
*/
+ if (!ip_dosourceroute)
+ goto nosourcerouting;
break;
}
off--; /* 0 origin */
@@ -965,6 +967,7 @@ ip_dooptions(m)
char buf[4*sizeof "123"];
strcpy(buf, inet_ntoa(ip->ip_dst));
+nosourcerouting:
log(LOG_WARNING,
"attempted source route from %s to %s\n",
inet_ntoa(ip->ip_src), buf);
OpenPOWER on IntegriCloud