| /* SPDX-License-Identifier: GPL-2.0 */ |
| #include <linux/netdevice.h> |
| #include <net/rtnetlink.h> |
| /* General GTP protocol related definitions. */ |
| #define GTP_ECHO_REQ 1 /* Echo Request */ |
| #define GTP_ECHO_RSP 2 /* Echo Response */ |
| #define GTPIE_RECOVERY 14 |
| struct gtp0_header { /* According to GSM TS 09.60. */ |
| } __attribute__ ((packed)); |
| struct gtp1_header { /* According to 3GPP TS 29.060. */ |
| } __attribute__ ((packed)); |
| struct gtp1_header_long { /* According to 3GPP TS 29.060. */ |
| /* GTP Information Element */ |
| struct gtp0_header gtp0_h; |
| struct gtp1_header_long gtp1u_h; |
| struct gtp_pdu_session_info { /* According to 3GPP TS 38.415. */ |
| static inline bool netif_is_gtp(const struct net_device *dev) |
| return dev->rtnl_link_ops && |
| !strcmp(dev->rtnl_link_ops->kind, "gtp"); |
| #define GTP1_F_EXTHDR 0x04 |