[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 03 Oct 2013 21:49:00 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Masatake YAMATO <yamato@...hat.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] veth: Showing peer of veth type dev in ip link (kernel
side)
On Fri, 2013-10-04 at 13:05 +0900, Masatake YAMATO wrote:
> ip link has ability to show extra information of net work device if
> kernel provides sunh information. With this patch veth driver can
> provide its peer ifindex information to ip command via netlink
> interface.
> +
> + peer_ifindex = peer ? peer->ifindex : 0;
> + if (nla_put_u64(skb, VETH_INFO_PEER, peer_ifindex))
> + return -EMSGSIZE;
> +
ifindex are int, so you should use nla_put_u32()
--
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