Bug 3841

Summary: getaddrinfo() does not accept numeric service without any hints
Product: uClibc Reporter: Natanael Copa <ncopa>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: uclibc-cvs
Priority: P5    
Version: 0.9.32   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: testcase based on iptables code
0001-getaddrinfo-allow-numeric-service-without-any-hints.patch

Description Natanael Copa 2011-06-08 09:38:47 UTC
Created attachment 3385 [details]
testcase based on iptables code

This makes iptables-1.4.11 break when using udp and raw port numbers:

$ sudo iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables v1.4.11: Port "53" does not resolve to anything.

Try `iptables -h' or 'iptables --help' for more information.


Using '--dport domain' works.
Comment 1 Natanael Copa 2011-06-08 09:45:50 UTC
Created attachment 3391 [details]
0001-getaddrinfo-allow-numeric-service-without-any-hints.patch

This patch fixes the issue
Comment 2 Bernhard Reutner-Fischer 2011-06-14 14:47:25 UTC
Hi,

applied as bc3be18145e4d57e7268506f123c0f0f373a15e2, will backport this for 0.9.32.1

Thanks!