aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipcalc.c
Commit message (Collapse)AuthorAgeFilesLines
* License cleanup.Bill Nottingham2010-01-051-1/+1
|
* Fix IPv6 address checking (#516319)Bill Nottingham2009-08-101-1/+1
|
* Various ipdates to ipcalc to make it more useful.Victor Lowther2009-07-291-27/+42
| | | | | | | | 0 is a perfectly good prefix length. All the cool default routes use it. Autodetect if we are passed an IPv6 address and shift modes accordingly. Check prefixes as well as addresses when checking for validity.
* Expand get_hostname() function to support IPv4 and IPv6.David Cantrell2009-03-191-7/+29
| | | | | Make sure that get_hostname() if the user specifies either address family.
* Remove unnecessary tab.David Cantrell2009-03-191-1/+1
|
* Correct address family option handling in ipcalc.David Cantrell2009-03-191-42/+41
| | | | | Make sure the default is IPv4. If the check option is specified, make sure we just validate the address and return 1 or 0.
* Man page updates for ipcalc(1)David Cantrell2009-03-191-1/+2
| | | | | Make sure the ipcalc man page explains the -c, -4, and -6 options. Update some other things. Shamelessly add my name.
* Add a address check capability for IPv4 and IPv6 addresses.David Cantrell2009-03-191-0/+42
| | | | | | | | | | | | | Add the -c, --check argument which enables address validation. The ipcalc program will exit with 0 if the address is valid or 1 if it is invalid, for the specified family. Add the -4, --ipv4 argument to specify the IPv4 address family. Add the -6, --ipv6 argument to specify the IPv6 address family. Ensure that the IPv6 family argument is invalid with the IPv4-only show arguments (broadcast, network, netmask, prefix).
* Use asprintf() rather than malloc() and sprintf().David Cantrell2009-03-191-3/+6
| | | | | Use asprintf() for conversion and abort on memory allocation failures.
* Use inet_ntop() and inet_pton()David Cantrell2009-03-191-5/+27
| | | | | The inet_ntoa() and inet_aton() functions are deprecated and limited to AF_INET only.
* Use 'struct in_addr' for IPv4 addresses.David Cantrell2009-03-191-44/+54
| | | | | Change from using uint32_t to struct in_addr for IPv4 addresses. Get rid of the IPBITS and IPBYTES macros.
* Whitespace cleanups for src/ipcalc.cDavid Cantrell2009-03-191-135/+130
| | | | Consistently use 4 spaces for indentation throughout ipcalc.c
* license cleanupBill Nottingham2007-08-031-4/+10
|
* be more explicitBill Nottingham2004-05-051-13/+13
|
* ip addresses are ints, not longs (#122479)Bill Nottingham2004-05-051-13/+13
|
* fix some memory handling (#85478, <miked@ed.ac.uk>)Bill Nottingham2003-09-041-2/+3
|
* copyright tweakageBill Nottingham2003-01-141-1/+1
|
* fix calculation of /32 addresses (#76646)Bill Nottingham2003-01-141-1/+1
|
* some minor ipcalc cleanups (#58410)Bill Nottingham2002-04-121-7/+26
|
* quit stripping binariesBill Nottingham2002-04-121-1/+6
|
* fix 64-bit brokenessBill Nottingham2001-06-271-2/+3
|
* allow building with older poptBill Nottingham2001-06-201-1/+1
|
* simple fix for -pPreston Brown2001-05-021-1/+1
|
* --prefix fixupsPreston Brown2001-04-301-4/+12
|
* understands CIDR prefixes, operates more cleanly.Preston Brown2001-04-301-50/+256
|
* change hostnames to all lowercase (#9579)Bill Nottingham2001-01-301-0/+5
|
* added help/usage messagesErik Troan1999-08-101-5/+11
|
* added --netmask argumentErik Troan1998-03-221-1/+12
|
* added --hostname optionErik Troan1998-03-101-14/+44
|
* added ipcalcErik Troan1998-03-101-0/+69