aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix IPv6 address checking (#516319)Bill Nottingham2009-08-102-1/+2
|
* Remove very obsolete file.Bill Nottingham2009-07-291-40/+0
|
* 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.
* More tests.Bill Nottingham2009-07-291-0/+4
|
* More tests.Bill Nottingham2009-07-291-23/+30
|
* Add some simple regression tests for ipcalcBill Nottingham2009-07-292-0/+89
| | | | Adapted from tests from Matej Susta <msusta@redhat.com>.
* 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.
* Compile ipcalc with _GNU_SOURCE defined (for asprintf).David Cantrell2009-03-191-1/+1
|
* Man page updates for ipcalc(1)David Cantrell2009-03-192-7/+23
| | | | | 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
* Add an option for consoletype to always return 0.Bill Nottingham2009-03-172-3/+8
| | | | | This allows tcsh -e to work, with lang.sh. It's a hack, but there really isn't a better way to solve it.
* loadkeys has a -q option for silent running. Use it.Bill Nottingham2009-02-261-6/+6
|
* Don't re-init an existing device, it causes errors. (#484411, ↵Bill Nottingham2009-02-061-1/+1
| | | | <jpayne@redhat.com>)
* Make rename_device much faster in the presence of many devices (#480687, ↵Bill Nottingham2009-01-191-73/+19
| | | | <danms@us.ibm.com>)
* Fix setting of console font/map (#458362, <ak@sensi.org>)Bill Nottingham2008-10-061-6/+11
| | | | Don't explicitly pass -u none or -m none; just pass them if one is set.
* No need to wait here. <arjan@infradead.org>Bill Nottingham2008-07-101-2/+0
| | | | Untracked files:
* Remove old dead stuff.Bill Nottingham2008-06-208-1448/+0
|
* Support SYSFONTACM correctly, and support UNIMAP (#448704, ↵Bill Nottingham2008-06-191-4/+10
| | | | <vvv+fedora@colocall.net>)
* Add a 'securetty' command that frobs /etc/securetty. Call it from the serial ↵Bill Nottingham2008-04-032-1/+99
| | | | event. (#437381)
* ispeed/ospeed don't exist on all platforms. Use accessor functions.Bill Nottingham2008-03-251-1/+1
|
* handle non-16550 serial ports, somewhat (<dwmw2@infradead.org>)Bill Nottingham2008-03-191-1/+24
|
* always open with NONBLOCK, clear the serial structs first ↵Bill Nottingham2008-03-191-1/+4
| | | | (<dwmw2@infradead.org>)
* Improve performance of s390 ccw rules (#437110, <mernst@de.ibm.com>)Bill Nottingham2008-03-131-6/+7
|
* Add a helper that checks for serial and serial-like consolesBill Nottingham2008-03-102-1/+156
| | | | | This works by doing checks from udev that emit upstart events. upstart listens to these events and starts a getty if needed.
* Add console_init udev helper.Bill Nottingham2008-02-262-1/+169
| | | | | | | | | | | | This helper: - sets the keyboard mode - sets the console mode - sets the console font - sets the keyboard map based on configuration in /etc/sysconfig/keyboard and /etc/sysconfig/i18n. This allows us to remove various cruft from rc.sysinit and /etc/profile.d/lang.sh.
* add patch from rhel5 (#351291)Bill Nottingham2008-01-091-2/+15
|
* just suggest an interface name, don't do actual renamingBill Nottingham2007-10-051-86/+3
|
* fix it for 64-bit systems (#306811)Bill Nottingham2007-09-261-1/+1
|
* fix open() callBill Nottingham2007-08-301-1/+1
|
* require popt in /lib*, link it dynamicallyBill Nottingham2007-08-291-5/+5
|
* more verbose error codesHarald Hoyer2007-08-081-13/+90
|
* license cleanupBill Nottingham2007-08-0312-43/+113
|
* drop user gid (#229372)Bill Nottingham2007-04-191-0/+2
|
* fix man page formatting (<esr@thyrsus.com>)Bill Nottingham2007-02-071-1/+1
|
* reset alarm on connection so that ppp-watch remains running whenBill Nottingham2007-01-171-0/+1
| | | | ONBOOT=yes (#216749)
* add a step to rename any temporarily renamed devices (#208740,Bill Nottingham2006-11-281-2/+29
| | | | #204803, #214817)
* I can't countBill Nottingham2006-11-011-1/+1
|
* more subchannels fixing (#204803)Bill Nottingham2006-10-301-13/+48
|
* use SUBCHANNELS as the primary key for s390 network devices (#204803)Bill Nottingham2006-10-261-0/+21
|
* move ccwgroup initialization to a udev rule (#199139, #199655, #169161)Bill Nottingham2006-09-272-0/+43
|
* reset DEVPATH when renaming (#206884, <phil@fifi.org>)Bill Nottingham2006-09-181-0/+1
|
* name it something more obvious as a temporary deviceBill Nottingham2006-09-151-1/+1
|
* don't loop if there are multiple devices with the same hwaddr (#199242, ↵Bill Nottingham2006-07-191-6/+13
| | | | <markmc@redhat.com>)
* fix manpage ref (#198756)Bill Nottingham2006-07-131-1/+1
|