using the dnet Python module:
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dnet
>>> dnet.route().get(dnet.addr('0.0.0.0/0'))
10.0.1.1
>>> dnet.intf().get('eth3')
{'addr': 10.0.1.28/2
On Tue, Feb 22, 2005 at 10:58:05PM -0800, Guy Harris wrote:
> >Do you have any clue how I can interact directly with normal flow.
>
> No, I don't. There might be some kind of tunnel mechanism available in
> Linux that would let you insert your own code into the normal flow of
> packets inside
a program which changes the filter for its pcap handle at runtime with
pcap_compile/setfilter() will abort when operating on a savefile, due
to this dangling ptr reference in pcap_offline_read():
--- savefile.c- Thu Mar 11 18:46:14 2004
+++ savefile.c Sun Nov 28 01:15:13 2004
@@ -906,7 +906,7 @@