Hi Stephen, On Fri, 28 Oct 2011, Stephen Hemminger wrote: > The protocol argument to getservbyname() must be lowercase tcp not > uppercase TCP. This fixes the bug observed by: > > # ipset add foo http > ipset v6.9.1: Syntax error: 'http' is invalid as number > Syntax error: cannot parse 'http' as a TCP port > --- > lib/parse.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/parse.c b/lib/parse.c > index 241d5ae..3ca702c 100644 > --- a/lib/parse.c > +++ b/lib/parse.c > @@ -307,7 +307,7 @@ int > ipset_parse_tcp_port(struct ipset_session *session, > enum ipset_opt opt, const char *str) > { > - return ipset_parse_tcpudp_port(session, opt, str, "TCP"); > + return ipset_parse_tcpudp_port(session, opt, str, "tcp"); > } > > /** > @@ -330,7 +330,7 @@ ipset_parse_single_tcp_port(struct ipset_session *session, > assert(opt == IPSET_OPT_PORT || opt == IPSET_OPT_PORT_TO); > assert(str); > > - return ipset_parse_port(session, opt, str, "TCP"); > + return ipset_parse_port(session, opt, str, "tcp"); > } > > /** > -- > 1.7.2.5 Ohh, thanks! Somehow port names haven't been tested by the testsuite.... Best regards, Jozsef - E-mail : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxx PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt Address : KFKI Research Institute for Particle and Nuclear Physics H-1525 Budapest 114, POB. 49, Hungary -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html