Skip to content

Commit

Permalink
Call submoule instantiate for proto modules before calling master.ins…
Browse files Browse the repository at this point in the history
…tantiate
  • Loading branch information
arr2036 committed May 13, 2024
1 parent e78324b commit 3fab4b4
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/listen/bfd/proto_bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/control/proto_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/cron/proto_cron.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/dhcpv4/proto_dhcpv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/dhcpv6/proto_dhcpv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/dns/proto_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 64);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/load/proto_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/radius/proto_radius.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
*/
inst->io.mi = mctx->mi;

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/tacacs/proto_tacacs.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down
6 changes: 6 additions & 0 deletions src/listen/vmps/proto_vmps.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);

/*
* Instantiate the transport module before calling the
* common instantiation function.
*/
if (module_instantiate(inst->io.submodule) < 0) return -1;

/*
* Instantiate the master io submodule
*/
Expand Down

0 comments on commit 3fab4b4

Please sign in to comment.