Date: Fri, 28 Aug 2009 07:01:09 +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: <200908280701.n7S71lnA060198@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
qingli 2009-08-28 07:01:09 UTC FreeBSD src repository Modified files: sys/net flowtable.c rtsock.c Log: SVN rev 196609 on 2009-08-28 07:01:09Z by qingli 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, julia, rwatson Verified by: marcus MFC after: 3 days Revision Changes Path 1.20 +6 -0 src/sys/net/flowtable.c 1.183 +34 -1 src/sys/net/rtsock.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908280701.n7S71lnA060198>