Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Pablo Neira | 459aa66 | 2016-05-09 00:55:48 +0200 | [diff] [blame] | 2 | #ifndef _UAPI_LINUX_GTP_H_ |
Colin Ian King | 7b01b8e | 2016-06-06 16:08:41 +0100 | [diff] [blame] | 3 | #define _UAPI_LINUX_GTP_H_ |
Pablo Neira | 459aa66 | 2016-05-09 00:55:48 +0200 | [diff] [blame] | 4 | |
| 5 | enum gtp_genl_cmds { |
| 6 | GTP_CMD_NEWPDP, |
| 7 | GTP_CMD_DELPDP, |
| 8 | GTP_CMD_GETPDP, |
| 9 | |
| 10 | GTP_CMD_MAX, |
| 11 | }; |
| 12 | |
| 13 | enum gtp_version { |
| 14 | GTP_V0 = 0, |
| 15 | GTP_V1, |
| 16 | }; |
| 17 | |
| 18 | enum gtp_attrs { |
| 19 | GTPA_UNSPEC = 0, |
| 20 | GTPA_LINK, |
| 21 | GTPA_VERSION, |
| 22 | GTPA_TID, /* for GTPv0 only */ |
Jonas Bonn | ae6336b | 2017-03-24 23:23:20 +0100 | [diff] [blame] | 23 | GTPA_PEER_ADDRESS, /* Remote GSN peer, either SGSN or GGSN */ |
| 24 | #define GTPA_SGSN_ADDRESS GTPA_PEER_ADDRESS /* maintain legacy attr name */ |
Pablo Neira | 459aa66 | 2016-05-09 00:55:48 +0200 | [diff] [blame] | 25 | GTPA_MS_ADDRESS, |
| 26 | GTPA_FLOW, |
| 27 | GTPA_NET_NS_FD, |
| 28 | GTPA_I_TEI, /* for GTPv1 only */ |
| 29 | GTPA_O_TEI, /* for GTPv1 only */ |
| 30 | GTPA_PAD, |
| 31 | __GTPA_MAX, |
| 32 | }; |
| 33 | #define GTPA_MAX (__GTPA_MAX + 1) |
| 34 | |
| 35 | #endif /* _UAPI_LINUX_GTP_H_ */ |