Hi Francesco,
On Sun, Oct 26, 2008 at 1:08 PM, Francesco Piccinno <[EMAIL PROTECTED]>wrote:
> get_if_list is a function of scapy so it should be exported.
>
> [EMAIL PROTECTED] PacketManipulator $ scapy
> INFO: Can't import python gnuplot wrapper . Won't be able to plot.
> INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
> et_iWARNING: No route found for IPv6 destination :: (no default route?)
> f_listr(Welcome to Scapy (2.0.0.10 beta)
> >>> get_if_list()
> ['lo', 'eth0', 'wlan0']
>
> What version you are using?
>
bastiao:PacketManipulator luis$ scapy
INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
WARNING: No route found for IPv6 destination :: (no default route?)
Welcome to Scapy (2.0.0.10 beta)
>>> get_if_list()
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'get_if_list' is not defined
>>>
Awser above. Weird?
I think that it happen with BSD/Mac OSX. Ideas?
>
> Regards,
> Francesco Piccinno
>
> 2008/10/26 Luis A. Bastiao Silva <[EMAIL PROTECTED]>:
> > Hi ,
> >
> > I was testing PacketManipulator in Mac OS X. I never tried make a capture
> in
> > OSX. But now I was need to do to my stuff.
> >
> > Packet Manipulator run fine, but when I go to Capture - Interface or Ctrl
> +
> > I he returns a traceback:
> >
> > (DBG) MainThread:165ms at MainWindow.py:239 register_tab(): Tab Python
> Shell
> > registered as PythonShellTab
> > Traceback (most recent call last):
> > File
> >
> "/Users/luis/Documents/Projects/umit/umit-svn/branch/PacketManipulator/PM/Gui/Core/MainWindow.py",
> > line 507, in __on_select_iface
> > dialog = InterfaceDialog(self)
> > File
> >
> "/Users/luis/Documents/Projects/umit/umit-svn/branch/PacketManipulator/PM/Gui/Dialogs/Interface.py",
> > line 288, in __init__
> > self.if_list = InterfaceList()
> > File
> >
> "/Users/luis/Documents/Projects/umit/umit-svn/branch/PacketManipulator/PM/Gui/Dialogs/Interface.py",
> > line 262, in __init__
> > self.__populate()
> > File
> >
> "/Users/luis/Documents/Projects/umit/umit-svn/branch/PacketManipulator/PM/Gui/Dialogs/Interface.py",
> > line 265, in __populate
> > for iface in Backend.find_all_devs():
> > File
> >
> "/Users/luis/Documents/Projects/umit/umit-svn/branch/PacketManipulator/PM/Backend/Scapy/utils.py",
> > line 123, in find_all_devs
> > ifaces = get_if_list()
> > NameError: global name 'get_if_list' is not defined
> >
> >
> > I think that it's a scapy not implemented function in unix.py. Is it? Or
> > there is another way to check interfaces in OS X or BSD?
> >
> > In Mac OS X there are devices that represents network interfaces:
> >
> > ls /dev/bpf*
> > /dev/bpf0 /dev/bpf1 /dev/bpf2 /dev/bpf3 /dev/bpf4
> >
> > is it a business from scapy?
> >
> >
> > Cheers,
> > --
> > Luis A. Bastiao Silva
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Umit-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/umit-devel
> >
> >
>
Regards,
--
Luis A. Bastiao Silva
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Umit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/umit-devel