Cast the result
This commit is contained in:
parent
255973a4c9
commit
1e04446398
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ control MyIngress(inout headers hdr,
|
|||
ipv6_addr_t src_offset = hdr.ipv6.src_addr - v6_network;
|
||||
ipv4_addr_t src = v4_network + (ipv4_addr_t) src_offset;
|
||||
|
||||
ipv4_addr_t dst = (ipv4_addr_t) hdr.ipv6.dst_addr - nat64_prefix;
|
||||
ipv4_addr_t dst = (ipv4_addr_t) (hdr.ipv6.dst_addr - nat64_prefix);
|
||||
|
||||
nat64_generic(src, dst);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue