File 0007-teamd-update-hwaddr-when-changing-team-s-macaddr.patch of Package libteam

From 4f75356a09198d84e37bef98ab094ec9826b23a9 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl@redhat.com>
Date: Fri, 21 Feb 2014 03:16:19 -0300
Subject: [patch libteam 2/3] teamd: update hwaddr when changing team's macaddr

This patch updates hwaddr which is used by LACP runner
to set all ports macaddr.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 teamd/teamd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/teamd/teamd.c b/teamd/teamd.c
index da11f5f..d1e335b 100644
--- a/teamd/teamd.c
+++ b/teamd/teamd.c
@@ -875,7 +875,7 @@ static int teamd_add_ports(struct teamd_context *ctx)
 static int teamd_hwaddr_check_change(struct teamd_context *ctx,
 				     struct teamd_port *tdport)
 {
-	const char *hwaddr;
+	char *hwaddr;
 	unsigned char hwaddr_len;
 	int err;
 
@@ -893,6 +893,7 @@ static int teamd_hwaddr_check_change(struct teamd_context *ctx,
 		teamd_log_err("Failed to set team device hardware address.");
 		return err;
 	}
+	ctx->hwaddr = hwaddr;
 	return 0;
 }
 
-- 
1.8.5.3