From: Michele Andreoli (m.andreoli@tin.it)
Date: Fri Apr 12 2002 - 15:37:08 CEST
On Thu, Apr 11, 2002 at 05:08:02PM +0200, Dirk Heilemann wrote:
> I located the problem in the /usr/bin/ip_network script.
> Other netmasks than /8 /16 /24 do not work.
> But I don't know how to change it.
I solved the problem, enhancing a little the "expr" command: now it
is able to to logical bitwise operation such
# expr 4 & 255
# expr ~ 4
etc (must quote \&, \~).
After that, I changed the ip_network and the ip_broadcast AWK script,
calling the external program expr (ugly, but awk do not seems to
support this kind of C language operation).
The theory used (if I'm not wrong) is:
network= ip & mask
broadcast = ip | ~mask
I've the ipfix.tgz (only 13k) and send to you now via attachment.
In the archive, also the new busybox (for the expr).
Michele
-- I keep trying to locate a meeting of Quantum Physicists. But everytime they set a meeting time, the location changes. And vice versa -- Anonymous --------------------------------------------------------------------- To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk For additional commands, e-mail: mulinux-help@sunsite.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET