Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
38 lines
606 B
C
38 lines
606 B
C
/* Copyright (c) 2016 Facebook
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of version 2 of the GNU General Public
|
|
* License as published by the Free Software Foundation.
|
|
*/
|
|
#ifndef _TEST_IPTNL_COMMON_H
|
|
#define _TEST_IPTNL_COMMON_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define MAX_IPTNL_ENTRIES 256U
|
|
|
|
struct vip {
|
|
union {
|
|
__u32 v6[4];
|
|
__u32 v4;
|
|
} daddr;
|
|
__u16 dport;
|
|
__u16 family;
|
|
__u8 protocol;
|
|
};
|
|
|
|
struct iptnl_info {
|
|
union {
|
|
__u32 v6[4];
|
|
__u32 v4;
|
|
} saddr;
|
|
union {
|
|
__u32 v6[4];
|
|
__u32 v4;
|
|
} daddr;
|
|
__u16 family;
|
|
__u8 dmac[6];
|
|
};
|
|
|
|
#endif
|