Page MenuHomeFreeBSD

D56353.diff
No OneTemporary

D56353.diff

diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -293,7 +293,7 @@
/*
* Is it for a local address on this host?
*/
- if (in_localip(ip->ip_dst))
+ if (in_localip_fib(ip->ip_dst, M_GETFIB(m)))
return m;
IPSTAT_INC(ips_total);
@@ -328,7 +328,7 @@
/*
* Is it now for a local address on this host?
*/
- if (in_localip(dest))
+ if (in_localip_fib(dest, M_GETFIB(m)))
goto forwardlocal;
/*
* Go on with new destination address
diff --git a/sys/netinet6/ip6_fastfwd.c b/sys/netinet6/ip6_fastfwd.c
--- a/sys/netinet6/ip6_fastfwd.c
+++ b/sys/netinet6/ip6_fastfwd.c
@@ -113,7 +113,7 @@
IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) ||
IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) ||
IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) ||
- in6_localip(&ip6->ip6_dst))
+ in6_localip_fib(&ip6->ip6_dst, M_GETFIB(m)))
return (m);
/*
* Check that the amount of data in the buffers

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 27, 7:43 PM (15 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34414361
Default Alt Text
D56353.diff (993 B)

Event Timeline