Commit 193c1e478cc496844fcbef402a10976c95a634ff

Authored by Nicolas Dichtel
Committed by David S. Miller
1 parent 4e66ae2ea3

ip6mr: fix rtm_family of rtnl msg

We talk about IPv6, hence the family is RTNL_FAMILY_IP6MR!
rtnl_register() is already called with RTNL_FAMILY_IP6MR.

The bug is here since the beginning of this function (commit 5b285cac3570).

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -2251,7 +2251,7 @@
2251 2251 return -EMSGSIZE;
2252 2252  
2253 2253 rtm = nlmsg_data(nlh);
2254   - rtm->rtm_family = RTNL_FAMILY_IPMR;
  2254 + rtm->rtm_family = RTNL_FAMILY_IP6MR;
2255 2255 rtm->rtm_dst_len = 128;
2256 2256 rtm->rtm_src_len = 128;
2257 2257 rtm->rtm_tos = 0;