summaryrefslogtreecommitdiffstats
path: root/if-linux.c
Commit message (Collapse)AuthorAge
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Blank memory correctly so we pickup address and route addition/deletion better.Roy Marples2009-04-19
|
* discover_interfaces now uses getifaddrs instead of OS specific implementation.Roy Marples2009-04-17
| | | | | | | do_interface then becomes do_address and also uses getifaddrs. Binary size is a little smaller, code size is now a lot smaller.
* We should not work with lo by default.Roy Marples2009-03-23
|
* Allow dhcpcd to run on loopback interfaces if specified.Roy Marples2009-03-20
|
* Linux can now detect address addition and removal too.Roy Marples2009-03-19
|
* Fix compile on Linux.Roy Marples2009-03-19
|
* We shouldn't need to flush arp entires ourself on BSD platforms.Roy Marples2009-03-11
|
* Finally fix compile on vanilla kernel headers.Roy Marples2009-02-24
| | | | | | | | | This is done by moving the wireless calls to a separate file that just includes linux/wireless.h. This is needed because linux/wireless.h includes linux/if.h which may or may not have been fixed to co-exist with net/if.h. Maybe one day this won't be needed ....
* We need to include linux/wireless.h as wireless.h belongs to wireless-toolsRoy Marples2009-02-23
|
* Try a new tactic to compile with old broken linux kernel headers.Roy Marples2009-02-23
|
* Fix up some more formatting.Roy Marples2009-02-12
|
* Enforce NetBSD KNF style moreRoy Marples2009-02-11
|
* Fix compile on BSD.Roy Marples2009-01-27
|
* Add route removal detection to Linux.Roy Marples2009-01-27
| | | | | | This involved a rejig of the socket code so we can detect if we removed the route or not.
* Fix compile with crappy linux headers.Roy Marples2009-01-23
|
* You can now add a configure block per ssid if the interface is wireless.Roy Marples2009-01-01
|
* Ensure that we add the src pref address.Roy Marples2008-11-27
|
* Fix adding of host routes.Roy Marples2008-11-25
|
* Fix working with linux aliased interfaces again.Roy Marples2008-11-17
|
* Parens.Roy Marples2008-11-05
|
* get_line now uses a single buffer, strips leading space and skips comments. ↵Roy Marples2008-11-05
| | | | This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase.
* Fix reading netmask and linux informing.Roy Marples2008-10-18
|
* static objects are initialized to 0 by default, so don't explicity do this.Roy Marples2008-10-06
|
* Move wireless detection from net.c into if-bsd.c and if-linux.cRoy Marples2008-09-17
|
* We need to flush the ARP table after configuring new routes.Roy Marples2008-09-15
|
* Fix subnet route.Roy Marples2008-09-13
|
* Remove remembering routes per interface and have a global routing table so ↵Roy Marples2008-09-12
| | | | we can change routes depending on interface state. This is very useful for the BSD's where there is no route metric.
* Tidy up some valgrind errors.Roy Marples2008-09-11
|
* Add allowinterfaces and denyinterfaces options to dhcpcd.conf for better ↵Roy Marples2008-09-11
| | | | multiple interface support.
* Fix interface detection.Roy Marples2008-09-09
|
* Fix compile errors.Roy Marples2008-09-09
|
* On Linux, fix replacing the kernel added subnet route correctly for metrics.Roy Marples2008-09-08
|
* Enable detection of addition and removal of interfaces on Linux.Roy Marples2008-09-04
|
* Fix compile on Linux.Roy Marples2008-09-04
|
* Clean code.Roy Marples2008-09-02
|
* Add an event loop.Roy Marples2008-09-02
| | | | | | | | Split client.c into smaller files and functions and recode around the event loop. Add multiple interface support using the new event loop. Document changes and outstanding bugs.
* Fix warning.Roy Marples2008-07-16
|
* Add support for link carrier detection. For Linux this involved a big change ↵Roy Marples2008-07-16
| | | | to the netlink code to add callbacks, for BSD just an extra function. We also have an option not to wait for a DHCP lease and fork right away - useful for startup scripts.
* Our ctype calls should always use unsigned.Roy Marples2008-04-17
|
* Normally I hate massive code drops, but heh.Roy Marples2008-04-11
| | | | | | | | | | The code has been drastically re-arranged. Instead of populating a custom structure while parsing dhcp messages, we now pluck what we need right out of the message itself. We have custom functions and a lookup table to make this really easy. This makes us more like dhclient and udhcpc, and will enable us to easily add (and remove!) more dhcp options without having to actually change the code (much). We now store the real dhcp message we got in /var/db/dhcpcd-$iface.lease, the mtime of the file being used as when we got the lease. This file is read in when re-using an old lease instead of parsing the .info file. The benefit of all of this means that we're actually ~15k smaller when compiled with the same features. This has been tested for quite some time, and I'm pretty sure most bugs with the 3.2 branch have been fixed whilst making this. Right now, we are 99% command line compatible with the 3.2 branch.
* Remove all logging from if.c and into the proper bits.Roy Marples2008-03-29
|
* Move log_route to if.cRoy Marples2008-03-29
|
* Rework our error handling code a little to save ~5k on x86_64Roy Marples2008-03-29
|
* Split interface and socket out into OS bpf, if-bsd and if-linux.Roy Marples2008-03-24