Source

netplug / lib.c

Author Commit Message Labels Comments Date
Bryan O'Sullivan
Merge
Bryan O'Sullivan
Don't burn out if we don't find an interface name. This is needed for some wonky drivers, such as ndiswrapper.
Bryan O'Sullivan
Merge
Bryan O'Sullivan
Update copyright.
Bryan O'Sullivan
SLightly more informative log message.
Bryan O'Sullivan
Log assert failures properly.
jsgf
merge
jsgf
Various cleanups
Bryan O'Sullivan
Turned state machine diagram into a .dot file for readability. Added Jeremy's copyright to source files he modified heavily. Bumped version number.
Tags
v1.1
Bryan O'Sullivan
Merge
Tags
v1.0.1
Bryan O'Sullivan
Bump version.
jsgf
Further updates to deal with initial state of each controlled interface.
jsgf
Add an explicit state machine for each interface to track the flag state changes and the various scripts. This should make the behaviour much more controllable. Still to do: also poll the interface flag state so that we can detect the interface state at startup, rather than purely relying on netlink state change events.
Bryan O'Sullivan
Add GPLv2 license header. Turn tabs into spaces.
Bryan O'Sullivan
Move do_log out of main.c.
Bryan O'Sullivan
Don't open netlink socket until after we become a daemon. daemon() helpfully closes the netlink fd, but doesn't document this behaviour. Suck.
Bryan O'Sullivan
Convert to new logging API.
Bryan O'Sullivan
Small fixes.
Bryan O'Sullivan
Get rid of calls to /sbin/hotplug and /sbin/ip, and replace them with calls to a script we provide.
Bryan O'Sullivan
Split code into multiple files.