Detecting which networking interface received a UDP multicast packet.

From: MC (anonymous_at_discussions.microsoft.com)
Date: 04/28/04

  • Next message: Greg Kapoustin [MSFT]: "Re: LSP for RPC on XP"
    Date: Tue, 27 Apr 2004 17:16:05 -0700
    
    

    Hi,

    I need to detect which networking interface a UDP multicast packet is being heard over on Win2000 and WinXP.

    So, for example, you have 2 wireless network cards and also a wired interface. We are listening for UDP multicast packets being sent over all of these and need to determine which of these interfaces on which the packet arrived.

    I am trying to use WSARecvMsg() to retrieve the interface on which the packet was received. However, WSARecvMsg() returns SOCKET_ERROR and WSAGetLastError() returns WSAEOPNOTSUPP.

    Can someone explain to me how to setup WSARecvMsg() correctly?

    Thanks,
    MC


  • Next message: Greg Kapoustin [MSFT]: "Re: LSP for RPC on XP"

    Relevant Pages

    • Re: Detecting which networking interface received a UDP multicast packet.
      ... > I need to detect which networking interface a UDP multicast packet is ... > I am trying to use WSARecvMsg() to retrieve the interface on which the ...
      (microsoft.public.win32.programmer.networks)
    • Re: IP configuration on my firewall
      ... networking interface on 192.168.1.x and the GREEN networking interface ... When I try to join the GREEN interface from a client, I can "ping" the ...
      (comp.os.linux.networking)
    • IP configuration on my firewall
      ... networking interface on 192.168.1.x and the GREEN networking interface ... When I try to join the GREEN interface from a client, I can "ping" the ...
      (comp.os.linux.networking)
    • Re: listening on network interface instead on ip addr.
      ... >> specific networking interface instead of ip addresses? ... you will see that ListenAdress only allows you to ... not an interface as the poster is asking. ... and use a packet filter to limit access to the appropriate interface. ...
      (comp.security.ssh)