Re: ipset 5: bug in parser for ipv6 when restoring

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

 



On Tue, 21 Dec 2010, Elie Rosenblum wrote:

> Entries added via ipset command line for ipv6 seem to work fine:
> ---example---
> blinky:/etc/ipsets# ipset create localnets-v6 hash:net family inet6
> blinky:/etc/ipsets# ipset add localnets-v6 fe80::/7
> blinky:/etc/ipsets# ipset list localnets-v6
> Name: localnets-v6
> Type: hash:net
> Header: family inet6 hashsize 1024 maxelem 65536
> Size in memory: 9348
> References: 0
> Members:
> fe00::/7
> ---end---
> 
> The problem occurs with restores:
> ---example---
> blinky:/etc/ipsets# ipset save localnets-v6 > tmpset
> blinky:/etc/ipsets# cat tmpset
> create localnets-v6 hash:net family inet6 hashsize 1024 maxelem 65536
> add localnets-v6 fe00::/7
> blinky:/etc/ipsets# ipset destroy localnets-v6
> blinky:/etc/ipsets# ipset restore < tmpset
> ipset v5.0: Error in line 1: Syntax error: cannot parse fe00::: resolving to IPv4 address failed
> ---end---

Thanks for the bugreport: it affected all IPv6 related restore operation 
and it's fixed in ipset 5.1.

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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux