Date: Sun, 30 Aug 2009 22:42:32 +0000 (UTC) From: Qing Li <qingli@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/net flowtable.c rtsock.c Message-ID: <200908302242.n7UMgqOe069349@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
qingli 2009-08-30 22:42:32 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/net flowtable.c rtsock.c
Log:
SVN rev 196673 on 2009-08-30 22:42:32Z by qingli
MFC r196609
In ip_output(), the flow-table module must not try to cache L2/L3
information for interface of IFF_POINTOPOINT or IFF_LOOPBACK type.
Since the L2 information (rt_lle) is invalid for these interface
types, accidental caching attempt will trigger panic when the invalid
rt_lle reference is accessed.
When installing a new route, or when updating an existing route, the
user supplied gateway address may be an interface address (this is
particularly true for point-to-point interface related modules such
as ppp, if_tun, if_gif). Currently the routing command handler always
set the RTF_GATEWAY flag if the gateway address is given as part of the
command paramters. Therefore the gateway address must be verified against
interface addresses or else the route would be treated as an indirect
route, thus making that route unusable.
Reviewed by: kmacy, julian, rwatson
Approved by: re
Revision Changes Path
1.15.2.6 +6 -0 src/sys/net/flowtable.c
1.181.2.3 +34 -1 src/sys/net/rtsock.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908302242.n7UMgqOe069349>
