Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115982200
D34732.id104868.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D34732.id104868.diff
View Options
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -513,7 +513,7 @@
} else {
struct nhop_object *nh;
- nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_NONE,
+ nh = fib4_lookup(M_GETFIB(m), dst->sin_addr, 0, NHR_NONE,
m->m_pkthdr.flowid);
if (nh == NULL) {
#if defined(IPSEC) || defined(IPSEC_SUPPORT)
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -772,6 +772,8 @@
ia = ifatoia6(nh->nh_ifa);
if (nh->nh_flags & NHF_GATEWAY)
dst->sin6_addr = nh->gw6_sa.sin6_addr;
+ else if (fwd_tag != NULL)
+ dst->sin6_addr = dst_sa.sin6_addr;
nonh6lookup:
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 2, 4:48 AM (13 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17886127
Default Alt Text
D34732.id104868.diff (748 B)
Attached To
Mode
D34732: Fix ipfw fwd that doesn't work in some cases
Attached
Detach File
Event Timeline
Log In to Comment