summaryrefslogtreecommitdiffstats
path: root/net.c
Commit message (Collapse)AuthorAge
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Fix existing address detection.Roy Marples2009-04-27
|
* Only allow lo0 through allowRoy Marples2009-04-20
|
* No need for this.Roy Marples2009-04-20
|
* Release dhcpcd-4.99.17Roy Marples2009-04-19
|
* NetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A ↵Roy Marples2009-04-17
| | | | patch has been submitted, hopefully included in NetBSD-5.0
* Fix compile on FreeBSD.Roy Marples2009-04-17
|
* Fix compile on NetBSDRoy Marples2009-04-17
|
* 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.
* Allow dhcpcd to run on loopback interfaces if specified.Roy Marples2009-03-20
|
* We can now detected primary addresses added or changed in BSD.Roy Marples2009-03-19
| | | | | | | | 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.
* 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.
* 0 is not a valid CIDRRoy Marples2009-03-05
|
* Validate UDP better by ensuring data len is not bigger than our structRoy Marples2009-02-28
| | | | | | and that the claimed length by the header is not greater than our length. Thanks to Michael Olney.
* Enforce NetBSD KNF style moreRoy Marples2009-02-11
|
* Report the fact we're wireless and our ssidRoy Marples2009-01-22
|
* You can now add a configure block per ssid if the interface is wireless.Roy Marples2009-01-01
|
* Zeroing each field is cheaper than using memset/memcpy.Roy Marples2008-11-19
|
* Fix working with linux aliased interfaces again.Roy Marples2008-11-17
|
* Fix some LINT errors.Roy Marples2008-11-10
|
* Cast to void * to remove compiler warnings on Sparc64. This should still be ↵Roy Marples2008-10-19
| | | | aligned correctly as this is how the kernel makes it.
* Fix obtaining netmask on NetBSD.Roy Marples2008-10-18
|
* Fix up address and netmask detection. This *should* align fine.Roy Marples2008-10-18
|
* Get INFORM support almost working again.Roy Marples2008-10-18
|
* Move wireless detection from net.c into if-bsd.c and if-linux.cRoy Marples2008-09-17
|
* Move AF_LINK discovery to if-bsd.c. Also, we only work with IFT_ETHER types ↵Roy Marples2008-09-16
| | | | currently, so skip others.
* Don't overflow the buffer.Roy Marples2008-09-15
|
* We may change size of hwaddr_buffer, so just use sizeof.Roy Marples2008-09-14
|
* Add allowinterfaces and denyinterfaces options to dhcpcd.conf for better ↵Roy Marples2008-09-11
| | | | multiple interface support.
* Sort interfaces according to preference and pass this to dhcpcd-run-hooks so ↵Roy Marples2008-09-09
| | | | we can prefer configs.
* Remove logger and exclusively uses syslog instead. This saves almost 2K on ↵Roy Marples2008-09-05
| | | | NetBSD/amd64 from before changing strerror to %m.
* Don't spam on startup about unsupported interfaces if quiet.Roy Marples2008-09-05
|
* 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.
* Work around broken linux headers when including wireless.hRoy Marples2008-09-03
|
* Don't need this.Roy Marples2008-09-02
|
* Fix compile and wireless test on FreeBSD.Roy Marples2008-09-02
|
* Add wireless detection to NetBSD (tested) and FreeBSD (untested).Roy Marples2008-09-02
|
* strncpy -> strlcpy.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.
* StyleRoy Marples2008-08-26
|
* Style.Roy Marples2008-08-22
|
* If a device is not found, report it.Roy Marples2008-08-14
|
* Don't cast needlessly.Roy Marples2008-08-13
|
* Fix an buffer overflow leading to random bytes in the hardware address.Roy Marples2008-08-13
|
* Prefer signal to poll so we avoid any possibilty of a timeval -> int/msecs ↵Roy Marples2008-07-31
| | | | overflow. We could of course loop msecs / INT_MAX times, but it then gets messy. It also saves around 200 bytes of binary size :)
* We should bind to the interface if we can - for the case where we renew and ↵Roy Marples2008-07-30
| | | | there are two interfaces on the same subnet and the default subnet route goes via the wrong interface.
* Remove #ifdefs to disable specific bits of code. We now build everything - ↵Roy Marples2008-07-23
| | | | we're small enough :)
* Style.Roy Marples2008-07-19
|
* 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.
* fd -> raw_fdRoy Marples2008-07-16
|