diff options
author | Leone Fernando <[email protected]> | 2023-12-13 17:19:35 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-12-15 10:27:11 +0000 |
commit | bb7403655b3c3eb245d0ee330047cd3e20b3c4af (patch) | |
tree | 75a84c392ae6eeaacc23b6248ac73a5f03747684 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 02fed6d92badf08e2ac2cd1755d14c45c8f3d0ca (diff) |
ipmr: support IP_PKTINFO on cache report IGMP msg
In order to support IP_PKTINFO on those packets, we need to call
ipv4_pktinfo_prepare.
When sending mrouted/pimd daemons a cache report IGMP msg, it is
unnecessary to set dst on the newly created skb.
It used to be necessary on older versions until
commit d826eb14ecef ("ipv4: PKTINFO doesnt need dst reference") which
changed the way IP_PKTINFO struct is been retrieved.
Changes from v1:
1. Undo changes in ipv4_pktinfo_prepare function. use it directly
and copy the control block.
Fixes: d826eb14ecef ("ipv4: PKTINFO doesnt need dst reference")
Signed-off-by: Leone Fernando <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions