Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

How can I load "wpcap.dll"

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> How can I load "wpcap.dll" Page: [1]
Login
Message << Older Topic   Newer Topic >>
How can I load "wpcap.dll" - Aug. 4, '06, 6:24:40 AM   
coolbye

 

Posts: 3
Joined: Jul. 30, '06,
Status: offline
When I use this to load "wpcap.dll":
void *m_CBHandle = dlopen("wpcap.dll", RTLD_LAZY);

It return the error:
wpcap.dll: not an NT PEI file

What it means?
Post #: 1
RE: How can I load "wpcap.dll" - Aug. 4, '06, 2:14:24 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The API dlopen() is for DSO's not DLL's -- that's Unix shared objects it loads, not Win32.

If you want to link with a Win32 DLL then you need to use "mixed mode" compile/link
which started in Interix version 5.2 (Windows2003/R2). Not available on 3.5.

(in reply to coolbye)
Post #: 2
RE: How can I load "wpcap.dll" - Aug. 4, '06, 9:38:27 PM   
coolbye

 

Posts: 3
Joined: Jul. 30, '06,
Status: offline
But I need load wpcap.dll in windows xp pro in Interix, what can I do?

(in reply to Rodney)
Post #: 3
RE: How can I load "wpcap.dll" - Aug. 4, '06, 11:34:04 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
To the DLL specifically -- SOL.

What does the DLL do functionally? Perhaps there is a matching Unix library
that can be used (shared or static).

(in reply to coolbye)
Post #: 4
RE: How can I load "wpcap.dll" - Aug. 5, '06, 1:49:02 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Nevermind, I looked it up. It matches to "libpcap" which cannot be
ported to Interix (I tried this several years ago, the situation has
not changed). So that's not an option.

Even if you were to use Interix 5.2 or later in mixed mode you
couldn't use wpcap.dll. So upgrading won't change anything.

(in reply to Rodney)
Post #: 5
RE: How can I load "wpcap.dll" - Aug. 6, '06, 9:07:10 PM   
coolbye

 

Posts: 3
Joined: Jul. 30, '06,
Status: offline
The progam compiled by Interix 5.2 can run at xp,2000 and 2003?

< Message edited by coolbye -- Aug. 6, '06, 9:19:18 PM >

(in reply to Rodney)
Post #: 6
RE: How can I load "wpcap.dll" - Aug. 7, '06, 4:13:18 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
> The progam compiled by Interix 5.2 can run at xp,2000 and 2003?

No. Interix 5.2 is only available for W2K3/R2.
Earlier versions of Interix will not run a 5.2 binary (but 5.2
will run a 3.0 or 3.5 binary). 5.2 binaries will be able to run
on 6.0 (Vista) when released. From W2K3/R2 forward Interix is
part of the base OS release.

The wpcap.dll will be quite useless with Interix because wpcap.dll's
API's will be wanting Winsock handles, not Unix socket handles.

(in reply to coolbye)
Post #: 7
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> How can I load "wpcap.dll" Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047