summaryrefslogtreecommitdiff
path: root/sbin/dhclient/kroute.c
AgeCommit message (Expand)Author
2015-12-19Don't exit if a route can't be added. Just log particulars andKenneth R Westerback
2015-12-19Delete superfluous "close(s);return" just before "close(s);<functionKenneth R Westerback
2015-12-18Check ioctl() result with == -1, not < 0. Break long line.Kenneth R Westerback
2015-02-10Groundwork for better route support over multiple interfaces byKenneth R Westerback
2015-02-08Get rid of a bunch of memset()'s where struct variables and arraysKenneth R Westerback
2015-02-07Add support for interface-mtu (option 26).Kenneth R Westerback
2015-02-07GC unused parameters now that ifname and rdomain are not used inKenneth R Westerback
2015-02-06matthew@ points out that it's a bad idea to rely on the non-privileged,Kenneth R Westerback
2015-01-31Always free(buf) if errmsg is set while trying to flush routes.Kenneth R Westerback
2015-01-30Tweak error message to say 'realloc' since that's what's failing,Kenneth R Westerback
2014-10-27Zap extraneous whitespace and a stuttered extra 'break;'.Kenneth R Westerback
2014-07-14Make sure to correctly exit the loop in priv_flush_routes() in case ofMiod Vallat
2014-07-09Print sizeof() value and size_t variable with %zu rather than %zd.Kenneth R Westerback
2014-05-05Zap trailing whitespace. Started by pointed comments from andre@.Kenneth R Westerback
2014-02-13Hard looping on EAGAIN is bad. Just fall out to outer event loopKenneth R Westerback
2014-02-09Don't use imsg_flush(), roll a local flush_unpriv_ibuf() that loopsKenneth R Westerback
2014-02-09Nuke a couple of extraneous blank lines.Kenneth R Westerback
2014-02-09Use correct function name in error message. 'cleanup' was renamedKenneth R Westerback
2014-01-20%d cleanups, to other formats; ok krwTheo de Raadt
2013-12-08Reduce in_addr memcpy() dances by simply using assignments where the sourceKenneth R Westerback
2013-12-05Use destination size as size of memcpy(). Use <in_addr> rather thanKenneth R Westerback
2013-12-04More memcpy() stylistic repairs and size checks.Kenneth R Westerback
2013-08-17Do not create a route to the bound address via 127.0.0.1. Our stackKenneth R Westerback
2013-07-05Zap trailing whitespace.Kenneth R Westerback
2013-06-09Make route adding interface more flexible by passing flags to beKenneth R Westerback
2013-06-09Fix/clarify some comments. do memset()'s only when variable is goingKenneth R Westerback
2013-06-09Re-apply static route and classless static route support -- this timeKenneth R Westerback
2013-06-09Re-apply route adding code refactoring -- it wasn't the problem thatKenneth R Westerback
2013-06-09Backout static/classless route handling and default route refactoringKenneth R Westerback
2013-06-04Add support for static routes option (33) and classless staticKenneth R Westerback
2013-06-01Refactor the default route adding code to use a general route addingKenneth R Westerback
2013-03-30Since deleting all the addresses on an interface removes all theKenneth R Westerback
2013-03-24Simplify logic when processing route dump by using a helper functionKenneth R Westerback
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
2013-03-13Make sure dhclient doesn't delete IPv6 routes.Paul de Weerd
2013-03-11When binding a lease, check for and clear out any 'zombie' routesKenneth R Westerback
2013-03-08Consolidate parsing of rtm address lists. Use RTAX_GATEWAY entryKenneth R Westerback
2013-03-07Refactor code around route label creation and checking to make it easierKenneth R Westerback
2013-02-28Try 10 times to obtain the routing table via sysctl(), and if itKenneth R Westerback
2013-02-24Don't log a complaint that a non-existant default route could not beKenneth R Westerback
2013-02-21Use imsg_flush() to force delivery of IMSG_DELETE_ADDRESS toKenneth R Westerback
2013-02-18Don't delete permanent arp cache entries when clearing the arpKenneth R Westerback
2013-02-18Rework log messages to be more useful. RenameKenneth R Westerback
2013-02-17Using the value SIGQUIT to cause the dispatch loops to exit producedKenneth R Westerback
2013-02-17Suppress some pointless debugging message:Kenneth R Westerback
2013-02-17Kill a magic number. 0 -> RTP_NONE for priority in constructing routingKenneth R Westerback
2013-02-17dhclient-script did 'route -q $rdomain add $new_ip_address 127.0.0.1'.Kenneth R Westerback
2013-02-15Don't leak routing socket fd if getting the default route fails.Kenneth R Westerback
2013-02-03Use RTM_GET rather than the sysctl/scan all routes dance to obtainKenneth R Westerback
2013-02-01Write out resolv.conf only if the default route is under the controlKenneth R Westerback