[acassen/keepalived] 4a5b9b: Dynamic addition of interfaces from netlink msg

Alexandre Cassen <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <5665a12fc5c97_22383fd48f56d29c12984e@hookshot-fe2-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/acassen/keepalived
  Commit: 4a5b9b98202e57db5375287f8fd8e2ee24dafb42
      https://github.com/acassen/keepalived/commit/4a5b9b98202e57db5375287f8fd8e2ee24dafb42
  Author: Anthony Dempsey <[email protected]>
  Date:   2015-12-04 (Fri, 04 Dec 2015)

  Changed paths:
    M keepalived/include/vrrp_netlink.h
    M keepalived/vrrp/vrrp_netlink.c

  Log Message:
  -----------
  Dynamic addition of interfaces from netlink msg

When a tracked interface is deleted then recreated with the same config
VRRP groups tracking this interface will remain down. This is due to
tracking of stale information.

This patch listens for netlink messages for the creation of interfaces
and does one of two things.
i) If the interface doesn't exist in the vrrp interface list a new
interface structure is created and the information from the message is
used to fill the structure. This new interface is then added to the
interface queue.

ii) If the interface already exists in the queue we zero it and then
use the information in the message to fill the structure.

Signed-off-by: Anthony Dempsey <[email protected]>


  Commit: 663080599ce94fc3c84fa3cd3ff243cadcd549ae
      https://github.com/acassen/keepalived/commit/663080599ce94fc3c84fa3cd3ff243cadcd549ae
  Author: Anthony Dempsey <[email protected]>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M keepalived/check/ipwrapper.c

  Log Message:
  -----------
  Merge remote-tracking branch 'upstream/master'


  Commit: e5a8824007495c2e99b49713b18b9fb7fa8c2c3c
      https://github.com/acassen/keepalived/commit/e5a8824007495c2e99b49713b18b9fb7fa8c2c3c
  Author: Anthony Dempsey <[email protected]>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M keepalived/include/vrrp_netlink.h
    M keepalived/vrrp/vrrp_netlink.c

  Log Message:
  -----------
  Stop memory leak rename function for convention

Renamed netlink_populate_intf_struct to netlink_if_link_populate to fit
with file naming scheme.
It was possible that a created ifp structure would not be cleaned up if
netlink_if_link_populate returned a -1, fixed this so the structure is
FREEd.

Signed-off-by: Anthony Dempsey <[email protected]>


  Commit: ccca7f4c326275b4967e94b1a09ecc8f6c002962
      https://github.com/acassen/keepalived/commit/ccca7f4c326275b4967e94b1a09ecc8f6c002962
  Author: Alexandre Cassen <[email protected]>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M keepalived/include/vrrp_netlink.h
    M keepalived/vrrp/vrrp_netlink.c

  Log Message:
  -----------
  Merge pull request #201 from andempsey/master

Dynamic addition of interfaces from netlink msg


Compare: https://github.com/acassen/keepalived/compare/c06f0427b78a...ccca7f4c3262

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.