[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bug in glibc2.1 IPv6?



In message <[🔎] 844sc1399u.fsf@snoopy.apana.org.au>, Brian May writes:
>If you try to call "socket" with IPv6 parameters, and IPv6 is not
>compiled into the kernel, then glibc2.1 returns EINVAL. Shouldn't it
>return ENOSYS or EAFNOSUPPORT?

Perhaps.  This is actually determined by the kernel rather than glibc, and 
there are some applications which now rely on seeing EINVAL.  So changing it 
at this stage would probably be a bad idea.

>Also, is getaddrinfo a glibc function? I cannot find any information
>on this function :-(.

Yes.  It's in the latest POSIX drafts and also in the documentation for the 
IPv6 Basic API.  It should also be in the glibc manual of course but it may be 
missing from there.

p.



Reply to: