summaryrefslogtreecommitdiffhomepage
path: root/src/dhcpv4.c
AgeCommit message (Collapse)Author
2014-08-23odhcpd: don't kill static lease entriesSteven Barth
2014-08-19dhcpv4: fix manual dhcp-rangesSteven Barth
2014-08-18dhcpv4: log reply in a more precise wayChristian Mehlis
2014-08-18dhcpv4: send NAK to broacast addressChristian Mehlis
2014-08-18dhcpv4: added more commentsChristian Mehlis
2014-08-12Merge pull request #22 from mehlis/log-dhcp4-eventssbyx
dhcpv4: log requests and replies to syslog
2014-08-12Merge pull request #21 from mehlis/fix-nak-by-doing-valid-replysbyx
dhcpv4: offer a valid configuration with DHCP NAK
2014-08-12dhcpv4: offer a valid configuration with DHCP NAKChristian Mehlis
On network change the client requests a non valid configuration. In this case we have to reply with a DHCP NAK. But this NAK can include a valid configuration like an ACK does. With this change iDevices and Androids can finish DHCP even with wrong configuration in first REQUEST with two packets and without any additional timeouts and round trips.
2014-08-12dhcpv4: implement router configuration optionChristian Mehlis
RFC 2132 defines: 3.5. Router Option The router option specifies a list of IP addresses for routers on the client's subnet. Routers SHOULD be listed in order of preference. The code for the router option is 3. The minimum length for the router option is 4 octets, and the length MUST always be a multiple of 4. Code Len Address 1 Address 2 +-----+-----+-----+-----+-----+-----+-----+-----+-- | 3 | n | a1 | a2 | a3 | a4 | a1 | a2 | ... +-----+-----+-----+-----+-----+-----+-----+-----+--
2014-08-12dhcpv4: log requests and replies to syslogChristian Mehlis
This change let odhcpd print dhcpv4 events to syslog.
2014-08-07sync hostfile more oftenSteven Barth
2014-07-01DHCPv6 destination address checkHans Dedecker
As described in RFC3315 §15 any solicit, confirm, rebind or information request message is discarded if the destination address is unicast Likewise any request (§18.2.1), renew (§18.2.3), release (§18.2.6) or decline (§18.2.7) message is discarded and the server replies with the status code use multicast.
2014-07-01DHCPv4: send DHCPNAK if requested addr != leased addrSteven Barth
2014-06-30Fixes compile error with muslSteven Barth
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-18Fix DHCPv4 static leases (thanks arnd)Steven Barth
2014-06-16add more consistency to host file writingSteven Barth
2014-06-16dhcpv4: update hostfile more oftenSteven Barth
2014-06-12dhcpv4: use search domain instead of domain optionSteven Barth
2014-06-10Fix DHCP settings for /28Steven Barth
2014-06-07Add default DHCPv4 range for prefixes down to /28Steven Barth
2014-05-30Make filtering customizableSteven Barth
2014-02-01Change homenet detection to User-ClassSteven Barth
2013-12-05Fix possible SEGFAULT conditionsHans Dedecker
2013-10-17ignore hnet internal routersSteven Barth
Signed-off-by: Markus Stenberg <markus.stenberg@iki.fi>
2013-10-16Minor fixesSteven Barth
2013-10-14Fix IP TOSSteven Barth
2013-10-14Various fixesSteven Barth
2013-10-14Initial commitSteven Barth