[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20080214152108.96f45614.varunc@linux.vnet.ibm.com>
Date: Thu, 14 Feb 2008 15:21:08 +0530
From: Varun Chandramohan <varunc@...ux.vnet.ibm.com>
To: shemminger@...ux-foundation.org
Cc: netdev@...r.kernel.org, yoshfuji@...ux-ipv6.org
Subject: [PATCH][IPROUTE2]Add missing prefix bit length for addrlabel
The prefix bit lenght value was not updated, resulting in incorrect addrlabel
entry. This patch fixes that issue.
Signed-off-by: Varun Chandramohan <varunc@...ux.vnet.ibm.com>
---
ip/ipaddrlabel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
index 1c873e9..a4cdece 100644
--- a/ip/ipaddrlabel.c
+++ b/ip/ipaddrlabel.c
@@ -173,6 +173,7 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
addattr32(&req.n, sizeof(req), IFAL_LABEL, label);
addattr_l(&req.n, sizeof(req), IFAL_ADDRESS, &prefix.data, prefix.bytelen);
+ req.ifal.ifal_prefixlen = prefix.bitlen;
if (req.ifal.ifal_family == AF_UNSPEC)
req.ifal.ifal_family = AF_INET6;
--
1.5.0.6
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists