Bug 3841 - getaddrinfo() does not accept numeric service without any hints
Summary: getaddrinfo() does not accept numeric service without any hints
Status: RESOLVED FIXED
Alias: None
Product: uClibc
Classification: Unclassified
Component: Networking (show other bugs)
Version: 0.9.32
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 09:38 UTC by Natanael Copa
Modified: 2011-06-14 14:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
testcase based on iptables code (1014 bytes, text/x-csrc)
2011-06-08 09:38 UTC, Natanael Copa
Details
0001-getaddrinfo-allow-numeric-service-without-any-hints.patch (1.11 KB, patch)
2011-06-08 09:45 UTC, Natanael Copa
Details

Note You need to log in before you can comment on or make changes to this bug.
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!