cvs commit: src/sys/netinet ip_output.c
Andre Oppermann
andre at FreeBSD.org
Fri Aug 27 08:39:34 PDT 2004
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
More information about the cvs-src
mailing list