[Winpcap-users] RE:Re: ..plz.. this is a newbie question..HEL(P) me!#..

HACKERBOY GAURAV!!..... errorboy at hackermail.com
Mon Mar 6 19:00:13 GMT 2006


..hey al gud for ur reply on my problm abt libcap.. but crap# ..u dint got what i want.. may b coz of my crap language(i dnt thnk so..eh!)
            ..realy i just want to use (LIB)PCAP.h in my lil-program in C# compiler.. nd i m not geting how to get libcap.h perfectly into header files of C# ..how?? ..plz tel me ..stil i dint got wat to do? ..thnx in advance@#$%^****(if u gonna help me!..)..
> ----- Original Message -----
> From: winpcap-users-request at winpcap.org
> To: winpcap-users at winpcap.org
> Subject: Winpcap-users Digest, Vol 12, Issue 6
> Date: Mon, 6 Mar 2006 12:01:05 GMT
> 
> 
> Send Winpcap-users mailing list submissions to
> 	winpcap-users at winpcap.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://www.winpcap.org/mailman/listinfo/winpcap-users
> or, via email, send a message with subject or body 'help' to
> 	winpcap-users-request at winpcap.org
> 
> You can reach the person managing the list at
> 	winpcap-users-owner at winpcap.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Winpcap-users digest..."
> 
> 
> Today's Topics:
> 
>     1. Re: ..plz.. this is a newbie question..HEL(P) me!#..
>        (Gianluca Varenni)
>     2. Re: Checking whether adapter is alive (Bryan Kadzban)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sun, 5 Mar 2006 11:16:46 -0800
> From: "Gianluca Varenni" <gianluca.varenni at cacetech.com>
> Subject: Re: [Winpcap-users] ..plz.. this is a newbie question..HEL(P)
> 	me!#..
> To: <winpcap-users at winpcap.org>
> Message-ID: <05f801c64089$58523e80$1a4da8c0 at NELSON2>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Uhm,
> 
> I don't know if I understood your message completely.
> 
> There's no such Ethereal 2.8 that I know of (the latest version is 0.10.14).
> 
> In order to compile a winpcap/libpcap based application, you should 
> NOT copy pcap.h into your some other folder, just point the 
> compiler to use another folder for the include files (with VisualC 
> and GCC it's option /I and -I).
> 
> Moreover, consider that the .lib files that we provide in the 
> developer's pack (and that are needed to link a winpcap based 
> application) are for MS visual studio and gcc, I don't know if they 
> are compatible with TC (and I think you mean "Borland Turbo C" by 
> TC).
> 
> Hope it helps
> GV
> 
>    ----- Original Message -----
>    From: HACKERBOY GAURAV!!.....
>    To: winpcap-users at winpcap.org
>    Sent: Saturday, March 04, 2006 1:39 PM
>    Subject: [Winpcap-users] ..plz.. this is a newbie question..HEL(P) me!#..
> 
> 
>    ..Me using WIN-XP ..i hav instaled ethereal 2.8, the bloody 
> version already hav winpcap3.1 ..actualy i just want to instal 
> LIBPCAP(pcap.h) so that me cud run my program through TC-compiler. 
> But when i compiled my program it errored>> "UNABLE TO OPEN PCAP.H' 
> ..so i manualy  copy the header files into INCLUDE directory ..but 
> the hell it gave me 26 errors#.. where m i wrong?? ..can neone help 
> me to say how sud i get LIBPCAP(PCAP.H) working on WIN-XP 
> ..plz..HELP ME!..plz...
> 
>    GBRAVO!
> 
> 
>    --
>    _______________________________________________
>    Get your free email from http://www.hackermail.com
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> 
>    _______________________________________________
>    Winpcap-users mailing list
>    Winpcap-users at winpcap.org
>    https://www.winpcap.org/mailman/listinfo/winpcap-users
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://www.winpcap.org/pipermail/winpcap-users/attachments/20060305/d26c63a1/attachment.html
> 
> ------------------------------
> 
> Message: 2
> Date: Sun, 05 Mar 2006 17:50:03 -0500
> From: Bryan Kadzban <bryan at kadzban.is-a-geek.net>
> Subject: Re: [Winpcap-users] Checking whether adapter is alive
> To: winpcap-users at winpcap.org
> Message-ID: <440B6B1B.80002 at kadzban.is-a-geek.net>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Loris Degioanni wrote:
> > Bryan, Shmuel,
> > do you have a small snippet of code that we can use to replicate the
> > problem? That would allow us to debug it more easily.
> 
> Well, my program (not sure about Shmuel's) runs this type of code.  I
> have a .Net OO wrapper around the whole thing, but these are the API
> calls it makes:
> 
> // start of setup
> PacketGetAdapterNames(...);    // get size of buffer
> //  allocate a buffer
> PacketGetAdapterNames(...);    // get adapter list into the buffer
> 
> for each "name" in the list returned {
>      handle = PacketOpenAdapter(name);
> 
>      // Get OID_GEN_PHYSICAL_MEDIUM using PacketRequest on "handle", and
>      //  filter out non-wireless cards.
>      //  If not filtered, add handle to the list of handles.
> }
> // end of setup
> 
> every second, for each item in the list of handles, do {
>      PACKET_OID_DATA *req = malloc(whatever);
>      req->Oid = OID_802_11_BSSID_LIST;
>      req->Length = // what I passed to malloc
>      PacketRequest(handle, 0, req);
>      // (Actually, I do this, with increasing buffer sizes, until
>      //  PacketRequest doesn't fail with the "buffer too short" status.)
> 
>      // Display all APs in range, indicating the signal strength of
>      //  each, based on the list returned by this OID
> }
> 
> This "every second" loop runs (with only one device) fine, until the
> device in question gets disabled.  Then it BSODs.  (It may also BSOD if
> other devices on the same machine get disabled, I don't remember.  I do
> know it blue-screens if any device options get changed, though.)  You
> can reproduce it by either removing a USB NIC while the loop is running
> (if you have a USB NIC), or disabling the device in device manager (but
> this may not be possible).
> 
> The *easy* way to trigger the BSOD is to go into device manager, open up
> the properties of the NIC device that you have open in the loop (again,
> or perhaps any other one, I don't remember for sure anymore), go to the
> Advanced tab, change the value of any of the options there, and hit OK.
> The machine will BSOD on the first call into PacketRequest after you hit
> OK.
> 
> I also have a memory dump file from one of the blue screens, but I'm
> guessing it's probably too large to send via email (it's 512MB).
> 
> Thanks!
> 
> > A simple workaround, if the frequency of the calls to PacketRequest()
> > is not high, is closing and reopening the adapter every time. The
> > adapter should just not open if the card is removed.
> 
> Hmm.  One open and close per second might get to be a bit much, I don't
> know...
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 256 bytes
> Desc: OpenPGP digital signature
> Url : 
> http://www.winpcap.org/pipermail/winpcap-users/attachments/20060305/294d7f8a/signature-0001.pgp
> 
> ------------------------------
> 
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
> 
> 
> End of Winpcap-users Digest, Vol 12, Issue 6
> ********************************************

>


-- 
_______________________________________________
Get your free email from http://www.hackermail.com



More information about the Winpcap-users mailing list