openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
162 stars 98 forks source link

router: skip parse_routes when ra_default > 1 #88

Closed stintel closed 7 years ago

stintel commented 8 years ago

It does not make sense to scan the entire routing table if the decision will be overridden afterwards.

This makes it possible to use odhcpd on a router with full BGP table, by setting ra_default to 2. Without this change, odhcpd is constantly busy reading /proc/net/ipv6_route and doesn't respond to router sollications in time.

stintel commented 7 years ago

https://git.lede-project.org/?p=project/odhcpd.git;a=commit;h=93ab25b2160ac8a2da6d5dc6ead003e9b8abf9c7