repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
bpf
/
test_iptunnel_common.h
blob
1d5ba839ddeae8a22767991603b55dad9e95e682
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
/* Copyright (c) 2016 Facebook
3
*/
4
#ifndef _TEST_IPTNL_COMMON_H
5
#define _TEST_IPTNL_COMMON_H
6
7
#include <linux/types.h>
8
9
#define MAX_IPTNL_ENTRIES 256U
10
11
struct
vip
{
12
union
{
13
__u32 v6
[
4
];
14
__u32 v4
;
15
}
daddr
;
16
__u16 dport
;
17
__u16 family
;
18
__u8 protocol
;
19
};
20
21
struct
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