ports/159121: Make adv_int a runtime configurable option

Nima Misaghian nmisaghian at sandvine.com
Fri Jul 22 20:50:07 UTC 2011


>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:



More information about the freebsd-ports-bugs mailing list