Stephen Hemminger wrote:We fixed the same problem in iptables a few years ago, maybe you could reuse some of that code. Some quick testing shows that it parses all addresses according to your table: # iptables -I OUTPUT -d 127.2 # iptables -I OUTPUT -d 10.0 # iptables -I OUTPUT -d 10 # iptables -vxnL OUTPUT Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 all -- * * 0.0.0.0/0 10.0.0.0 0 0 all -- * * 0.0.0.0/0 10.0.0.0 0 0 all -- * * 0.0.0.0/0 127.2.0.0 You can find the code in "xtables.c", function numeric_to_ipaddr(). -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Bart Van Assche | Re: Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | Re: [RFC/PATCH] Documentation of kernel messages |
git: | |
| Winkler, Tomas | RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall" |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Mark Lord | Re: [BUG] New Kernel Bugs |
