Commit Graph

15 Commits

Author SHA1 Message Date
Roy Marples
f9584c9506 Update copyrights to 2015. 2015-01-02 20:03:28 +00:00
Roy Marples
3ecdb9c2e7 We changed this file in 2014 2014-03-06 09:44:00 +00:00
Roy Marples
85d577d9a8 dhcpcd device context is from temporary storage, so copy the struct.
Thanks to Sergey Kvachonok.
2014-03-06 09:28:02 +00:00
Roy Marples
4eb7b4896f Move all global variables into contexts, with a small exception for
signal handling.
This allows dhcpcd to work better in a threaded environment such as rtems.
2014-02-12 00:39:46 +00:00
Roy Marples
36d293b12a Allow dev to recieve errors from managers handle_device. 2013-09-14 08:50:41 +00:00
Roy Marples
4b21a1f7c9 Fix warning 2013-09-12 22:11:04 +00:00
Roy Marples
077eb0643c It seems that some older udev versions support filtering but not
per device initialization checks.
Add a test for this.
2013-09-12 21:43:17 +00:00
Roy Marples
b4a7edc395 Dev module start now returns an fd to monitor so the eloop additions
can go into dev.c
Create a new struct to pass dhcpcd handle_interface to dev plugins
This allows us to build the dhcpcd binary normally and save a few k
disk space.
2013-09-12 21:13:41 +00:00
Roy Marples
a68c246036 Support older udev versions where we need to rely on udev-settle. 2013-09-12 16:46:41 +00:00
Roy Marples
413652c1b3 Instead of linking directly to libudev, create a plugin system for /dev
management. This allows dhcpcd to work even if udev removed and adds the
ability to change from udev to something else in the future.
2013-09-12 15:43:20 +00:00
Roy Marples
7c3225083f Instead of just renaming the interface on Linux, take the FreeBSD
approach and remove the old and create a new one.
This simple change allows the the allow/deny rules to be followed.
2013-09-10 09:56:11 +00:00
Roy Marples
f5cb1dab5c Check if udev has actually initialized the interface rather than just detecting if udev has a device node for it. 2013-09-10 08:52:45 +00:00
Roy Marples
e5e6db157b Improve udev handling a little. 2013-09-09 20:21:03 +00:00
Roy Marples
c0dd39cd08 Only start on settled devices. 2013-09-09 18:17:54 +00:00
Roy Marples
12bbc8cb5c Add udev support for interface arrival and departure.
This is because udev likes to rename the interface, which it can't
do if dhcpcd grabs it first.
2013-09-09 16:14:06 +00:00