Merge tag 'net-next-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev...
[linux-2.6-block.git] / include / uapi / linux / gtp.h
CommitLineData
6f52b16c 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
459aa660 2#ifndef _UAPI_LINUX_GTP_H_
7b01b8e8 3#define _UAPI_LINUX_GTP_H_
459aa660 4
50aba46c
ND
5#define GTP_GENL_MCGRP_NAME "gtp"
6
459aa660
PN
7enum gtp_genl_cmds {
8 GTP_CMD_NEWPDP,
9 GTP_CMD_DELPDP,
10 GTP_CMD_GETPDP,
d33bd757 11 GTP_CMD_ECHOREQ,
459aa660
PN
12
13 GTP_CMD_MAX,
14};
15
16enum gtp_version {
17 GTP_V0 = 0,
18 GTP_V1,
19};
20
21enum gtp_attrs {
22 GTPA_UNSPEC = 0,
23 GTPA_LINK,
24 GTPA_VERSION,
25 GTPA_TID, /* for GTPv0 only */
ae6336b5
JB
26 GTPA_PEER_ADDRESS, /* Remote GSN peer, either SGSN or GGSN */
27#define GTPA_SGSN_ADDRESS GTPA_PEER_ADDRESS /* maintain legacy attr name */
459aa660
PN
28 GTPA_MS_ADDRESS,
29 GTPA_FLOW,
30 GTPA_NET_NS_FD,
31 GTPA_I_TEI, /* for GTPv1 only */
32 GTPA_O_TEI, /* for GTPv1 only */
33 GTPA_PAD,
999cb275
PNA
34 GTPA_PEER_ADDR6,
35 GTPA_MS_ADDR6,
36 GTPA_FAMILY,
459aa660
PN
37 __GTPA_MAX,
38};
adc8df12 39#define GTPA_MAX (__GTPA_MAX - 1)
459aa660
PN
40
41#endif /* _UAPI_LINUX_GTP_H_ */