Roy Marples
c73d67fcf3
Remove FreeBSD memory debug as I submitted a fix for their libc: PR bin/166483.
2012-03-29 09:11:48 +00:00
roy@uberlaptop.marples.name
dcc1e564e7
Fix some valgrind errors on FreeBSD
2012-03-27 16:30:33 +00:00
roy@uberlaptop.marples.name
ba0bc18bcb
FreeBSD 7 does not support IFT_INFINIBAND
2012-03-21 19:11:07 +00:00
Roy Marples
8cf1f9a8ca
Support bridge and VLAN interfaces on BSD.
...
Fall back to ethernet if unknown and specified.
2012-03-20 09:19:01 +00:00
Roy Marples
46caaa5ee4
Store the RA data for the interface so we can do a comparison.
...
Only log the fact we received an RA if the new RA is different or any
part of the old one has expired.
2012-02-13 08:37:54 +00:00
Roy Marples
37eea8615a
When the dhcp server is running in dom0 and the client in domU,
...
packets (that are not explicitely checksumed in the userspace)
sent to the another domain have partial UDP checksums (offload)
only, but are marked as such. This patch reads and checks the
mark to decide whether to verify the UDP checksum or not.
Based on the ISC dhcp patch by David Cantrell.
Thanks to Marius Tomaschewski.
2011-03-24 17:59:20 +00:00
Roy Marples
6b5542f174
Fix working out the inform address if none given.
2010-11-11 21:07:50 +00:00
Roy Marples
462822d281
Use the active link layer address if supported.
2010-08-04 06:44:56 +00:00
Roy Marples
7b6f803e29
These files were updated in 2010, so fix copyrights.
2010-06-04 08:33:16 +00:00
Roy Marples
58c910e8b7
Randomize ip_id and remove IPTOS_LOWDELAY and IP_DF flags.
...
This makes us a better net citizen.
2010-03-12 20:33:15 +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
cbd2877694
Don't warn about unsupported family for infiniband.
...
Thanks to Aurelien.
2010-01-13 23:54:45 +00:00
Roy Marples
305352558c
Style
2009-12-14 14:46:54 +00:00
Roy Marples
68510bef05
If we have to bring an interface up, and we don't have any carriers
...
then we need to wait for a second to allow an interface to settle.
2009-11-20 15:14:27 +00:00
Roy Marples
9579be23a9
Only work with ethernet by default so firewire does not slow down the boot.
2009-10-15 07:32:49 +00:00
Roy Marples
8ab2df96b1
Just have one open socket for AF_NET.
2009-10-15 00:30:54 +00:00
Roy Marples
355889a91c
Remove the -w option and make it the default action if at least one
...
interface reports a carrier.
2009-10-14 15:16:07 +00:00
Roy Marples
6b8f0f11ba
We should not affect other interfaces when handling new interface
...
notifications.
2009-09-01 07:45:11 +00:00
Roy Marples
7201382072
Whitespace.
2009-08-12 08:38:41 +00:00
Roy Marples
bcaed78bc5
Don't check family on point to point interfaces as we monitor them.
2009-08-05 21:39:42 +00:00
Roy Marples
4e58d06054
Some drivers report ENODEV when bring the interface up if their kill switch is on.
...
This stops dhcpcd from using the interface, so we now just blunder on and await
a carrier up event.
IMO, ENODEV is the wrong error code as the device IS present, it's just disabled.
But the patch here still makes sense.
2009-08-05 21:16:09 +00:00
Roy Marples
a452d68a4a
Only allow hardware families we know we can work with by default.
...
If an interface with a different hardware family is requested by the user then
emit a warning.
2009-08-05 21:08:44 +00:00
Roy Marples
6411bb4624
Fix detecting the dstaddr at startup.
2009-07-03 09:52:37 +00:00
Roy Marples
9e160bfa43
ifas without an ifa_addr seem to indicate a link without a hwaddr, so
...
treat them as such. This allows static and 3rdparty configuration.
2009-05-11 07:16:24 +00:00
Roy Marples
7cbab2cf9b
I stand corrected - ifa_addr can be NULL from getifaddrs(3)
2009-05-10 23:31:55 +00:00
Roy Marples
53814ee2e8
Some glibc versions have a NULL ifa_addr for the ifa from getifaddrs(3).
2009-05-10 20:20:18 +00:00
Roy Marples
601fb3d500
Add (c) to Copyright
2009-05-01 13:57:45 +00:00
Roy Marples
3949692e4d
Fix existing address detection.
2009-04-27 14:00:39 +00:00
Roy Marples
86c4061c5c
Only allow lo0 through allow
2009-04-20 19:40:09 +00:00
Roy Marples
53a7a8d017
No need for this.
2009-04-20 13:47:27 +00:00
Roy Marples
0b07851c19
Release dhcpcd-4.99.17
2009-04-19 18:23:47 +00:00
Roy Marples
623330decc
NetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A patch has been submitted, hopefully included in NetBSD-5.0
2009-04-17 19:15:42 +00:00
Roy Marples
47681a7058
Fix compile on FreeBSD.
2009-04-17 13:42:44 +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
d7d07e5ae7
Allow dhcpcd to run on loopback interfaces if specified.
2009-03-20 15:26:46 +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
ce6b39df64
We need to blacklist IP addresses at the packet level
...
so we can ignore NAKs from rogue servers who don't
supply a ServerID, or supply a fake one.
2009-03-10 17:28:18 +00:00
Roy Marples
ec080c73f8
0 is not a valid CIDR
2009-03-05 16:31:44 +00:00
Roy Marples
e103c79fca
Validate UDP better by ensuring data len is not bigger than our struct
...
and that the claimed length by the header is not greater than our length.
Thanks to Michael Olney.
2009-02-28 08:59:48 +00:00
Roy Marples
eab2229cfa
Enforce NetBSD KNF style more
2009-02-11 17:56:22 +00:00
Roy Marples
bf91047e8f
Report the fact we're wireless and our ssid
2009-01-22 22:52:41 +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
0b10229bc6
Zeroing each field is cheaper than using memset/memcpy.
2008-11-19 15:01:20 +00:00
Roy Marples
5f1643f584
Fix working with linux aliased interfaces again.
2008-11-17 22:50:37 +00:00
Roy Marples
3ad4d331af
Fix some LINT errors.
2008-11-10 11:15:27 +00:00
Roy Marples
791c6214a9
Cast to void * to remove compiler warnings on Sparc64. This should still be aligned correctly as this is how the kernel makes it.
2008-10-19 05:39:28 +00:00
Roy Marples
34bf905984
Fix obtaining netmask on NetBSD.
2008-10-18 23:44:00 +00:00
Roy Marples
159d2fcf49
Fix up address and netmask detection. This *should* align fine.
2008-10-18 23:28:49 +00:00
Roy Marples
eae4f5b472
Get INFORM support almost working again.
2008-10-18 16:41:19 +00:00