git: carp: Fix routes reset issue
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Thu May 30 00:28:26 PDT 2013
commit 2c1793932940230c08a7de65090d8a49ede91459
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Wed May 29 20:41:40 2013 +0800
carp: Fix routes reset issue
Before this commit, routes related to carp or carp backing device were
reset, i.e. only prefix route was left, when carp state changed, e.g.
carp is down.
This commit fixes this routes reset issue by replacing the carp or carp
device routes' rt_ifa and rt_ifp with proper ifaddr and ifnet, instead
of discarding the old routes and installing the new prefix route.
Reported-by: robgar
Summary of changes:
sys/net/route.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++
sys/net/route.h | 1 +
sys/netinet/in.c | 10 ++++++
sys/netinet/in_rmx.c | 16 ++++++++-
sys/netinet/in_var.h | 1 +
sys/netinet/ip_carp.c | 26 ++++----------
6 files changed, 130 insertions(+), 20 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2c1793932940230c08a7de65090d8a49ede91459
--
DragonFly BSD source repository
More information about the Commits
mailing list