mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
25763b3c86
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 107 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528171438.615055994@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
485 B
C
35 lines
485 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2016 Facebook
|
|
*/
|
|
#ifndef _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H
|
|
#define _SAMPLES_BPF_XDP_TX_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
|