ipfw: Allow resolving of IPv6 DNS AAAA records in IPv6 table lookups. Previously, only IPv4 A records were supported.
PR: 228338
Reported By: bugs.freebsd.org AT mx.zzux DOT com
Submitted by: Neel Chauhan <neel AT neelc DOT org>
Differential D23888
ipfw: Allow resolving of IPv6 DNS AAAA records in IPv6 table lookups nc on Feb 29 2020, 1:01 AM. Authored by Tags Referenced Files
Subscribers
Details ipfw: Allow resolving of IPv6 DNS AAAA records in IPv6 table lookups. Previously, only IPv4 A records were supported. PR: 228338 Run the following commands: ipfw table 6 create type addr valtype ipv6 ipfw table 6 add freebsd.org freebsd.org IPv6 addresses should be added to the lookup table.
Diff Detail
Event Timeline
Comment Actions Can you please explain, what the problem is? Comment Actions I get this error: /usr/src/sbin/ipfw/tables.c:1215:11: error: assigning to 'struct in6_addr' from incompatible type 'struct in_addr' ...*paddr = ((struct sockaddr_in *) res->ai_addr)->sin_addr; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. However, I will try to find a workaround which doesn't involve memcpy. |