marek-sezemsky / coreemu

Automatically exported from code.google.com/p/coreemu
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

RJ45 linked to EMANE WLAN causes exception #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Link an RJ45 to a WLAN. Configure the WLAN to use EMANE. Start the experiment 
and cored.py throws an exception.

Mailing list thread:
http://pf.itd.nrl.navy.mil/pipermail/core-users/2012-May/000885.html

Traceback from starting a CORE emulation with an RJ45 device and an
EMANE network.  Note that the RJ45 device is capturing from interface
"usb0", so the invalid literal error is "sb0".

Traceback (most recent call last):
  File "/usr/sbin/cored.py", line 332, in handlemsg
    reply = msghandler(msg)
  File "/usr/sbin/cored.py", line 1007, in handleeventmsg
    self.session.emane.startup()
  File "/usr/lib/python2.7/site-packages/core/emane/emane.py", line
169, in startup
    self.buildxml()
  File "/usr/lib/python2.7/site-packages/core/emane/emane.py", line
297, in buildxml
    self.buildplatformxml()
  File "/usr/lib/python2.7/site-packages/core/emane/emane.py", line
388, in buildplatformxml
    nems = emanenode.buildplatformxmlentry(doc)
  File "/usr/lib/python2.7/site-packages/core/emane/nodes.py", line
122, in buildplatformxmlentry
    self.model.nemxmlname(netif.localname))
  File "/usr/lib/python2.7/site-packages/core/emane/emane.py", line
650, in nemxmlname
    name = self.basename(ifc)
  File "/usr/lib/python2.7/site-packages/core/emane/emane.py", line
642, in basename
    nodenum = self.interfacetonodenumber(ifc)
  File "/usr/lib/python2.7/site-packages/core/emane/emane.py", line
629, in interfacetonodenumber
    return int(name.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: 'sb0'

Original issue reported on code.google.com by ahrenh...@gmail.com on 14 May 2012 at 2:45

GoogleCodeExporter commented 9 years ago
fixed in r474

support for Raw Transport added

Original comment by ahrenh...@gmail.com on 16 Jul 2012 at 11:14