Date: Fri, 27 Aug 2004 15:39:34 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_output.c Message-ID: <200408271539.i7RFdYNO062929@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
andre 2004-08-27 15:39:34 UTC FreeBSD src repository Modified files: sys/netinet ip_output.c Log: In the case the destination of a packet was changed by the packet filter to point to a local IP address; and the packet was sourced from this host we fill in the m_pkthdr.rcvif with a pointer to the loopback interface. Before the function ifunit("lo0") was used to obtain the ifp. However this is sub-optimal from a performance point of view and might be dangerous if the loopback interface has been renamed. Use the global variable 'loif' instead which always points to the loopback interface. Submitted by: brooks Revision Changes Path 1.229 +2 -2 src/sys/netinet/ip_output.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408271539.i7RFdYNO062929>