Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | License cleanup. | Bill Nottingham | 2010-01-05 | 1 | -1/+1 |
| | |||||
* | Fix IPv6 address checking (#516319) | Bill Nottingham | 2009-08-10 | 1 | -1/+1 |
| | |||||
* | Various ipdates to ipcalc to make it more useful. | Victor Lowther | 2009-07-29 | 1 | -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 Cantrell | 2009-03-19 | 1 | -7/+29 |
| | | | | | Make sure that get_hostname() if the user specifies either address family. | ||||
* | Remove unnecessary tab. | David Cantrell | 2009-03-19 | 1 | -1/+1 |
| | |||||
* | Correct address family option handling in ipcalc. | David Cantrell | 2009-03-19 | 1 | -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 Cantrell | 2009-03-19 | 1 | -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 Cantrell | 2009-03-19 | 1 | -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 Cantrell | 2009-03-19 | 1 | -3/+6 |
| | | | | | Use asprintf() for conversion and abort on memory allocation failures. | ||||
* | Use inet_ntop() and inet_pton() | David Cantrell | 2009-03-19 | 1 | -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 Cantrell | 2009-03-19 | 1 | -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.c | David Cantrell | 2009-03-19 | 1 | -135/+130 |
| | | | | Consistently use 4 spaces for indentation throughout ipcalc.c | ||||
* | license cleanup | Bill Nottingham | 2007-08-03 | 1 | -4/+10 |
| | |||||
* | be more explicit | Bill Nottingham | 2004-05-05 | 1 | -13/+13 |
| | |||||
* | ip addresses are ints, not longs (#122479) | Bill Nottingham | 2004-05-05 | 1 | -13/+13 |
| | |||||
* | fix some memory handling (#85478, <miked@ed.ac.uk>) | Bill Nottingham | 2003-09-04 | 1 | -2/+3 |
| | |||||
* | copyright tweakage | Bill Nottingham | 2003-01-14 | 1 | -1/+1 |
| | |||||
* | fix calculation of /32 addresses (#76646) | Bill Nottingham | 2003-01-14 | 1 | -1/+1 |
| | |||||
* | some minor ipcalc cleanups (#58410) | Bill Nottingham | 2002-04-12 | 1 | -7/+26 |
| | |||||
* | quit stripping binaries | Bill Nottingham | 2002-04-12 | 1 | -1/+6 |
| | |||||
* | fix 64-bit brokeness | Bill Nottingham | 2001-06-27 | 1 | -2/+3 |
| | |||||
* | allow building with older popt | Bill Nottingham | 2001-06-20 | 1 | -1/+1 |
| | |||||
* | simple fix for -p | Preston Brown | 2001-05-02 | 1 | -1/+1 |
| | |||||
* | --prefix fixups | Preston Brown | 2001-04-30 | 1 | -4/+12 |
| | |||||
* | understands CIDR prefixes, operates more cleanly. | Preston Brown | 2001-04-30 | 1 | -50/+256 |
| | |||||
* | change hostnames to all lowercase (#9579) | Bill Nottingham | 2001-01-30 | 1 | -0/+5 |
| | |||||
* | added help/usage messages | Erik Troan | 1999-08-10 | 1 | -5/+11 |
| | |||||
* | added --netmask argument | Erik Troan | 1998-03-22 | 1 | -1/+12 |
| | |||||
* | added --hostname option | Erik Troan | 1998-03-10 | 1 | -14/+44 |
| | |||||
* | added ipcalc | Erik Troan | 1998-03-10 | 1 | -0/+69 |