[SR-Dev] Patch: fix nathelper module loading
Jan Janak
jan at iptel.org
Wed Apr 15 13:05:49 CEST 2009
Done, thanks.
Jan.
On 14-04 15:53, Henning Westerholt wrote:
> Hi,
>
> this patch fixes the module loading for the nathelper module. The module
> registers the additional processes only (for ping timers) only when
> natping_interval > 0. Thus we need to check for this variable in the
> child_init(..) function as well.
>
> Cheers,
>
> Henning
>
>
> diff --git a/modules/nathelper/nathelper.c b/modules/nathelper/nathelper.c
> index e9666bf..4118bf2 100644
> --- a/modules/nathelper/nathelper.c
> +++ b/modules/nathelper/nathelper.c
> @@ -1166,7 +1166,7 @@ child_init(int rank)
> struct rtpp_set *rtpp_list;
> struct rtpp_node *pnode;
>
> - if (rank==PROC_MAIN) {
> + if (rank==PROC_MAIN && natping_interval > 0) {
> for( i=0 ; i<natping_processes ; i++ ) {
> if(fork_dummy_timer(PROC_TIMER, "TIMER NH", 1 /*socks flag*/,
> nh_timer, (void*)(unsigned long)i,
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
More information about the sr-dev
mailing list