Re: [PATCH] Provide family and protocol to make getaddrinfo happy

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

 



On Wednesday 2011-05-25 14:16, Lutz Jaenicke wrote:

>getaddrinfo() will fail for numeric port numbers if neither
>the socket type (stream/datagram) nor the protocol is
>provided.
>Since matches on ports only make sense if the protocol is known
>we "just" have to derive the protocol number from the information
>already collected.

Not quite; ports are also possible with -m ipvs and -m conntrack, which 
do not require -p tcp/udp.

If someone speicifies a numeric port to getaddrinfo, I just want the 
thing encoded in struct sockaddr_XX.sXX_port - it does not need to know 
the particular L4 proto, or the service's text-based name to do that - 
which is most likely why glibc allows it.

I would like to have an opinion on that from Âclibc preferably..
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux