summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-10-30Fix IPv6 DNS server adddress selectionHans Dedecker
Fix selection of IPv6 DNS address in DHCPv6 and RA overwrite as an address could be selected with preferred lifetime zero while IPv6 addresses are in use with non zero preferred lifetimes. Fix tries to pick the IPv6 address with the longest preferred lifetime now. Fixes also the issue an IPv6 address with preferred lifetime zero could be returned in DHCPv6 DNS server option while an IPv6 address with non zero preferred lifetime is returned as DNS recursive RA option for the same set of available IPv6 addresses.
2014-10-18dhcpv6: fix calculation of T1 and T2Steven Barth
2014-10-17ndp: more fixesSteven Barth
2014-10-17ndp: fix proxying behaviorSteven Barth
2014-10-17ndp: fix proc-settingSteven Barth
2014-10-16dhcpv6: allow flash renumbering in hybrid management modeSteven Barth
2014-10-16Begin rewrite of NDP-relaySteven Barth
2014-10-16router: add support for router addressSteven Barth
2014-10-16router: unicast RAs to RS senders by defaultSteven Barth
2014-09-25config: remove spurious free() callSteven Barth
2014-08-23odhcpd: don't kill static lease entriesSteven Barth
2014-08-19dhcpv4: fix manual dhcp-rangesSteven Barth
2014-08-19Fix compilation errors in last commitSteven Barth
2014-08-19dhcpv6-ia: add loggingSteven Barth
2014-08-19Merge pull request #23 from mehlis/nak-to-broadcastsbyx
dhcpv4: send Nak to broadcast address
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-13PD: don't consider deprecated assigned prefixes when calculating avilable PD ↵Steven Barth
size
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-12Merge pull request #20 from mehlis/implement-dhcp4-router-configsbyx
dhcpv4: implement router configuration option
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-08Make failed to send a notice instead of a warningSteven Barth
2014-08-08Add host-entries for all IPv6 addressesSteven Barth
2014-08-07sync hostfile more oftenSteven Barth
2014-08-07ra: don't send MSR for /64 prefix if DP is /64 as wellSteven Barth
2014-07-23Don't loose routes in managed PDSteven Barth
2014-07-22Revert "rewrite of NDP proxy" for nowSteven Barth
2014-07-21Fix typo in ubus integrationSteven Barth
2014-07-17Fix compilationSteven Barth
2014-07-17Add missing NDP sync featuresSteven Barth
2014-07-16Initial rewrite of NDP proxySteven Barth
2014-07-14odhcpd: only enable packet socket if really neededSteven Barth
2014-07-02Merge pull request #18 from dedeckeh/bugfixessbyx
Improved compliance with RFC3315
2014-07-01Replace option sol_max_rt by inf_max_rt in reply response to information requestHans Dedecker
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-07-01Merge pull request #17 from mar-kolya/mastersbyx
leasefile: do not output expired dhcpv6 leases
2014-06-30leasefile: do not output expired dhcpv6 leasesNikolay Martynov
Sometimes ip that is assigned to a host changes, old ip is still kept aroung as 'expired'. This expired ip gets dumped into leasefile and is read by dnsmasq. The result is that hotsname is resolved into expired ip and that confuses clients. This patch prevents expired leases from being written into leasefile.
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-17use leaetime as base for T1 and T2 upper boundSteven Barth
2014-06-17backup for notonlinkSteven Barth
2014-06-17Make hostid more convenientSteven Barth
2014-06-17dhcpv6: send NotOnLink status on global levelSteven Barth
2014-06-16add more consistency to host file writingSteven Barth
2014-06-16dhcpv4: update hostfile more oftenSteven Barth