Commit Graph

75 Commits

Author SHA1 Message Date
Roy Marples
7dab081fbe Add the noalias directive to so that when adding an IPv4 addresss
dhcpcd will overwrite a pre-existing address.

NetBSD PR/47699
2013-03-27 16:36:56 +00:00
Roy Marples
f7acdb2007 Fix compile on BSD 2013-02-19 15:28:21 +00:00
Roy Marples
969527cdec Fix compile. 2013-02-16 13:25:31 +00:00
Roy Marples
68ceb7004a Fix compile on BSD 2013-02-04 14:12:48 +00:00
Roy Marples
e54dee19ba Implement the core DHCPv6 client for SOLICIT, REQUEST, RENEW, CONFIRM. 2012-11-06 23:40:15 +00:00
Roy Marples
3a83f8aced Fix compile fr systems without RTF_CLONING such as FreeBSD-8 2012-10-24 12:59:20 +00:00
Roy Marples
eebe9a1887 Improve IPv6 RA support by allowing dhcpcd to manage the address and routes
instead of the kernel. dhcpcd will only do this if RA is disabled in the kernel
or dhcpcd has been instructed to do this via dhcpcd.conf(5) ipv6ra_own and
ipv6ra_own_default directives.

Send and process IPv6 Neighbor Solicitions and Adverts to prove router
reachability. If a router cannot be reached in this way then it is expired.

When debugging, all ND messages are displayed which will create a lot of log
spam.

To ease packaging, ./configure now accepts LDFLAGS and --enable-static.
2012-07-05 16:37:41 +00:00
Roy Marples
ae20b7ddab Simplify API a little. 2012-03-27 19:01:49 +00:00
roy@uberlaptop.marples.name
dcc1e564e7 Fix some valgrind errors on FreeBSD 2012-03-27 16:30:33 +00:00
Roy Marples
159cb2e6cf Fix carrier handling on BSD for interfaces that don't support link status 2012-01-31 16:32:10 +00:00
Roy Marples
7ae411d942 Fix more copyright 2012-01-31 09:51:12 +00:00
Roy Marples
c06ded74b2 Stop trunctating netmask sockaddr 2012-01-30 20:11:47 +00:00
Roy Marples
75092c2373 Optimize bitwise useage a little. 2011-11-23 11:59:53 +00:00
Roy Marples
e896947f2c Fix bitwise logic 2011-11-23 10:53:53 +00:00
Roy Marples
5f3b570cfd Fix carrier handling on BSD 2011-11-23 09:57:34 +00:00
Roy Marples
126abb55cf Respect each kernel message on carrier change instead of checking carrier
after receiving the message as it's possible for the kernel to react faster
than dhcpcd.
2011-11-23 09:03:24 +00:00
Roy Marples
eb99814091 2011 and new version. 2011-02-04 14:56:03 +00:00
Roy Marples
b92c960fe0 Use RT_ROUNDUP and friends so that we work with NetBSD 64-bit routing. 2011-02-04 14:43:51 +00:00
Roy Marples
64bc759d08 Compile on Mac OSX 10.4.
Thanks to David Brownlee.
2010-12-06 15:01:56 +00:00
Roy Marples
8349d72adf Support RTM_CHGADDR in NetBSD-6 for detecting link layer address changes. 2010-11-12 16:33:45 +00:00
Roy Marples
029821afa1 Use a dynamic buffer for managing link messages. 2010-07-21 20:45:41 +00:00
Roy Marples
7b6f803e29 These files were updated in 2010, so fix copyrights. 2010-06-04 08:33:16 +00:00
Roy Marples
d274a5320b Set the broadcast flag for interfaces that say they need it. 2010-03-05 15:47:46 +00:00
Roy Marples
255e14dab1 Enable net.ipv4.conf.$iface.promote_secondaries on Linux so that
we keep the subnet when changing addresses on the same subnet.
2010-02-26 20:37:30 +00:00
Roy Marples
8ab2df96b1 Just have one open socket for AF_NET. 2009-10-15 00:30:54 +00:00
roy@ubersparc.marples.name
2397b7e4fa We need to cast to void * to remove warnings on Sparc64 2009-05-02 16:21:52 +00:00
Roy Marples
601fb3d500 Add (c) to Copyright 2009-05-01 13:57:45 +00:00
Roy Marples
9d5fe47f45 Fix compile on NetBSD 2009-04-17 13:31:41 +00:00
Roy Marples
5ed586386c discover_interfaces now uses getifaddrs instead of OS specific implementation.
do_interface then becomes do_address and also uses getifaddrs.

Binary size is a little smaller, code size is now a lot smaller.
2009-04-17 12:49:25 +00:00
Roy Marples
45b51c7f6c dhcpcd CAN work on IEEE FireWire interfaces.
However, BPF does not appear to operate on these, so we report the error
and continue.
When BPF supports FireWire for DHCP, dhcpcd will magically start to work.
2009-03-23 10:09:10 +00:00
Roy Marples
1abffd5ba5 We can now detected primary addresses added or changed in BSD.
As such, we can wait for a 3RDPARTY to configure the interface, such as PPP.
We can then take the destination addess and automatically give it a default
route or any other DHCP option such as DNS servers.
This addresses #159.
2009-03-19 17:52:12 +00:00
Roy Marples
194b1fcb08 Fix compile on DragonFly.
Thanks to Hasso Tepper.
2009-03-18 21:16:33 +00:00
Roy Marples
a4f6339ebd We shouldn't need to flush arp entires ourself on BSD platforms. 2009-03-11 11:53:11 +00:00
Roy Marples
81174c4b96 Remove compile warnings on Sparc64 2009-02-26 11:12:23 +00:00
Roy Marples
eab2229cfa Enforce NetBSD KNF style more 2009-02-11 17:56:22 +00:00
Roy Marples
146d8134bd Fix compile on BSD. 2009-01-27 19:40:05 +00:00
Roy Marples
fa344ba2b1 Add route removal detection to Linux.
This involved a rejig of the socket code so we can detect
if we removed the route or not.
2009-01-27 18:09:02 +00:00
Roy Marples
16687a3be1 We need to ensure that manual route deletions are deleted from our internal routing table also. Partial fix for #159. 2009-01-26 22:32:42 +00:00
Roy Marples
fcdf05ed93 Adding subnet routes with just sdl_index set does not work for FreeBSD. 2009-01-02 09:31:42 +00:00
Roy Marples
63a4a61b1d Fix getting ssid. 2009-01-01 21:31:49 +00:00
Roy Marples
c53cf4ef4b You can now add a configure block per ssid if the interface is wireless. 2009-01-01 20:51:04 +00:00
Roy Marples
e346dd7ccc Try and make the subnet route identical to the kernel one. 2008-12-13 09:40:27 +00:00
Roy Marples
a4d0de41b3 Don't delete static ARP entries 2008-12-01 20:18:02 +00:00
Roy Marples
a6fc352dde Ensure host routes and subnet routes are added correctly. 2008-12-01 16:58:10 +00:00
Roy Marples
6abfc8ec05 Style 2008-11-25 11:39:09 +00:00
Roy Marples
3ad4d331af Fix some LINT errors. 2008-11-10 11:15:27 +00:00
Roy Marples
eae4f5b472 Get INFORM support almost working again. 2008-10-18 16:41:19 +00:00
Roy Marples
a6fa5cfde8 Fix warning on sparc64 2008-10-17 07:22:39 +00:00
Roy Marples
674616cd83 Cast to void * to avoid compiler warnings on Sparc64. Also, save a needless malloc. 2008-10-15 13:00:33 +00:00
Roy Marples
dacb4c85c2 Compile on Sparc64/FreeBSD-6.2 2008-10-15 09:08:22 +00:00