Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 14:06:37 GMT
From:      Palle Girgensohn <girgen@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/133241: balance parameter -b does not accept numeric ip address
Message-ID:  <200903311406.n2VE6bK2024134@www.freebsd.org>
Resent-Message-ID: <200903311410.n2VEA4bT088565@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         133241
>Category:       ports
>Synopsis:       balance parameter -b does not accept numeric ip address
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 31 14:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn
>Release:        7.1
>Organization:
Ping Pong AB
>Environment:
>Description:
The script for balance requires setting the inbound address, but the hardcoded -b switch does not accept a numieric ip address, it thinks "this must be ipv6":

/usr/local/bin/balance -b 192.168.1.208 8282 other.host.name:80
setsockopt(IPV6_V6ONLY=0): Invalid argument

all i want is 
 balance 8282 other.host.name:80

the balance machine has two NIC, I want balance to attach to both. Can't do that with current balance rc-script, since it requires -b and -b cannot accept numeric ipv4 addresses, and I don't have separate names for the two ip addresses on the NIC.
>How-To-Repeat:
/usr/local/bin/balance -b 192.168.1.208 8282 other.host.name:80
>Fix:
fix balance not to expect ipv6? or fix balance rc-script not to absolutely require an inbound address  by removing the -b $hostname switch

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903311406.n2VE6bK2024134>