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