Page MenuHomeFreeBSD

multicast(4): Fix disabling multicast forwarding
ClosedPublic

Authored by pouria on Thu, Feb 12, 11:10 PM.
Tags
None
Referenced Files
F146188663: D55266.id171891.diff
Sat, Feb 28, 2:23 PM
Unknown Object (File)
Mon, Feb 23, 9:53 PM
Unknown Object (File)
Mon, Feb 23, 9:53 PM
Unknown Object (File)
Mon, Feb 23, 10:59 AM
Unknown Object (File)
Mon, Feb 23, 7:25 AM
Unknown Object (File)
Sun, Feb 22, 6:19 PM
Unknown Object (File)
Sun, Feb 22, 2:42 AM
Unknown Object (File)
Fri, Feb 20, 8:59 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 Not Applicable
Unit
Tests Not Applicable

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.