Contiki-NG
Loading...
Searching...
No Matches
nat64-dns64.h File Reference

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.
 

Detailed Description

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.

Author
Nicolas Tsiftes nicol.nosp@m.as.t.nosp@m.sifte.nosp@m.s@ri.nosp@m..se

Definition in file nat64-dns64.h.