![]() |
Contiki-NG
|
NAT64 DNS64 translation (RFC 6147). More...
#include <stdint.h>Go to the source code of this file.
Functions | |
| void | nat64_dns64_6to4 (uint8_t *data, uint16_t len) |
| Rewrite an outgoing DNS query from AAAA to A. | |
| uint16_t | nat64_dns64_4to6 (const uint8_t *ipv4data, uint16_t ipv4len, uint8_t *ipv6data, uint16_t ipv6len, uint16_t ipv6bufsiz) |
| Rewrite an incoming DNS response from A to AAAA. | |
NAT64 DNS64 translation (RFC 6147).
Rewrites outgoing DNS messages so that an IPv4 resolver sees A queries and the IoT node sees AAAA responses with IPv4 addresses synthesized into the NAT64 prefix. All translation happens in-place or single-pass into a caller- supplied buffer; no DNS state is kept across calls.
Definition in file nat64-dns64.h.