blob: 0a28046a4e4c4d432aadda496a647470ec52d4b8 [file] [log] [blame]
Pablo Neira Ayuso14506662014-02-20 18:43:15 +01001#ifndef _UAPI_LINUX_GTP_H_
2#define _UAPI_LINUX_GTP_H__
3
4enum {
5 IFLA_GTP_UNSPEC,
Pablo Neira Ayusodea76a02014-02-23 21:55:42 +01006 IFLA_GTP_FD0,
7 IFLA_GTP_FD1,
Pablo Neira Ayuso14506662014-02-20 18:43:15 +01008 IFLA_GTP_HASHSIZE,
9 __IFLA_GTP_MAX,
10};
11#define IFLA_GTP_MAX (__IFLA_GTP_MAX - 1)
12
13enum gtp_genl_cmds {
14 GTP_CMD_TUNNEL_NEW,
15 GTP_CMD_TUNNEL_DELETE,
16 GTP_CMD_TUNNEL_GET,
17
18 GTP_CMD_TUNNEL_MAX,
19};
20
21enum gtp_version {
22 GTP_V0 = 0,
23 GTP_V1,
24};
25
26enum gtp_cfg_attrs {
27 GTPA_CFG_UNSPEC = 0,
28 GTPA_CFG_LINK,
29 GTPA_CFG_LOCAL_ADDR_IPV4,
30 GTPA_CFG_HSIZE,
31 __GTPA_CFG_MAX,
32};
33#define GTPA_CFG_MAX (__GTPA_CFG_MAX + 1)
34
35enum gtp_attrs {
36 GTPA_UNSPEC = 0,
37 GTPA_LINK,
38 GTPA_VERSION,
39 GTPA_TID, /* 64 bits for GTPv1 */
40 GTPA_SGSN_ADDRESS,
41 GTPA_MS_ADDRESS,
Pablo Neira Ayusob976ffa2014-03-20 13:56:55 +010042 GTPA_FLOWID, /* only for GTPv0 */
Pablo Neira Ayuso14506662014-02-20 18:43:15 +010043 __GTPA_MAX,
44};
45#define GTPA_MAX (__GTPA_MAX + 1)
46
47#endif /* _UAPI_LINUX_GTP_H_ */