Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Tom Herbert | 2346155 | 2014-09-17 12:25:56 -0700 | [diff] [blame] | 2 | /* fou.h - FOU Interface */ |
| 3 | |
| 4 | #ifndef _UAPI_LINUX_FOU_H |
| 5 | #define _UAPI_LINUX_FOU_H |
| 6 | |
| 7 | /* NETLINK_GENERIC related info |
| 8 | */ |
| 9 | #define FOU_GENL_NAME "fou" |
| 10 | #define FOU_GENL_VERSION 0x1 |
| 11 | |
| 12 | enum { |
| 13 | FOU_ATTR_UNSPEC, |
| 14 | FOU_ATTR_PORT, /* u16 */ |
| 15 | FOU_ATTR_AF, /* u8 */ |
| 16 | FOU_ATTR_IPPROTO, /* u8 */ |
Tom Herbert | 37dd024 | 2014-10-03 15:48:09 -0700 | [diff] [blame] | 17 | FOU_ATTR_TYPE, /* u8 */ |
Tom Herbert | fe881ef | 2015-02-10 16:30:33 -0800 | [diff] [blame] | 18 | FOU_ATTR_REMCSUM_NOPARTIAL, /* flag */ |
Tom Herbert | 2346155 | 2014-09-17 12:25:56 -0700 | [diff] [blame] | 19 | |
| 20 | __FOU_ATTR_MAX, |
| 21 | }; |
| 22 | |
| 23 | #define FOU_ATTR_MAX (__FOU_ATTR_MAX - 1) |
| 24 | |
| 25 | enum { |
| 26 | FOU_CMD_UNSPEC, |
| 27 | FOU_CMD_ADD, |
| 28 | FOU_CMD_DEL, |
WANG Cong | 7a6c8c3 | 2015-04-10 12:00:30 -0700 | [diff] [blame] | 29 | FOU_CMD_GET, |
Tom Herbert | 2346155 | 2014-09-17 12:25:56 -0700 | [diff] [blame] | 30 | |
| 31 | __FOU_CMD_MAX, |
| 32 | }; |
| 33 | |
Tom Herbert | 37dd024 | 2014-10-03 15:48:09 -0700 | [diff] [blame] | 34 | enum { |
| 35 | FOU_ENCAP_UNSPEC, |
| 36 | FOU_ENCAP_DIRECT, |
| 37 | FOU_ENCAP_GUE, |
| 38 | }; |
| 39 | |
Tom Herbert | 2346155 | 2014-09-17 12:25:56 -0700 | [diff] [blame] | 40 | #define FOU_CMD_MAX (__FOU_CMD_MAX - 1) |
| 41 | |
| 42 | #endif /* _UAPI_LINUX_FOU_H */ |