mirror of
				https://github.com/xdp-project/bpf-examples.git
				synced 2024-05-06 15:54:53 +00:00 
			
		
		
		
	Turns out the atomics just needed to operate on a 64-bit variable, we didn't actually need a newer compiler. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			392 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			392 B
		
	
	
	
		
			C
		
	
	
	
	
	
#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
 |