--On Wednesday, May 22, 2002 4:46 PM -0500 [EMAIL PROTECTED] wrote:

> What would be the easiest way to get ipcalc for Bering?

Have you considered ipmask?  It gives you nearly everything that can be 
determined from an IP address and was designed for scripts.  Who knows? 
Perhaps you can write a ipcalc wrapper for ipmask if you Really Must...

It's available as an LRP package already, too.

# ipmask

ipmask version 0.33, Copyright (C) 2001  David Douthitt <[EMAIL PROTECTED]>

ipmask comes with ABSOLUTELY NO WARRANTY; for details see the COPYING file
that accompained this distribution. This is free software, and you are 
welcome
to redistribute it under the terms of GNU PUBLIC LICENSE.

Usage:   ipmask [ -BbCcinrsxNmopR ] <ip> [ -m netmask ]

<ip> may be a hex IP address, dotted-quad (n.n.n.n), or a CIDR spec 
(n.n.n.n/x)

Display Options:

        -B      Display only broadcast address (BSD - obsolete)
        -b      Display only broadcast address
        -C      Display only Cisco wildcard mask
        -c      Display only CIDR
        -i      Display only IP
        -n      Display only network address
        -d      Display only decimal address
        -r      Display only range of valid addresses
        -s      Display subnet mask only
        -x      Display only hexadecimal IP

Modifiers:

        -N      No name lookups
        -m      Use this net mask
        -o      Official name (do a name lookup)
        -p      Pretty formatted display of all results
        -R      Hexadecimal IP address is in reversed order



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to