Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74a0bd7d authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

ip6mr: Do not use RTA_PUT() macros



Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92a395e5
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -2104,8 +2104,9 @@ static int __ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb,
	if (c->mf6c_parent >= MAXMIFS)
	if (c->mf6c_parent >= MAXMIFS)
		return -ENOENT;
		return -ENOENT;


	if (MIF_EXISTS(mrt, c->mf6c_parent))
	if (MIF_EXISTS(mrt, c->mf6c_parent) &&
		RTA_PUT(skb, RTA_IIF, 4, &mrt->vif6_table[c->mf6c_parent].dev->ifindex);
	    nla_put_u32(skb, RTA_IIF, mrt->vif6_table[c->mf6c_parent].dev->ifindex) < 0)
		return -EMSGSIZE;


	mp_head = (struct rtattr *)skb_put(skb, RTA_LENGTH(0));
	mp_head = (struct rtattr *)skb_put(skb, RTA_LENGTH(0));