Commit 3490740b authored by Varun Chandramohan's avatar Varun Chandramohan Committed by Stephen Hemminger

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: default avatarVarun Chandramohan <varunc@linux.vnet.ibm.com>
Signed-off-by: default avatarStephen Hemminger <stephen.hemminger@vyatta.com>
parent 4759758c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment