Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/* Copyright (c) 2016 Facebook
 
 
 
 
 3 */
 4#ifndef _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H
 5#define _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H
 6
 7#include <linux/types.h>
 8
 9#define MAX_IPTNL_ENTRIES 256U
10
11struct vip {
12	union {
13		__u32 v6[4];
14		__u32 v4;
15	} daddr;
16	__u16 dport;
17	__u16 family;
18	__u8 protocol;
19};
20
21struct iptnl_info {
22	union {
23		__u32 v6[4];
24		__u32 v4;
25	} saddr;
26	union {
27		__u32 v6[4];
28		__u32 v4;
29	} daddr;
30	__u16 family;
31	__u8 dmac[6];
32};
33
34#endif
v4.17
 
 1/* Copyright (c) 2016 Facebook
 2 *
 3 * This program is free software; you can redistribute it and/or
 4 * modify it under the terms of version 2 of the GNU General Public
 5 * License as published by the Free Software Foundation.
 6 */
 7#ifndef _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H
 8#define _SAMPLES_BPF_XDP_TX_IPTNL_COMMON_H
 9
10#include <linux/types.h>
11
12#define MAX_IPTNL_ENTRIES 256U
13
14struct vip {
15	union {
16		__u32 v6[4];
17		__u32 v4;
18	} daddr;
19	__u16 dport;
20	__u16 family;
21	__u8 protocol;
22};
23
24struct iptnl_info {
25	union {
26		__u32 v6[4];
27		__u32 v4;
28	} saddr;
29	union {
30		__u32 v6[4];
31		__u32 v4;
32	} daddr;
33	__u16 family;
34	__u8 dmac[6];
35};
36
37#endif