Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how can I load wpcap.dll in tcl?

19 views
Skip to first unread message

flyingdr...@163.com

unread,
Aug 25, 2007, 10:31:27 AM8/25/07
to
I want to use tcl to capture and send packet,but when I install
winpcap and use "load wpcap.dll" to load it,the tclsh return "couldn't
find procedure Wpcap_Init".Did you know what is the problem ,and how
can I do?

Michael Schlenker

unread,
Aug 25, 2007, 11:06:24 AM8/25/07
to
flyingdr...@163.com schrieb:
Maybe use something like tclpcap?
http://wiki.tcl.tk/14370

You cannot load any random dll in Tcl and access functions in it (or you
can but you need to use something like ffidl to manage the access).

For sending packages hping3 might also be interesting.

Michael

Mark Janssen

unread,
Aug 25, 2007, 1:32:47 PM8/25/07
to
On Aug 25, 5:06 pm, Michael Schlenker <schl...@uni-oldenburg.de>
wrote:
> flyingdragon0...@163.com schrieb:> I want to use tcl to capture and send packet,but when I install

> > winpcap and use "load wpcap.dll" to load it,the tclsh return "couldn't
> > find procedure Wpcap_Init".Did you know what is the problem ,and how
> > can I do?
>
> Maybe use something like tclpcap?http://wiki.tcl.tk/14370

>
> You cannot load any random dll in Tcl and access functions in it (or you
> can but you need to use something like ffidl to manage the access).
>
> For sending packages hping3 might also be interesting.
>
> Michael

http://wiki.tcl.tk/13150 contains a link to a Tcl binding to WinPCAP.

Mark

0 new messages