Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Nov 30, 2023
1 parent 715d140 commit f91a308
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions modules/tcp_mgm/tcp_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions modules/tcp_mgm/tcp_path.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
8 changes: 4 additions & 4 deletions net/tcp_conn_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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[] = {
Expand Down
4 changes: 2 additions & 2 deletions net/tcp_conn_profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f91a308

Please sign in to comment.