NDISWANIP connections identification

Home Forums Discussions Support NDISWANIP connections identification

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5371
    Eldred
    Participant

      Hello,

      I’m using the NDIS filter driver for a long time now and it works well. But I have a little problem now to identify the connections. I forward the streams from new connections to a gateway and for now it is enough just to know there is a connection. But now I have to handle the case where 2 connections exist simultaneously. The process works, but still I’m not able to know what is the name of every connections like I can see in the Windows control panel.

      Is there a way to establish a link between \DEVICE\NDISWANIP and the friendly name of the interface ?

      Thank you and sorry if the question has been asked already.

      #7078
      Vadim Smirnov
      Keymaster

        If I understand you right you have two WAN connectons, need to distinguish them on packet level and match against the WAN link from the control panel?

        In Windows multiply WAN connections can be established through NDISWANIP interface, on the packet level they can be distinguished my their MAC addresses. Regretfully, there is no strighforward way to match WAN link to the WAN connection name in the control panel. However, it can be done through quick packet analyses. You can get source IP address from the packet and match it against against the connection using IP helper/RAS API. Each WAN link has a single IP address assigned and it uniquly identifies the connection.

        #7079
        Eldred
        Participant

          Thank you for your answer. With the IP I get the name using the IP helper API. It works perfectly !

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.