Page MenuHomeFreeBSD

netinet: do route lookup when asked to join multicast group on ifindex 0
Needs ReviewPublic

Authored by glebius on Sun, Oct 5, 9:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 12:58 PM
Unknown Object (File)
Fri, Oct 10, 12:58 PM
Unknown Object (File)
Fri, Oct 10, 6:05 AM
Unknown Object (File)
Tue, Oct 7, 4:22 PM
Unknown Object (File)
Mon, Oct 6, 10:41 AM
Unknown Object (File)
Mon, Oct 6, 8:55 AM
Unknown Object (File)
Mon, Oct 6, 8:03 AM
Unknown Object (File)
Mon, Oct 6, 6:33 AM

Details

Reviewers
None
Group Reviewers
network
Summary

The code to do the route lookup was already there, but was used only for
the legacy IP_ADD_MEMBERSHIP when called without index. Do same lookup
for IP_ADD_MEMBERSHIP with index and what is more important for
MCAST_JOIN_GROUP, if the supplied index is 0. This is a neat feature and
Linux does that, so this should make a few applications easier portable to
FreeBSD.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67569
Build 64452: arc lint + arc unit