Re: Expanding subnets

2009-07-19 Thread Andy Smith
Hi kj, On Wed, Jun 03, 2009 at 09:35:15AM +0100, kj wrote: > I need to feed subnets into a database in the format 192.168.0.% or > 192.168.%.% Whenever I find myself trying to do something like this, I stop and consider if my database design is optimal. You can store an IPv4 address as a 32-bit

Expanding subnets

2009-06-03 Thread kj
Hi guys, I need to feed subnets into a database in the format 192.168.0.% or 192.168.%.% which means, for example, 192.168.0.0/23 should break down into: 192.168.0.% 192.168.1.% Does anyone know of a way to convert this? Thanks --kj -- To UNSUBSCRIBE, email to debian-user-requ...@lists.deb