2014-09-18 02:25:56 +07:00
|
|
|
/* fou.h - FOU Interface */
|
|
|
|
|
|
|
|
#ifndef _UAPI_LINUX_FOU_H
|
|
|
|
#define _UAPI_LINUX_FOU_H
|
|
|
|
|
|
|
|
/* NETLINK_GENERIC related info
|
|
|
|
*/
|
|
|
|
#define FOU_GENL_NAME "fou"
|
|
|
|
#define FOU_GENL_VERSION 0x1
|
|
|
|
|
|
|
|
enum {
|
|
|
|
FOU_ATTR_UNSPEC,
|
|
|
|
FOU_ATTR_PORT, /* u16 */
|
|
|
|
FOU_ATTR_AF, /* u8 */
|
|
|
|
FOU_ATTR_IPPROTO, /* u8 */
|
2014-10-04 05:48:09 +07:00
|
|
|
FOU_ATTR_TYPE, /* u8 */
|
2015-02-11 07:30:33 +07:00
|
|
|
FOU_ATTR_REMCSUM_NOPARTIAL, /* flag */
|
2014-09-18 02:25:56 +07:00
|
|
|
|
|
|
|
__FOU_ATTR_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define FOU_ATTR_MAX (__FOU_ATTR_MAX - 1)
|
|
|
|
|
|
|
|
enum {
|
|
|
|
FOU_CMD_UNSPEC,
|
|
|
|
FOU_CMD_ADD,
|
|
|
|
FOU_CMD_DEL,
|
2015-04-11 02:00:30 +07:00
|
|
|
FOU_CMD_GET,
|
2014-09-18 02:25:56 +07:00
|
|
|
|
|
|
|
__FOU_CMD_MAX,
|
|
|
|
};
|
|
|
|
|
2014-10-04 05:48:09 +07:00
|
|
|
enum {
|
|
|
|
FOU_ENCAP_UNSPEC,
|
|
|
|
FOU_ENCAP_DIRECT,
|
|
|
|
FOU_ENCAP_GUE,
|
|
|
|
};
|
|
|
|
|
2014-09-18 02:25:56 +07:00
|
|
|
#define FOU_CMD_MAX (__FOU_CMD_MAX - 1)
|
|
|
|
|
|
|
|
#endif /* _UAPI_LINUX_FOU_H */
|