git: DragonFly_RELEASE_3_4 carp: Fix routes reset issue

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Jun 6 18:38:47 PDT 2013


commit cdf58d343d1bbfe1adc256bc82b4909e71eabd02
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/cdf58d343d1bbfe1adc256bc82b4909e71eabd02


-- 
DragonFly BSD source repository



More information about the Commits mailing list