summaryrefslogtreecommitdiffstats
path: root/arp.c
Commit message (Collapse)AuthorAge
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Fix crash at end of arping listRoy Marples2009-04-15
|
* Add the ability to arping an address and select a profile based on theRoy Marples2009-03-31
| | | | | hardware address replied with or the ip address.
* We need to blacklist IP addresses at the packet levelRoy Marples2009-03-10
| | | | so we can ignore NAKs from rogue servers who don't supply a ServerID, or supply a fake one.
* If we reboot an IPv4LL address, start DHCP negotiation right away.Roy Marples2009-03-03
|
* Remove debug.Roy Marples2009-02-24
|
* Enforce NetBSD KNF style moreRoy Marples2009-02-11
|
* RFC2131 implies that we should only ARP check after an offer.Roy Marples2009-02-01
|
* Add the DHS_PROBE state so that we ignore subsequent offersRoy Marples2008-12-18
| | | | | whilst probing.
* We are now a BOOTP client also :)Roy Marples2008-11-19
|
* If we are asked to ARP and we don't have an offer then we are testing our ↵Roy Marples2008-11-19
| | | | current address.
* When declining a DHCP lease and we have an IPv4LL one, don't re announce our ↵Roy Marples2008-11-14
| | | | IPv4LL lease.
* We should erase the lease file when we get an ARP conflict on rebinding from it.Roy Marples2008-10-21
|
* Don't decline leases that we loaded from disk.Roy Marples2008-09-15
|
* Fix memory errors.Roy Marples2008-09-09
|
* Remove logger and exclusively uses syslog instead. This saves almost 2K on ↵Roy Marples2008-09-05
| | | | NetBSD/amd64 from before changing strerror to %m.
* As our logger calls emulate syslog, we can use %m. However, this means we ↵Roy Marples2008-09-05
| | | | have to convert it for printf as POSIX does not require that printf supports it. This also means we drop -pedantic from our GCC flags.
* Use static buffers for ARP and move the send code to arp.c. Also, move the ↵Roy Marples2008-09-04
| | | | hwaddr buffer to the top of the file for clarity.
* Add a control socket so that interfaces can be dynamically re-set.Roy Marples2008-09-03
| | | | | | This requires the event loop argument being changed to void * so we can send arguments other than an interface.
* 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.
* 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.
* read(2) works on ssize_t so we should use this rather than size_t for our ↵Roy Marples2008-03-31
| | | | buffers. A DHCP or ARP packet still easily fits into this.
* 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
|
* Change code style to match the BSDs in the hope the might adpot it instead ↵Roy Marples2008-03-20
| | | | of dhclient.
* Replace select with poll and nanosleep.Roy Marples2008-02-10
|
* Update comment style.Roy Marples2008-01-29
|
* Use sizeof with the variable, not the declaration more.Roy Marples2008-01-28
|
* Introduce xzalloc, which zeros memory as well as allocates it. This makes us ↵Roy Marples2008-01-28
| | | | smaller.
* Linux has LPF, which is almost like BPF. Let's use and let the kernel filter ↵Roy Marples2008-01-27
| | | | out what we don't need.
* Quiet some lint warnings.Roy Marples2008-01-21
|
* Prefer for (;;) over while (1)Roy Marples2008-01-21
|
* Formatting.Roy Marples2008-01-17
|
* We should use caddr_t instead of our own types for arp hardware addresses.Roy Marples2008-01-17
|
* Re format for standard tabs.Roy Marples2008-01-16
|
* Disallow arp claim for IEEE1394 per RFC 2734 thanks to pawka.Roy Marples2008-01-09
|
* Belatedly into 2008 :)Roy Marples2008-01-08
|
* Re-license as 2-clause BSD as I've re-written everything from the old ↵Roy Marples2007-11-15
| | | | dhcpcd-2 code base now.
* Don't spam the log as much when constantly using IPV4LL addresses.Roy Marples2007-11-09
|
* Move signals.c,h to signal.c,hRoy Marples2007-11-08
|
* timeval defines seconds as long, so we should use long over time_tRoy Marples2007-11-07
|
* Reword the headers to just say we use the GPLv2.Roy Marples2007-11-07
|
* Clear the signal_pipe fd from the fdset when all signals haveRoy Marples2007-11-07
| | | | | been read.
* Update my e-mail address as I have retired from Gentoo.Roy Marples2007-11-06
|
* Handle signals correctly.Roy Marples2007-10-11
|
* Skip over bogus EINTR error on select when arp checking for a different ↵Roy Marples2007-10-11
| | | | address from what we already have. This should not happen, so a better fix is probably needed.
* Suck it hard and use gettimeofday for Linux. Lets just hope that the clock ↵Roy Marples2007-08-21
| | | | works under Linux during ARP floods.
* Rework the arp code again so that we don't link to librt on Linux.Roy Marples2007-08-20
|
* Ensure ARP checking times out when there is a flood.Roy Marples2007-08-09
|
* Fix arp segfaulting and final 3.1.1Roy Marples2007-07-26
|