neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-upf/+/31162 )
Change subject: move GTP port definitions to upf.h ......................................................................
move GTP port definitions to upf.h
upf_gtp.h is for the GTP kernel module interaction. The GTP port numbers are also relevant for the netfilter part, upf_nft.h. An upcoming patch will use PORT_GTP1_U in the nft ruleset.
Related: SYS#6327 SYS#6264 Change-Id: I37d13cfee225c7ee2cc45525b76d9579d65e847c --- M include/osmocom/upf/upf.h M include/osmocom/upf/upf_gtp.h 2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-upf refs/changes/62/31162/1
diff --git a/include/osmocom/upf/upf.h b/include/osmocom/upf/upf.h index fd4019c..c25acca 100644 --- a/include/osmocom/upf/upf.h +++ b/include/osmocom/upf/upf.h @@ -37,6 +37,12 @@
#define UPF_PFCP_LISTEN_DEFAULT "0.0.0.0"
+#define PORT_GTP0_C 3386 +#define PORT_GTP0_U 3386 + +#define PORT_GTP1_C 2123 +#define PORT_GTP1_U 2152 + extern struct osmo_tdef_group g_upf_tdef_groups[];
struct pfcp_vty_cfg { diff --git a/include/osmocom/upf/upf_gtp.h b/include/osmocom/upf/upf_gtp.h index e3db918..ec27455 100644 --- a/include/osmocom/upf/upf_gtp.h +++ b/include/osmocom/upf/upf_gtp.h @@ -30,12 +30,6 @@ #define LOG_GTP_DEV(DEV, LEVEL, FMT, ARGS...) \ LOGP(DGTP, LEVEL, "%s: " FMT, upf_gtp_dev_to_str_c(OTC_SELECT, (DEV)), ##ARGS)
-#define PORT_GTP0_C 3386 -#define PORT_GTP0_U 3386 - -#define PORT_GTP1_C 2123 -#define PORT_GTP1_U 2152 - struct upf_gtp_dev { struct llist_head entry;