Re: ping acting strangely on 13.3

From: Dewayne Geraghty <dewayne_at_heuristicsystems.com.au>
Date: Mon, 11 Mar 2024 23:12:21 UTC
On 11/03/2024 8:18 pm, Andrea Venturoli wrote:
> On 3/10/24 22:42, Dewayne Geraghty wrote:
>> Andrea, you mentioned commenting "options INET6" from the kernel, but 
>> do you also have WITHOUT_INET6 in /etc/src.conf, as this will take 
>> care of userland?  It might help to review the ref below. If not, then 
>> you probably need to add it and perform a "make world".
>>
>> Ref: man src.conf | col -b | grep -A3 -iE "INET6|IPV6"
>>
>> Regards, Dewayne.
>>
> 
> Hello and thanks for answering.
> 
> Is this officially needed?
> That would be a problem, since I build world on one single box, then 
> install on different boxes which might have INET6 or not in the kernel.
> 
> If it's compulsory, I'll see what I can do, but I find it strange, since 
> I never used this before (and I still don't with 14.0).
> 
>   bye
>      av.
> 
A quick read of /usr/src/sbin/ping/main.c looks like it may depend on 
the resolution order, though this isn't my area of expertise.  However 
it is consistent that if the OS doesn't support a protocol (because 
INET6 is commented out) then the userland applications should be 
expected to misbehave when the missing part is sought.