naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

Blame SOURCES/0096-change-of-rtnetlink-to-use-RTN_F_OFFLOAD.patch

4aca6e
From ecf397760bfe1a5f9742cafa75761e68678c38ee Mon Sep 17 00:00:00 2001
4aca6e
From: Phil Sutter <psutter@redhat.com>
4aca6e
Date: Tue, 28 Feb 2017 16:13:18 +0100
4aca6e
Subject: [PATCH] change of rtnetlink to use RTN_F_OFFLOAD
4aca6e
4aca6e
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1417289
4aca6e
Upstream Status: iproute2.git commit c52827e9077f7
4aca6e
4aca6e
commit c52827e9077f781f4d5f52f0c0aa67b59151e187
4aca6e
Author: Stephen Hemminger <shemming@brocade.com>
4aca6e
Date:   Wed May 27 18:29:02 2015 -0700
4aca6e
4aca6e
    change of rtnetlink to use RTN_F_OFFLOAD
4aca6e
4aca6e
    The definition of offload flag changed during 4.1 rc process.
4aca6e
---
4aca6e
 ip/iproute.c | 2 +-
4aca6e
 1 file changed, 1 insertion(+), 1 deletion(-)
4aca6e
4aca6e
diff --git a/ip/iproute.c b/ip/iproute.c
4aca6e
index 73c6db9..eb5d145 100644
4aca6e
--- a/ip/iproute.c
4aca6e
+++ b/ip/iproute.c
4aca6e
@@ -438,7 +438,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
4aca6e
 		fprintf(fp, "onlink ");
4aca6e
 	if (r->rtm_flags & RTNH_F_PERVASIVE)
4aca6e
 		fprintf(fp, "pervasive ");
4aca6e
-	if (r->rtm_flags & RTNH_F_EXTERNAL)
4aca6e
+	if (r->rtm_flags & RTNH_F_OFFLOAD)
4aca6e
 		fprintf(fp, "offload ");
4aca6e
 	if (r->rtm_flags & RTM_F_NOTIFY)
4aca6e
 		fprintf(fp, "notify ");
4aca6e
-- 
4aca6e
1.8.3.1
4aca6e