mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 05:08:09 +07:00
8d48f5e427
add C test for xdp_adjust_head(), packet rewrite and map lookups Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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
|