##
## Network Calculator
## Copyright (C) 2000 Mark Rigby-Jones <mrj@compsoc.net>
## http://www.compsoc.net/~mrj/palm/netcalc/
## 
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
##

About Network Calculator
------------------------
NetCalc is a simple network calculator for peforming manipulations of IP
addresses, netmasks etc.

Usage
-----
Just enter an IP address/netmask/whatever into the field at the top of the
screen and tap 'Calculate'.  The short form of the specified network will
be displayed, together with the number of usable IP addresses and the IP
Address, Netmask, Network Address and Broadcast Address in both dotted
quad and 32-bit integer formats.

Allowed input formats are as follows:

1) <ipaddr>
Calculates the appropriate Class A, B or C netmask.
eg 192.168.2.1

2) <ipaddr>/<bits>
Here, both the IP Address and Netmask are specified in the short format.
eg 127.0.0.1/24

3) <ipaddr>/<netmask>
Here, both the IP Address and Netmask are specified in full.
eg 10.0.0.1/255.255.0.0

4) <ipaddr>-<ipaddr>
Finds the smallest network containing the given range of ip addresses.
eg 192.168.1.75-192.168.1.125

5) <ipaddr>+<numhosts>
Finds the smallest network containing the given ip address and at least
the given number of usable IP addresses.
eg 10.0.0.1+4242

In all cases, the IP Address can be omitted and will default to 0.0.0.0.
<ipaddr>s can be specified in dotted quad notation or as a 32-bit integer.

License etc
-----------
I've released this application as free software under the GNU General
Public License (see the file COPYING), so you're welcome to use it, hack
the source code, beam it to your friends etc as much as you like. On the
other hand, if you do feel like thanking me in some small way, I'll
happily accept bug reports, patches, cash etc.  If there's a feature you'd
like to see added and don't feel like coding it yourself then let me know
and I'll put it on the TODO list (the priority depending on how much work
is involved, how much fun it would be and the size of the bribe).

Compiling
---------
NetCalc was compiled under Red Hat Linux 6.1 using prc-tools 2.0 and pilrc
v2.5b1 with the PalmOS SDK 3.1.
