summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorWojciech Drewek <wojciech.drewek@intel.com>2022-03-04 17:40:44 +0100
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-03-11 08:28:05 -0800
commitd33bd757d362699cfce3c68b53cd12b947d196f4 (patch)
treeca24a3bc878abb08fa8a6bc74d9a9f18568925e8 /include/uapi
parent9af41cc33471ea1efa6f77e188f055cc77d0a5c5 (diff)
downloadlinux-d33bd757d362699cfce3c68b53cd12b947d196f4.tar.gz
linux-d33bd757d362699cfce3c68b53cd12b947d196f4.tar.bz2
linux-d33bd757d362699cfce3c68b53cd12b947d196f4.zip
gtp: Implement GTP echo request
Adding GTP device through ip link creates the situation where GTP instance is not able to send GTP echo requests. Echo requests are used to check if GTP peer is still alive. With this patch, gtp_genl_ops are extended by new cmd (GTP_CMD_ECHOREQ) which allows to send echo request in the given version of GTP protocol (v0 or v1), from the given ms address to he given peer. TID is not inclued because in all path management messages it should be equal to 0. When GTP echo response is detected, multicast message is send to everyone in the gtp_genl_family. Message contains GTP version, ms address and peer address. Suggested-by: Harald Welte <laforge@gnumonks.org> Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com> Reviewed-by: Harald Welte <laforge@gnumonks.org> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/gtp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/gtp.h b/include/uapi/linux/gtp.h
index 79f9191bbb24..2f61298a7b77 100644
--- a/include/uapi/linux/gtp.h
+++ b/include/uapi/linux/gtp.h
@@ -8,6 +8,7 @@ enum gtp_genl_cmds {
GTP_CMD_NEWPDP,
GTP_CMD_DELPDP,
GTP_CMD_GETPDP,
+ GTP_CMD_ECHOREQ,
GTP_CMD_MAX,
};