2017-11-01 22:08:43 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2016-05-09 06:55:48 +08:00
|
|
|
#ifndef _UAPI_LINUX_GTP_H_
|
2016-06-06 23:08:41 +08:00
|
|
|
#define _UAPI_LINUX_GTP_H_
|
2016-05-09 06:55:48 +08:00
|
|
|
|
2020-08-27 20:19:23 +08:00
|
|
|
#define GTP_GENL_MCGRP_NAME "gtp"
|
|
|
|
|
2016-05-09 06:55:48 +08:00
|
|
|
enum gtp_genl_cmds {
|
|
|
|
GTP_CMD_NEWPDP,
|
|
|
|
GTP_CMD_DELPDP,
|
|
|
|
GTP_CMD_GETPDP,
|
2022-03-05 00:40:44 +08:00
|
|
|
GTP_CMD_ECHOREQ,
|
2016-05-09 06:55:48 +08:00
|
|
|
|
|
|
|
GTP_CMD_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum gtp_version {
|
|
|
|
GTP_V0 = 0,
|
|
|
|
GTP_V1,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum gtp_attrs {
|
|
|
|
GTPA_UNSPEC = 0,
|
|
|
|
GTPA_LINK,
|
|
|
|
GTPA_VERSION,
|
|
|
|
GTPA_TID, /* for GTPv0 only */
|
2017-03-25 06:23:20 +08:00
|
|
|
GTPA_PEER_ADDRESS, /* Remote GSN peer, either SGSN or GGSN */
|
|
|
|
#define GTPA_SGSN_ADDRESS GTPA_PEER_ADDRESS /* maintain legacy attr name */
|
2016-05-09 06:55:48 +08:00
|
|
|
GTPA_MS_ADDRESS,
|
|
|
|
GTPA_FLOW,
|
|
|
|
GTPA_NET_NS_FD,
|
|
|
|
GTPA_I_TEI, /* for GTPv1 only */
|
|
|
|
GTPA_O_TEI, /* for GTPv1 only */
|
|
|
|
GTPA_PAD,
|
|
|
|
__GTPA_MAX,
|
|
|
|
};
|
|
|
|
#define GTPA_MAX (__GTPA_MAX + 1)
|
|
|
|
|
|
|
|
#endif /* _UAPI_LINUX_GTP_H_ */
|