<br><br> <br>Thanks for the reply.<br><br>However guess, its better to restate my problem, so that i can make you<br>people clear about my query.<br><br>I am using some  3 NICS ( network interface cards), which together get me 10<br>

ports.<br>2 NICs are are from D-Link NIC cards which have 4 ports each in them, and<br>another is NETGEAR NIC, which has 2 ports in it.<br><br>with the help of pcap_findalldevs() , i can obtain the list of all ports ,<br>

along with details of NIC cards, their MAC_ addresses and others.<br><br>But my question is , pcap_findalldevs( ), gives me list of all 10 ports i am<br>using,<br><br>assume i use a cross-cable and connect any 2 ports to form a loopback<br>

condition,then  is their any function in wpcap, which tells me<br>which 2 ports are in loopback state among the 10 ports i am using.<br><br>or any other function is their apart from wpcap, which helps me to do this.<br><br>

<br>please help me to figure out this problem.<br><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mon, Jul 4, 2011 at 12:08 PM,  <span dir="ltr"><<a href="mailto:winpcap-users-request@winpcap.org" target="_blank">winpcap-users-request@winpcap.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Winpcap-users mailing list submissions to<br>
        <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:winpcap-users-request@winpcap.org" target="_blank">winpcap-users-request@winpcap.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:winpcap-users-owner@winpcap.org" target="_blank">winpcap-users-owner@winpcap.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Winpcap-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: . PacketRequest() (rajath kumara)<br>
   2. Re : how to find active ports (rajath kumara)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 4 Jul 2011 12:07:10 +0530<br>
From: rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>><br>
To: <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
Subject: Re: [Winpcap-users] . PacketRequest()<br>
Message-ID:<br>
        <CANT-2GQ+d_G++Ajt_gLT0rX=<a href="mailto:dcGwx5JU1cox3tt248Fd-XnyVA@mail.gmail.com" target="_blank">dcGwx5JU1cox3tt248Fd-XnyVA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks for the reply.<br>
<br>
However guess, its better to restate my problem, so that i can make you<br>
people clear about my query.<br>
<br>
I am using some  3 NICS ( network interface cards), which together get me 10<br>
ports.<br>
2 NICs are are from D-Link NIC cards which have 4 ports each in them, and<br>
another is NETGEAR NIC, which has 2 ports in it.<br>
<br>
with the help of pcap_findalldevs() , i can obtain the list of all ports ,<br>
along with details of NIC cards, their MAC_ addresses and others.<br>
<br>
But my question is , pcap_findalldevs( ), gives me list of all 10 ports i am<br>
using,<br>
<br>
assume i use a cross-cable and connect any 2 ports to form a loopback<br>
condition,then  is their any function in wpcap, which tells me<br>
which 2 ports are in loopback state among the 10 ports i am using.<br>
<br>
or any other function is their apart from wpcap, which helps me to do this.<br>
<br>
<br>
please help me to figure out this problem.<br>
<br>
<br>
<br>
<br>
<br>
On Sat, Jul 2, 2011 at 12:30 AM, <<a href="mailto:winpcap-users-request@winpcap.org" target="_blank">winpcap-users-request@winpcap.org</a>> wrote:<br>
<br>
> Send Winpcap-users mailing list submissions to<br>
>        <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>        <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>        <a href="mailto:winpcap-users-request@winpcap.org" target="_blank">winpcap-users-request@winpcap.org</a><br>
><br>
> You can reach the person managing the list at<br>
>        <a href="mailto:winpcap-users-owner@winpcap.org" target="_blank">winpcap-users-owner@winpcap.org</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Winpcap-users digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
>   1. Re: PacketRequest() (geek techie)<br>
>   2. Re: how to find active ports (rajath kumara)<br>
>   3. Re: PacketRequest() (Gisle Vanem)<br>
>   4. Re: how to find active ports (Gisle Vanem)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Fri, 1 Jul 2011 11:22:52 +0530<br>
> From: geek techie <<a href="mailto:geektechgo@gmail.com" target="_blank">geektechgo@gmail.com</a>><br>
> To: <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
> Subject: Re: [Winpcap-users] PacketRequest()<br>
> Message-ID: <BANLkTinLEjMWb7e_5N4zGTnPTXciqZ=<a href="mailto:cFQ@mail.gmail.com" target="_blank">cFQ@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hello,<br>
>  Please help me to understand wpcap API - PacketRequest ( ).<br>
><br>
><br>
> any suggestions?<br>
><br>
> On Thu, Jun 30, 2011 at 11:09 AM, geek techie <<a href="mailto:geektechgo@gmail.com" target="_blank">geektechgo@gmail.com</a>><br>
> wrote:<br>
><br>
> > Hello,<br>
> >  could someone please elaborate on wpcap API - PacketRequest( ) ,<br>
> > regarding its functionalities and what does it do?<br>
> ><br>
> > Also is this function PacketRequest connected with NDIS-OID( object<br>
> > identifiers), in any way ?<br>
> > if so, explain how ?<br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/e529e115/attachment-0001.html" target="_blank">http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/e529e115/attachment-0001.html</a><br>


> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Fri, 1 Jul 2011 17:16:27 +0530<br>
> From: rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>><br>
> To: <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
> Subject: Re: [Winpcap-users] how to find active ports<br>
> Message-ID: <BANLkTikTpk=<a href="mailto:tjVbdNwyy7Vc0qq9LPK57yA@mail.gmail.com" target="_blank">tjVbdNwyy7Vc0qq9LPK57yA@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hi,<br>
><br>
> Kindly suggest me how to proceed for the below mentioned problem.<br>
> your replies, will be valuable to me.<br>
><br>
> On Thu, Jun 30, 2011 at 10:42 AM, rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a><br>
> >wrote:<br>
><br>
> > Hi,<br>
> ><br>
> >  Currently I am using wpcap function to obtain list of all ports in my<br>
> > system.<br>
> ><br>
> > but assume i need to find only active ports in my system, for this, is<br>
> > their any wpcap function which will provide me<br>
> > list of all active ports in my system?<br>
> ><br>
> > for eg: i have some 10 ports in my system.<br>
> >           if i use a cross cable and create a loopback among 2 ports,<br>
> then,<br>
> > is their any wpcap function, which gives me list of only<br>
> >           loopback active ports?<br>
> ><br>
> ><br>
> > kindly suggest me.<br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/1ccb4127/attachment-0001.html" target="_blank">http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/1ccb4127/attachment-0001.html</a><br>


> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Fri, 01 Jul 2011 14:55:08 +0200<br>
> From: Gisle Vanem <<a href="mailto:gvanem@broadpark.no" target="_blank">gvanem@broadpark.no</a>><br>
> To: WinDump <<a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a>><br>
> Subject: Re: [Winpcap-users] PacketRequest()<br>
> Message-ID: <<a href="mailto:C0AE5B30A04E435E889740C843F77518@broadpark.no" target="_blank">C0AE5B30A04E435E889740C843F77518@broadpark.no</a>><br>
> Content-Type: text/plain; CHARSET=US-ASCII; format=flowed;<br>
>        reply-type=original<br>
><br>
> "geek techie" <<a href="mailto:geektechgo@gmail.com" target="_blank">geektechgo@gmail.com</a>> wrote:<br>
><br>
> >  Please help me to understand wpcap API - PacketRequest ( ).<br>
><br>
> the PacketRequest() function is used to send an OID (object ID number) to<br>
> the interface card driver. It can be used, for example, to retrieve the<br>
> status<br>
> of the error counters on the adapter, its MAC address, the list of the<br>
> multicast<br>
> groups defined on it, and so on.<br>
><br>
> E.g. see here:<br>
>  <a href="http://www.winpcap.org/docs/docs_41b5/html/struct__PACKET__OID__DATA.html" target="_blank">http://www.winpcap.org/docs/docs_41b5/html/struct__PACKET__OID__DATA.html</a><br>
><br>
> or Google for "PacketRequest + WinPcap".<br>
><br>
> --gv<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 4<br>
> Date: Fri, 01 Jul 2011 15:11:07 +0200<br>
> From: Gisle Vanem <<a href="mailto:gvanem@broadpark.no" target="_blank">gvanem@broadpark.no</a>><br>
> To: WinDump <<a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a>><br>
> Subject: Re: [Winpcap-users] how to find active ports<br>
> Message-ID: <<a href="mailto:772EE3BDF5AF48A39F8A3738749D7FC7@broadpark.no" target="_blank">772EE3BDF5AF48A39F8A3738749D7FC7@broadpark.no</a>><br>
> Content-Type: text/plain; CHARSET=US-ASCII; format=flowed;<br>
>        reply-type=original<br>
><br>
> "rajath kumara" <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>> wrote:<br>
><br>
> >  Currently I am using wpcap function to obtain list of all ports in my<br>
> > system.<br>
><br>
> I thought you were talking about TCP/UDP-ports until ...<br>
><br>
> > but assume i need to find only active ports in my system, for this, is<br>
> > their any wpcap function which will provide me<br>
> > list of all active ports in my system?<br>
> ><br>
> > for eg: i have some 10 ports in my system.<br>
> >           if i use a cross cable and create a loopback among 2 ports,<br>
> then,<br>
><br>
> .. I read the above. You have a box with 10 network interfaces?<br>
><br>
> > is their any wpcap function, which gives me list of only<br>
> >           loopback active ports?<br>
><br>
> In any case, there isn't any WinPcap function that does this; neither finds<br>
> active/listening UDP/TCP-ports nor makes a "list of all active physical<br>
> ports".<br>
> You have to specify your problem a bit more.<br>
><br>
> If you want to find active/listening ports, then (depending on your OS)<br>
> there<br>
> are functions deep inside the OS for retrieving that information (like<br>
> netstat<br>
> does). In case you use Windows, the functions<br>
> AllocateAndGetTcpExTableFromStack()<br>
> and GetExtendedTcpTable() does that.<br>
><br>
> --gv<br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Winpcap-users mailing list<br>
> <a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br>
> <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
><br>
><br>
> End of Winpcap-users Digest, Vol 76, Issue 1<br>
> ********************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20110704/a96f476e/attachment-0001.html" target="_blank">http://www.winpcap.org/pipermail/winpcap-users/attachments/20110704/a96f476e/attachment-0001.html</a>><br>


<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 4 Jul 2011 12:08:38 +0530<br>
From: rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>><br>
To: <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
Subject: [Winpcap-users] Re : how to find active ports<br>
Message-ID:<br>
        <CANT-2GSgobEA8LXSquVT+mBKjg9vMY=<a href="mailto:feoRhHtKNtQ9ejWM9Pw@mail.gmail.com" target="_blank">feoRhHtKNtQ9ejWM9Pw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks for the reply.<br>
<br>
However guess, its better to restate my problem, so that i can make you<br>
people clear about my query.<br>
<br>
I am using some  3 NICS ( network interface cards), which together get me 10<br>
ports.<br>
2 NICs are are from D-Link NIC cards which have 4 ports each in them, and<br>
another is NETGEAR NIC, which has 2 ports in it.<br>
<br>
with the help of pcap_findalldevs() , i can obtain the list of all ports ,<br>
along with details of NIC cards, their MAC_ addresses and others.<br>
<br>
But my question is , pcap_findalldevs( ), gives me list of all 10 ports i am<br>
using,<br>
<br>
assume i use a cross-cable and connect any 2 ports to form a loopback<br>
condition,then  is their any function in wpcap, which tells me<br>
which 2 ports are in loopback state among the 10 ports i am using.<br>
<br>
or any other function is their apart from wpcap, which helps me to do this.<br>
<br>
<br>
please help me to figure out this problem.<br>
<br>
<br>
On Mon, Jul 4, 2011 at 12:07 PM, rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>>wrote:<br>
<br>
><br>
> Thanks for the reply.<br>
><br>
> However guess, its better to restate my problem, so that i can make you<br>
> people clear about my query.<br>
><br>
> I am using some  3 NICS ( network interface cards), which together get me<br>
> 10 ports.<br>
> 2 NICs are are from D-Link NIC cards which have 4 ports each in them, and<br>
> another is NETGEAR NIC, which has 2 ports in it.<br>
><br>
> with the help of pcap_findalldevs() , i can obtain the list of all ports ,<br>
> along with details of NIC cards, their MAC_ addresses and others.<br>
><br>
> But my question is , pcap_findalldevs( ), gives me list of all 10 ports i<br>
> am using,<br>
><br>
> assume i use a cross-cable and connect any 2 ports to form a loopback<br>
> condition,then  is their any function in wpcap, which tells me<br>
> which 2 ports are in loopback state among the 10 ports i am using.<br>
><br>
> or any other function is their apart from wpcap, which helps me to do this.<br>
><br>
><br>
> please help me to figure out this problem.<br>
><br>
><br>
><br>
><br>
><br>
> On Sat, Jul 2, 2011 at 12:30 AM, <<a href="mailto:winpcap-users-request@winpcap.org" target="_blank">winpcap-users-request@winpcap.org</a>>wrote:<br>
><br>
>> Send Winpcap-users mailing list submissions to<br>
>>        <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>>        <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
>> or, via email, send a message with subject or body 'help' to<br>
>>        <a href="mailto:winpcap-users-request@winpcap.org" target="_blank">winpcap-users-request@winpcap.org</a><br>
>><br>
>> You can reach the person managing the list at<br>
>>        <a href="mailto:winpcap-users-owner@winpcap.org" target="_blank">winpcap-users-owner@winpcap.org</a><br>
>><br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of Winpcap-users digest..."<br>
>><br>
>><br>
>> Today's Topics:<br>
>><br>
>>   1. Re: PacketRequest() (geek techie)<br>
>>   2. Re: how to find active ports (rajath kumara)<br>
>>   3. Re: PacketRequest() (Gisle Vanem)<br>
>>   4. Re: how to find active ports (Gisle Vanem)<br>
>><br>
>><br>
>> ----------------------------------------------------------------------<br>
>><br>
>> Message: 1<br>
>> Date: Fri, 1 Jul 2011 11:22:52 +0530<br>
>> From: geek techie <<a href="mailto:geektechgo@gmail.com" target="_blank">geektechgo@gmail.com</a>><br>
>> To: <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
>> Subject: Re: [Winpcap-users] PacketRequest()<br>
>> Message-ID: <BANLkTinLEjMWb7e_5N4zGTnPTXciqZ=<a href="mailto:cFQ@mail.gmail.com" target="_blank">cFQ@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset="iso-8859-1"<br>
>><br>
>> Hello,<br>
>>  Please help me to understand wpcap API - PacketRequest ( ).<br>
>><br>
>><br>
>> any suggestions?<br>
>><br>
>> On Thu, Jun 30, 2011 at 11:09 AM, geek techie <<a href="mailto:geektechgo@gmail.com" target="_blank">geektechgo@gmail.com</a>><br>
>> wrote:<br>
>><br>
>> > Hello,<br>
>> >  could someone please elaborate on wpcap API - PacketRequest( ) ,<br>
>> > regarding its functionalities and what does it do?<br>
>> ><br>
>> > Also is this function PacketRequest connected with NDIS-OID( object<br>
>> > identifiers), in any way ?<br>
>> > if so, explain how ?<br>
>> ><br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<br>
>> <a href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/e529e115/attachment-0001.html" target="_blank">http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/e529e115/attachment-0001.html</a><br>


>> ><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 2<br>
>> Date: Fri, 1 Jul 2011 17:16:27 +0530<br>
>> From: rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>><br>
>> To: <a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a><br>
>> Subject: Re: [Winpcap-users] how to find active ports<br>
>> Message-ID: <BANLkTikTpk=<a href="mailto:tjVbdNwyy7Vc0qq9LPK57yA@mail.gmail.com" target="_blank">tjVbdNwyy7Vc0qq9LPK57yA@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset="iso-8859-1"<br>
>><br>
>> Hi,<br>
>><br>
>> Kindly suggest me how to proceed for the below mentioned problem.<br>
>> your replies, will be valuable to me.<br>
>><br>
>> On Thu, Jun 30, 2011 at 10:42 AM, rajath kumara <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a><br>
>> >wrote:<br>
>><br>
>> > Hi,<br>
>> ><br>
>> >  Currently I am using wpcap function to obtain list of all ports in my<br>
>> > system.<br>
>> ><br>
>> > but assume i need to find only active ports in my system, for this, is<br>
>> > their any wpcap function which will provide me<br>
>> > list of all active ports in my system?<br>
>> ><br>
>> > for eg: i have some 10 ports in my system.<br>
>> >           if i use a cross cable and create a loopback among 2 ports,<br>
>> then,<br>
>> > is their any wpcap function, which gives me list of only<br>
>> >           loopback active ports?<br>
>> ><br>
>> ><br>
>> > kindly suggest me.<br>
>> ><br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<br>
>> <a href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/1ccb4127/attachment-0001.html" target="_blank">http://www.winpcap.org/pipermail/winpcap-users/attachments/20110701/1ccb4127/attachment-0001.html</a><br>


>> ><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 3<br>
>> Date: Fri, 01 Jul 2011 14:55:08 +0200<br>
>> From: Gisle Vanem <<a href="mailto:gvanem@broadpark.no" target="_blank">gvanem@broadpark.no</a>><br>
>> To: WinDump <<a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a>><br>
>> Subject: Re: [Winpcap-users] PacketRequest()<br>
>> Message-ID: <<a href="mailto:C0AE5B30A04E435E889740C843F77518@broadpark.no" target="_blank">C0AE5B30A04E435E889740C843F77518@broadpark.no</a>><br>
>> Content-Type: text/plain; CHARSET=US-ASCII; format=flowed;<br>
>>        reply-type=original<br>
>><br>
>> "geek techie" <<a href="mailto:geektechgo@gmail.com" target="_blank">geektechgo@gmail.com</a>> wrote:<br>
>><br>
>> >  Please help me to understand wpcap API - PacketRequest ( ).<br>
>><br>
>> the PacketRequest() function is used to send an OID (object ID number) to<br>
>> the interface card driver. It can be used, for example, to retrieve the<br>
>> status<br>
>> of the error counters on the adapter, its MAC address, the list of the<br>
>> multicast<br>
>> groups defined on it, and so on.<br>
>><br>
>> E.g. see here:<br>
>><br>
>> <a href="http://www.winpcap.org/docs/docs_41b5/html/struct__PACKET__OID__DATA.html" target="_blank">http://www.winpcap.org/docs/docs_41b5/html/struct__PACKET__OID__DATA.html</a><br>
>><br>
>> or Google for "PacketRequest + WinPcap".<br>
>><br>
>> --gv<br>
>><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 4<br>
>> Date: Fri, 01 Jul 2011 15:11:07 +0200<br>
>> From: Gisle Vanem <<a href="mailto:gvanem@broadpark.no" target="_blank">gvanem@broadpark.no</a>><br>
>> To: WinDump <<a href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a>><br>
>> Subject: Re: [Winpcap-users] how to find active ports<br>
>> Message-ID: <<a href="mailto:772EE3BDF5AF48A39F8A3738749D7FC7@broadpark.no" target="_blank">772EE3BDF5AF48A39F8A3738749D7FC7@broadpark.no</a>><br>
>> Content-Type: text/plain; CHARSET=US-ASCII; format=flowed;<br>
>>        reply-type=original<br>
>><br>
>> "rajath kumara" <<a href="mailto:rajathkumara@gmail.com" target="_blank">rajathkumara@gmail.com</a>> wrote:<br>
>><br>
>> >  Currently I am using wpcap function to obtain list of all ports in my<br>
>> > system.<br>
>><br>
>> I thought you were talking about TCP/UDP-ports until ...<br>
>><br></blockquote><div>            Guess you got it wrong here, because i am not talking about TCP/UDP ports,</div><div>    what i am talking is about ports, which are present in NIC's ( network interface cards). </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>> > but assume i need to find only active ports in my system, for this, is<br>
>> > their any wpcap function which will provide me<br>
>> > list of all active ports in my system?<br>
>> ><br>
>> > for eg: i have some 10 ports in my system.<br>
>> >           if i use a cross cable and create a loopback among 2 ports,<br>
>> then,<br>
>><br>
>> .. I read the above. You have a box with 10 network interfaces?<br>
>><br>
>> > is their any wpcap function, which gives me list of only<br>
>> >           loopback active ports?<br>
>><br>
>> In any case, there isn't any WinPcap function that does this; neither<br>
>> finds<br>
>> active/listening UDP/TCP-ports nor makes a "list of all active physical<br>
>> ports".<br>
>> You have to specify your problem a bit more.<br></blockquote><div><br></div><div>  here is a description about problem i am facing .</div><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><div>
I am using some  3 NICS ( network interface cards), which together get me 10 ports.</div><div>2 NICs are are from D-Link NIC cards which have 4 ports each in them, and another is NETGEAR NIC, which has 2 ports in it.</div>
<div><br></div><div>with the help of pcap_findalldevs() , i can obtain the list of all ports , along with details of NIC cards, their MAC_ addresses and others.</div><div><br></div><div>But my question is , pcap_findalldevs( ), gives me list of all 10 ports i am using,</div>
<div><br></div><div>assume i use a cross-cable and connect any 2 ports to form a loopback condition,then  is their any function in wpcap, which tells me </div><div>which 2 ports are in loopback state among the 10 ports i am using.</div>
<div><br></div><div>or any other function is their apart from wpcap, which helps me to do this.</div><div><br></div><div><br></div><div>please help me to figure out this problem.</div><div><br></div><div><br></div><div><br>
</div><div><br></div></span></div><div>   </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>><br>
>> If you want to find active/listening ports, then (depending on your OS)<br>
>> there<br>
>> are functions deep inside the OS for retrieving that information (like<br>
>> netstat<br>
>> does). In case you use Windows, the functions<br>
>> AllocateAndGetTcpExTableFromStack()<br>
>> and GetExtendedTcpTable() does that.<br>
>><br>
>> --gv<br>
>><br></blockquote><div><br></div><div>-- regards Rajath Kumar . </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>><br>
>> ------------------------------<br>
>><br>
>> _______________________________________________<br>
>> Winpcap-users mailing list<br>
>> <a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br>
>> <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
>><br>
>><br>
>> End of Winpcap-users Digest, Vol 76, Issue 1<br>
>> ********************************************<br>
>><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20110704/a475d08d/attachment.html" target="_blank">http://www.winpcap.org/pipermail/winpcap-users/attachments/20110704/a475d08d/attachment.html</a>><br>


<br>
------------------------------<br>
<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br>
<br>
End of Winpcap-users Digest, Vol 76, Issue 3<br>
********************************************<br>
</blockquote></div><br>