|
Re: RE: Multicast filtering question
|
11/23/2009 1:17 PM
post42406
|
Re: RE: Multicast filtering question
> I believe this is the way it is meant to work. I've never worked with
> multicast on Neutrino but did many years ago on Windows and this was
> certainly the behavior there. Joining a multicast group only affects
> whether or not the host receives datagrams sent to the particular
> address, irrespective of port, and once received datagrams are sent to
> all sockets bound to the destination port of the datagram irrespective
> of address. I haven't looked up the relevant RFCs though a quick Google
> showed that this also appears to be Sun's behavior so I imagine it's
> universal.
Joining a multicast group will affect whether network card will accept that packet.
addr:port will affect whether udp layer accepts it.
take a look at udp_input you will find out in 10 minutes why? if it is not nullhost then it will match the dst addr but
in your case you are using nullhost so all processes monitering that dport will get a copy.
|
|
|