dotnet/runtime

MulticastInterface set to loopback index does not work on OSX

オープン

#24,340 opened on 2017/12/04

 (16 件のコメント) (0 件のリアクション) (0 人の担当者)C# (5,445 件のフォーク)batch import
area-System.Net.Socketsbughelp wantedos-mac-os-x

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

setsockopt with IP_MULTICAST_IF value should be a struct in_addr

See https://github.com/dotnet/corefx/blob/9a563e12649a5f407d57605dc07a82637a22ef48/src/Native/Unix/System.Native/pal_networking.c#L2172

This is call from https://github.com/dotnet/corefx/blob/8f8b04afb41156aba5530992e3ed062d8bfad611/src/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs#L1135

So far seems to me we are just passing an interface index as an integer when linux setsockopt expects and in_addr struct

[EDIT] Link the source code (don't reference master) by @karelz

コントリビューターガイド