Blame SOURCES/bz1400172-IPsrcaddr-fix-duplicate-routes.patch

15862b
From f35491fd18693d2816ad6f83c32e133b26193aa2 Mon Sep 17 00:00:00 2001
15862b
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
15862b
Date: Wed, 21 Dec 2016 15:34:50 +0100
15862b
Subject: [PATCH] IPsrcaddr: match exact route to avoid failing
15862b
15862b
---
15862b
 heartbeat/IPsrcaddr | 2 +-
15862b
 1 file changed, 1 insertion(+), 1 deletion(-)
15862b
15862b
diff --git a/heartbeat/IPsrcaddr b/heartbeat/IPsrcaddr
15862b
index 08fd8a6..0efe154 100755
15862b
--- a/heartbeat/IPsrcaddr
15862b
+++ b/heartbeat/IPsrcaddr
15862b
@@ -469,7 +469,7 @@ rc=$?
15862b
 }
15862b
 
15862b
 INTERFACE=`echo $findif_out | awk '{print $1}'`
15862b
-NETWORK=`ip route list dev $INTERFACE scope link match $ipaddress|grep -o '^[^ ]*'`
15862b
+NETWORK=`ip route list dev $INTERFACE scope link proto kernel match $ipaddress|grep -o '^[^ ]*'`
15862b
 
15862b
 case $1 in
15862b
 	start)		srca_start $ipaddress