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
Unknown Object (File)
Mon, Apr 20, 3:54 AM
Unknown Object (File)
Sun, Apr 19, 7:25 PM
Unknown Object (File)
Tue, Apr 14, 1:15 PM
Unknown Object (File)
Sat, Apr 11, 8:07 AM
Unknown Object (File)
Fri, Apr 10, 11:56 AM
Unknown Object (File)
Tue, Apr 7, 9:10 AM
Unknown Object (File)
Sun, Apr 5, 6:43 PM
Unknown Object (File)
Sun, Apr 5, 6:40 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