Module: kamailio
Branch: master
Commit: bbd0f09e6bef06403a3e28a42abb07043d8857b5
URL:
https://github.com/kamailio/kamailio/commit/bbd0f09e6bef06403a3e28a42abb070…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-22T10:15:05+01:00
sctp: reformat exported structures
---
Modified: src/modules/sctp/sctp_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bbd0f09e6bef06403a3e28a42abb070…
Patch:
https://github.com/kamailio/kamailio/commit/bbd0f09e6bef06403a3e28a42abb070…
---
diff --git a/src/modules/sctp/sctp_mod.c b/src/modules/sctp/sctp_mod.c
index f5d287902ce..7717fc60829 100644
--- a/src/modules/sctp/sctp_mod.c
+++ b/src/modules/sctp/sctp_mod.c
@@ -39,45 +39,47 @@ static int mod_init(void);
static int sctp_mod_pre_init(void);
#endif
-
-static cmd_export_t cmds[] = {{0, 0, 0, 0, 0, 0}};
+/* clang-format off */
+static cmd_export_t cmds[] = {
+ {0, 0, 0, 0, 0, 0}
+};
static param_export_t params[] = {
- {"sctp_socket_rcvbuf", PARAM_INT, &sctp_default_cfg.so_rcvbuf},
- {"sctp_socket_sndbuf", PARAM_INT, &sctp_default_cfg.so_sndbuf},
- {"sctp_autoclose", PARAM_INT, &sctp_default_cfg.autoclose},
- {"sctp_send_ttl", PARAM_INT, &sctp_default_cfg.send_ttl},
- {"sctp_send_retries", PARAM_INT, &sctp_default_cfg.send_retries},
- {"sctp_assoc_tracking", PARAM_INT, &sctp_default_cfg.assoc_tracking},
- {"sctp_assoc_reuse", PARAM_INT, &sctp_default_cfg.assoc_reuse},
- {"sctp_max_assocs", PARAM_INT, &sctp_default_cfg.max_assocs},
- {"sctp_srto_initial", PARAM_INT, &sctp_default_cfg.srto_initial},
- {"sctp_srto_max", PARAM_INT, &sctp_default_cfg.srto_max},
- {"sctp_srto_min", PARAM_INT, &sctp_default_cfg.srto_min},
- {"sctp_asocmaxrxt", PARAM_INT, &sctp_default_cfg.asocmaxrxt},
- {"sctp_init_max_attempts", PARAM_INT,
- &sctp_default_cfg.init_max_attempts},
- {"sctp_init_max_timeo", PARAM_INT, &sctp_default_cfg.init_max_timeo},
- {"sctp_hbinterval", PARAM_INT, &sctp_default_cfg.hbinterval},
- {"sctp_pathmaxrxt", PARAM_INT, &sctp_default_cfg.pathmaxrxt},
- {"sctp_sack_delay", PARAM_INT, &sctp_default_cfg.sack_delay},
- {"sctp_sack_freq", PARAM_INT, &sctp_default_cfg.sack_freq},
- {"sctp_max_burst", PARAM_INT, &sctp_default_cfg.max_burst},
-
- {0, 0, 0}};
+ {"sctp_socket_rcvbuf", PARAM_INT, &sctp_default_cfg.so_rcvbuf},
+ {"sctp_socket_sndbuf", PARAM_INT, &sctp_default_cfg.so_sndbuf},
+ {"sctp_autoclose", PARAM_INT, &sctp_default_cfg.autoclose},
+ {"sctp_send_ttl", PARAM_INT, &sctp_default_cfg.send_ttl},
+ {"sctp_send_retries", PARAM_INT, &sctp_default_cfg.send_retries},
+ {"sctp_assoc_tracking", PARAM_INT, &sctp_default_cfg.assoc_tracking},
+ {"sctp_assoc_reuse", PARAM_INT, &sctp_default_cfg.assoc_reuse},
+ {"sctp_max_assocs", PARAM_INT, &sctp_default_cfg.max_assocs},
+ {"sctp_srto_initial", PARAM_INT, &sctp_default_cfg.srto_initial},
+ {"sctp_srto_max", PARAM_INT, &sctp_default_cfg.srto_max},
+ {"sctp_srto_min", PARAM_INT, &sctp_default_cfg.srto_min},
+ {"sctp_asocmaxrxt", PARAM_INT, &sctp_default_cfg.asocmaxrxt},
+ {"sctp_init_max_attempts", PARAM_INT,
&sctp_default_cfg.init_max_attempts},
+ {"sctp_init_max_timeo", PARAM_INT, &sctp_default_cfg.init_max_timeo},
+ {"sctp_hbinterval", PARAM_INT, &sctp_default_cfg.hbinterval},
+ {"sctp_pathmaxrxt", PARAM_INT, &sctp_default_cfg.pathmaxrxt},
+ {"sctp_sack_delay", PARAM_INT, &sctp_default_cfg.sack_delay},
+ {"sctp_sack_freq", PARAM_INT, &sctp_default_cfg.sack_freq},
+ {"sctp_max_burst", PARAM_INT, &sctp_default_cfg.max_burst},
+ {0, 0, 0}
+};
struct module_exports exports = {
- "sctp", /* module name */
- DEFAULT_DLFLAGS, /* dlopen flags */
- cmds, /* cmd exports */
- params, /* param exports */
- 0, /* exported RPC functions */
- 0, /* exported pseudo-variables */
- 0, /* response handling function */
- mod_init, /* module initialization function */
- 0, /* per child init function */
- 0 /* destroy function */
+ "sctp", /* module name */
+ DEFAULT_DLFLAGS, /* dlopen flags */
+ cmds, /* exported functions */
+ params, /* exported parameters */
+ 0, /* RPC method exports */
+ 0, /* exported pseudo-variables */
+ 0, /* response handling function */
+ mod_init, /* module initialization function */
+ 0, /* per-child init function */
+ 0 /* module destroy function */
};
+/* clang-format on */
int mod_register(char *path, int *dlflags, void *p1, void *p2)
{