]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: Add high byte of VIF ID to igmpmsg
authorPaul Davey <paul.davey@alliedtelesis.co.nz>
Mon, 7 Sep 2020 22:04:07 +0000 (10:04 +1200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 19:25:51 +0000 (12:25 -0700)
commitaf52eb32d955885ee7cd5674ba7405e396ad572a
treee6dc103986d2225073173e28fefefedd8ee5d51c
parent0f8ab11b85846dc6727f05e99bd6e465980a9d1d
ipmr: Add high byte of VIF ID to igmpmsg

Use the unused3 byte in struct igmpmsg to hold the high 8 bits of the
VIF ID.

If using more than 255 IPv4 multicast interfaces it is necessary to have
access to a VIF ID for cache reports that is wider than 8 bits, the VIF
ID present in the igmpmsg reports sent to mroute_sk was only 8 bits wide
in the igmpmsg header.  Adding the high 8 bits of the 16 bit VIF ID in
the unused byte allows use of more than 255 IPv4 multicast interfaces.

Signed-off-by: Paul Davey <paul.davey@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/mroute.h
net/ipv4/ipmr.c