Need two flowgrindd instances for IPv4 and IPv6 under FreeBSD

Bug #1239976 reported by Lars Eggert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Flowgrind
New
Undecided
Unassigned

Bug Description

I need to start two flowgrindd instances on FreeBSD. The first instance is only binding to an IPV6 socket:

root@five:~ # flowgrindd
root@five:~ # sockstat | grep flow
root flowgrindd 47727 3 dgram -> /var/run/logpriv
root flowgrindd 47727 6 tcp6 *:5999 *:*

The second instance is then binding to an IPv4 socket:

root@five:~ # flowgrindd
root@five:~ # sockstat | grep flow
root flowgrindd 47731 3 dgram -> /var/run/logpriv
root flowgrindd 47731 6 tcp4 *:5999 *:*
root flowgrindd 47727 3 dgram -> /var/run/logpriv
root flowgrindd 47727 6 tcp6 *:5999 *:*

Why doesn't the first instance bind to both IPv4 and IPv6?

Revision history for this message
Christian Samsel (oxygenx) wrote :

This ist the expected and correct behaviour on FreeBSD. It binds exactly one address and FreeBSD prefers v6 over v4. You can change the binding address with -b.

Revision history for this message
Lars Eggert (lars-g) wrote : Re: [Bug 1239976] Need two flowgrindd instances for IPv4 and IPv6 under FreeBSD

On Oct 15, 2013, at 14:11, Christian Samsel <email address hidden> wrote:
> This ist the expected and correct behaviour on FreeBSD. It binds exactly
> one address and FreeBSD prefers v6 over v4.

So then the second bind() should throw an error rather than silently binding to v4.

Lars

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.