From f91a308ccf9f9e1b73179309380334954e310d32 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 30 Nov 2023 15:09:09 -0800 Subject: [PATCH] + 7c59dbf93ebfd3566d77ba262a539abc759a30d9 --- modules/tcp_mgm/tcp_path.c | 4 ++-- modules/tcp_mgm/tcp_path.h | 4 ++-- net/tcp_conn_profile.c | 8 ++++---- net/tcp_conn_profile.h | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/tcp_mgm/tcp_path.c b/modules/tcp_mgm/tcp_path.c index 721be6b623a..e789d76dbac 100644 --- a/modules/tcp_mgm/tcp_path.c +++ b/modules/tcp_mgm/tcp_path.c @@ -52,8 +52,8 @@ int tcp_path_init(void) } -int tcp_mgm_get_profile(union sockaddr_union *remote, - union sockaddr_union *local, enum sip_protos proto, +int tcp_mgm_get_profile(const union sockaddr_union *remote, + const union sockaddr_union *local, enum sip_protos proto, struct tcp_conn_profile *out_profile) { struct tcp_path *path, *lim; diff --git a/modules/tcp_mgm/tcp_path.h b/modules/tcp_mgm/tcp_path.h index ce3e215c636..646d701eb37 100644 --- a/modules/tcp_mgm/tcp_path.h +++ b/modules/tcp_mgm/tcp_path.h @@ -54,8 +54,8 @@ void tcp_path_destroy(void); int tcp_store_path(int *int_vals, char **str_vals, struct tcp_path *path); -int tcp_mgm_get_profile(union sockaddr_union *remote, - union sockaddr_union *local, enum sip_protos proto, +int tcp_mgm_get_profile(const union sockaddr_union *remote, + const union sockaddr_union *local, enum sip_protos proto, struct tcp_conn_profile *out_profile); #endif /* TCP_PATH_H */ diff --git a/net/tcp_conn_profile.c b/net/tcp_conn_profile.c index d9990fd8726..e1b6bc830a9 100644 --- a/net/tcp_conn_profile.c +++ b/net/tcp_conn_profile.c @@ -26,8 +26,8 @@ * by defining specific settings (per TCP path) using the "tcp_mgm" module */ struct tcp_conn_profile tcp_con_df_profile; -static int tcp_con_get_df_profile(union sockaddr_union *_, - union sockaddr_union *__, enum sip_protos ___, +static int tcp_con_get_df_profile(const union sockaddr_union *_, + const union sockaddr_union *__, enum sip_protos ___, struct tcp_conn_profile *out_profile) { *out_profile = tcp_con_df_profile; @@ -36,8 +36,8 @@ static int tcp_con_get_df_profile(union sockaddr_union *_, /* global function/variable which may be overridden by tcp_mgm */ -int (*tcp_con_get_profile)(union sockaddr_union *remote, - union sockaddr_union *local, enum sip_protos proto, +int (*tcp_con_get_profile)(const union sockaddr_union *remote, + const union sockaddr_union *local, enum sip_protos proto, struct tcp_conn_profile *out_profile) = tcp_con_get_df_profile; struct tcp_conn_attr_key tcp_con_attr[] = { diff --git a/net/tcp_conn_profile.h b/net/tcp_conn_profile.h index 3061e12e352..4ddafbb9934 100644 --- a/net/tcp_conn_profile.h +++ b/net/tcp_conn_profile.h @@ -44,8 +44,8 @@ enum tcp_conn_attr { * 0 (success, but just the default TCP profile was returned) * 1 (success, a custom TCP profile from tcp_mgm DB was matched) */ -extern int (*tcp_con_get_profile)(union sockaddr_union *remote, - union sockaddr_union *local, enum sip_protos proto, +extern int (*tcp_con_get_profile)(const union sockaddr_union *remote, + const union sockaddr_union *local, enum sip_protos proto, struct tcp_conn_profile *out_profile); /* initialize the support for customized, per-path TCP connection profiles */