Page MenuHomeFreeBSD

raw ip: fix regression with multicast and RSVP
ClosedPublic

Authored by glebius on Sep 2 2022, 5:33 PM.
Tags
None
Referenced Files
F86870809: D36429.id.diff
Wed, Jun 26, 7:46 PM
Unknown Object (File)
Tue, Jun 25, 8:22 AM
Unknown Object (File)
Sun, Jun 16, 1:58 AM
Unknown Object (File)
Sat, Jun 15, 4:53 AM
Unknown Object (File)
Sat, Jun 15, 4:45 AM
Unknown Object (File)
May 25 2024, 10:40 AM
Unknown Object (File)
May 24 2024, 10:09 AM
Unknown Object (File)
May 5 2024, 2:01 AM
Subscribers

Details

Summary

With 61f7427f02a raw sockets protosw has wildcard pr_protocol. Protocol
of a specific pcb is stored in inp_ip_p.

Reported by: karels
Fixes: 61f7427f02a307d28af674a12c45dd546e3898e4

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good as far as it goes. I think ip6_mroute and probably others have similar problems. rsvp does.

glebius retitled this revision from mroute: fix regression with MRT_INIT to raw ip: fix regression with multicast and RSVP.Sep 2 2022, 6:23 PM

See also a couple of uses of pr_protocol in ip6_output.c (ICMPv6).

Ok, I think I found them all. Sorry for breakage :(

Everything that the regression test suite catches was included
in the 61f7427f02a307d28af674a12c45dd546e3898e4.

LGTM; I think this covers everything that my survey of pr_protocol use found.

This revision is now accepted and ready to land.Sep 2 2022, 7:09 PM