Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109886820
D23737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1000 B
Referenced Files
None
Subscribers
None
D23737.diff
View Options
Index: sys/netpfil/ipfw/nat64/nat64_translate.c
===================================================================
--- sys/netpfil/ipfw/nat64/nat64_translate.c
+++ sys/netpfil/ipfw/nat64/nat64_translate.c
@@ -1061,19 +1061,16 @@
m->m_pkthdr.len);
goto freeit;
}
-#if 0
/*
* Check that inner source matches the outer destination.
- * XXX: We need some method to convert IPv4 into IPv6 address here,
- * and compare IPv6 addresses.
*/
- if (ip.ip_src.s_addr != nat64_get_ip4(&ip6->ip6_dst)) {
- DPRINTF(DP_GENERIC, "Inner source doesn't match destination ",
+ if (ip.ip_src.s_addr !=
+ nat64_extract_ip4(&ip6->ip6_dst, cfg->plat_plen)) {
+ DPRINTF(DP_GENERIC, "Inner source doesn't match destination: "
"%04x vs %04x", ip.ip_src.s_addr,
- nat64_get_ip4(&ip6->ip6_dst));
+ nat64_extract_ip4(&ip6->ip6_dst, cfg->plat_plen));
goto freeit;
}
-#endif
/*
* Create new mbuf for ICMPv6 datagram.
* NOTE: len is data length just after inner IP header.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 7:11 PM (14 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16599720
Default Alt Text
D23737.diff (1000 B)
Attached To
Mode
D23737: nat64: Get the IPv4 address from a NAT64 address when comparing addresses in a ICMP translate
Attached
Detach File
Event Timeline
Log In to Comment