Page MenuHomeFreeBSD

multicast(4): Fix disabling multicast forwarding
ClosedPublic

Authored by pouria on Thu, Feb 12, 11:10 PM.
Tags
None
Referenced Files
F145008449: D55266.id171885.diff
Sun, Feb 15, 12:11 AM
F144973377: D55266.id171891.diff
Sat, Feb 14, 3:40 PM
F144972936: D55266.id171885.diff
Sat, Feb 14, 3:35 PM
F144971579: D55266.id171891.diff
Sat, Feb 14, 3:17 PM
Unknown Object (File)
Sat, Feb 14, 6:03 AM
Unknown Object (File)
Fri, Feb 13, 2:44 PM
Unknown Object (File)
Fri, Feb 13, 10:42 AM
Unknown Object (File)
Fri, Feb 13, 10:01 AM
Subscribers

Details

Summary

multicast(4) mistakenly stated that multicast
forwarding can be disabled with MRT_INIT by setting
its value to 0.
Fix by adding MRT_DONE and MRT6_DONE.

Test Plan

mandoc -Tlint

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70667
Build 67550: arc lint + arc unit

Event Timeline

Thanks!

share/man/man4/multicast.4
149

I'd suggest a slightly different wording: When applied to the multicast routing socket, the .Dv MRT_DONE and .Dv MRT6_DONE socket options disable multicast forwarding in the kernel:

158

Closing the socket has the same effect, we could mention that here too.

Agree with markj. Nit: commit message should be "multicast.4: Fix disabling multicast forwarding". "multicast(4)" could refer to changing the logic of the driver, but "multicast.4" clearly refers only to the manual page.

Been spring-cleaning my cluster home directory, as I only regained access for the first time in nearly 10 years this morning UK time. This commit probably has some relevant history lessons.

@markj done. I reused your wording for closing the socket, does that work?
@ziaee done.
Thank you

This revision is now accepted and ready to land.Fri, Feb 13, 8:27 PM

@bms This is very good info, thank you.