diff options
| author | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
| commit | 537bfce2bda471c92caabd388589230200891509 (patch) | |
| tree | aedeccfaf0ba52c238ecf51fc009c0db5d4b60f0 /src/core/bpf/clat.h | |
| parent | 869e9027026cdbb15d4e4a6327ff41d2697858eb (diff) | |
New upstream version 1.58~rc1 upstream/1.58_rc1
Diffstat (limited to 'src/core/bpf/clat.h')
| -rw-r--r-- | src/core/bpf/clat.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/bpf/clat.h b/src/core/bpf/clat.h new file mode 100644 index 00000000..4a8adba5 --- /dev/null +++ b/src/core/bpf/clat.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __NAT64_H__ +#define __NAT64_H__ + +#include <linux/in6.h> + +struct clat_config { + struct in6_addr local_v6; + struct in6_addr pref64; + struct in_addr local_v4; + unsigned pref64_len; +}; + +struct clat_stats { + /* egress: v4 to v6 */ + __u64 egress_tcp; + __u64 egress_udp; + __u64 egress_icmp; + __u64 egress_other; + __u64 egress_dropped; + /* ingress: v6 to v4 */ + __u64 ingress_tcp; + __u64 ingress_udp; + __u64 ingress_icmp; + __u64 ingress_other; + __u64 ingress_fragment; + __u64 ingress_dropped; +}; + +#endif |