A
Antgoodlife
I'm aware there are a few CIDR modules, however, can any of them
expand short CIDR notation? Some of our unix/freebsd boxes print
routes in this annoying shortened format and I'd like to expand them
for various reasons... (I already written scripts that handle the
destination format so I'd like to continue using them once converted
to a more familiar format...
For example :
10/8
Should be re-written as 10.0.0.0 255.0.0.0 (I'd like both the
network and mask written like that)
Likewise
192.168.50/19
needs to be re-written as 192.168.50.0 255.255.224.0
I'm slightly familiar with the PACK and UNPACK but need some
assistance here.. alternatively some CIDR module might be better
suited here. Thanks in advance.
CIDR is great.. but not when I'm trying to use the expanded formats in
other scripts...
expand short CIDR notation? Some of our unix/freebsd boxes print
routes in this annoying shortened format and I'd like to expand them
for various reasons... (I already written scripts that handle the
destination format so I'd like to continue using them once converted
to a more familiar format...
For example :
10/8
Should be re-written as 10.0.0.0 255.0.0.0 (I'd like both the
network and mask written like that)
Likewise
192.168.50/19
needs to be re-written as 192.168.50.0 255.255.224.0
I'm slightly familiar with the PACK and UNPACK but need some
assistance here.. alternatively some CIDR module might be better
suited here. Thanks in advance.
CIDR is great.. but not when I'm trying to use the expanded formats in
other scripts...