Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] Scapy error

Liyuan Wang wangliyuan316 at gmail.com
Wed Jan 9 12:51:08 PST 2013


Hi all,

I saw this previous post(as below).
I encountered the same problem.
Anyone know the answer?

Thanks,
Liyuan

---------------------------------------------

Hi all,

I'm attempting to use Scapy, a python library,
(http://www.secdev.org/projects/scapy/) to do some pretty simple
packet
injection from end-hosts in Mininet.  However, scapy encounters an error
when starting in mininet.  The output I get using the default topology and
controller when I attempt to start scapy is at the end of this email (error
in bold).  Note that this error does not occur when I try to start scapy
outside of mininet, so it's not a problem with scapy/my VM in general.

Any suggestions?  Alternately, any suggestions for a simple way to do packet
injection in mininet?

Thanks,

Kay

--------------------------------------------------------------------------------

*** Adding controller
*** Creating network
*** Adding hosts:
h2 h3
*** Adding switches:
s1
*** Adding links:
(s1, h2) (s1, h3)
*** Configuring hosts
h2 h3
*** Starting controller
*** Starting 1 switches
s1
*** Starting CLI:
mininet> h2 scapy
/var/lib/python-support/python2.5/scapy.py:3118: Warning: 'with' will become
a reserved keyword in Python 2.6
/var/lib/python-support/python2.5/scapy.py:3120: Warning: 'with' will become
a reserved keyword in Python 2.6
INFO: did not find python gnuplot wrapper . Won't be able to plot
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump()
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/scapy.py", line 12958, in <module>
    class Conf(ConfClass):
  File "/var/lib/python-support/python2.5/scapy.py", line 13009, in Conf
    route = Route()
  File "/var/lib/python-support/python2.5/scapy.py", line 917, in __init__
    self.resync()
  File "/var/lib/python-support/python2.5/scapy.py", line 926, in resync
    self.routes = read_routes()
  File "/var/lib/python-support/python2.5/scapy.py", line 1241, in
read_routes
    ifreq = ioctl(s, SIOCGIFADDR,struct.pack("16s16x","lo"))
*IOError: [Errno 99] Cannot assign requested address*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20130109/83a12a22/attachment.html>


More information about the mininet-discuss mailing list