Date: Fri, 22 Jul 2011 20:48:45 GMT From: Nima Misaghian <nmisaghian@sandvine.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/159121: Make adv_int a runtime configurable option Message-ID: <201107222048.p6MKmj8V091206@red.freebsd.org> Resent-Message-ID: <201107222050.p6MKo71n051987@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159121 >Category: ports >Synopsis: Make adv_int a runtime configurable option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 22 20:50:06 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Nima Misaghian >Release: 8.2 >Organization: Sandvine Inc. >Environment: >Description: The advertisement interval is not configurable and is hard-coded inside the C code. It is more desirable to make it configurable, as we needed to to so in order to make the application conform to different use cases we had. The posted simple patch does the required change. >How-To-Repeat: >Fix: --- ./vrrp_conf.c.orig 2011-07-22 12:08:45.000000000 -0400 +++ ./vrrp_conf.c 2011-07-22 12:08:54.000000000 -0400 @@ -269,6 +269,12 @@ vrrp_conf_freeargs(temp); optok = 1; } + if (!strcmp(option, "advinterval")) { + temp = vrrp_conf_split_args(arg, ','); + vr->adv_int = atoi(temp[0]); + vrrp_conf_freeargs(temp); + optok = 1; + } if (!strcmp(option, "password")) { temp = vrrp_conf_split_args(arg, ','); vr->password = (char *)calloc(8, 1); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107222048.p6MKmj8V091206>