Files
xdp-project-bpf-examples/nat64-bpf/nat64.h

26 lines
392 B
C
Raw Normal View History

#ifndef __NAT64_H__
#define __NAT64_H__
#include <linux/in6.h>
struct nat64_config {
struct in6_addr v6_prefix;
__u64 timeout_ns;
__u64 next_addr;
__u32 v4_prefix;
__u32 v4_mask;
};
struct v6_addr_state {
__u64 last_seen;
__u32 v4_addr;
__u32 static_conf;
};
struct v6_trie_key {
struct bpf_lpm_trie_key t;
struct in6_addr addr;
};
#endif