summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2015-03-30dhcpv6: fix default assignment of non-64Steven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2015-03-30dhcpv6: prefer ula over other globalsSteven Barth
2015-03-30Readd missing ubus function definitionsSteven Barth
2015-03-29Fix hostname exportSteven Barth
2015-03-29Remove prefix coloring support, refine hybrid management modeSteven Barth
2015-03-29odhcpd: use proper struct msghdr initializers to fix build error on muslFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2015-02-23DHCPv4: Compile fix on 64bit Debian.Markus Stenberg
2015-02-19Merge pull request #29 from mehlis/rework-dhcpv4_assignSteven Barth
dhcpv4_assign: rework the assignment logic
2014-11-06DHCPv6: enable flash-renumbering hack only for /64 prefixesSteven Barth
2014-10-30Merge pull request #30 from dedeckeh/bugfixessbyx
Fix IPv6 DNS server adddress selection
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-22dhcpv4_assign: rework the assignment logicChristian Mehlis
2014-10-21dhcpv4_assign: try 100 times to find a IPChristian Mehlis
This is what the comment on the loop is saying. Also change the srand comment to match to the actual code.
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-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-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-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-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.