RE: Does getaddrinfo() need to be rebuilt for SCTP support?

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

 



From: Jonathan T. Leighton
> Sent: 05 November 2016 15:15
> I've run into some behavior of getaddrinfo() that I think may be
> incorrect. When getaddrinfo() is called with a numeric service argument
> (as opposed to a name), it returns a list of addrinfo structures for
> each protocol that it knows about, without referencing the /etc/services
> database. After installing lksctp I expected this list to include
> IPPROTO_SCTP, but it doesn't. It looks to me like getaddrinfo() is
> actually only returning addrinfo structures for all the protocols that
> is knew about when it was built. Is this the correct behavior? Does
> glibc need to be rebuilt after installing lksctp? Thanks for any help.

What you don't want is programs being given SCTP addresses when they
don't really want them.

I've seen problems in the past (not Linux) where programs have tried
to use addresses on all available protocols when they really just meant
TCP or UDP.

I don't think any of the address lookup functions are service specific,
AA and AAAA records probably aren't even protocol specific (below IP).

So programs that want to use SCTP can lookup TCP and then substitute SCTP
when they create the socket.

	David

��.n��������+%������w��{.n�����{������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux