Mailinglist Archive: yast-devel (105 mails)

< Previous Next >
[yast-devel] IP netmask broadcast address calculator
  • From: Johannes Meixner <jsmeix@xxxxxxx>
  • Date: Fri, 26 Sep 2008 09:19:22 +0200 (CEST)
  • Message-id: <alpine.LNX.1.10.0809260903030.7670@xxxxxxxxxxxxxx>

Hello,

I am looking for a "IP address calculator" in YCP.

For example when I have IP address and netmask
I like to get the resulting broadcast address
(not only for 8 16 24 bit netmasks).

Or when I have only a IP host or network address,
I like to get the usual netmask for it
depending on the address block, e.g.
127.x.x.x -> 255.0.0.0
10.x.x.x -> 255.0.0.0
192.168.x.x -> 255.255.255.0 (or 255.255.0.0 ?)

In particular it would be nice if it accepts the various
ways to specify the netmask, e.g. nnn.nnn.nnn.nnn/mm
versus nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm

I guess there is already code in whatever YCP module
but where is it?


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups