use the modified tun_flowctl driver if it exists
From: weston
This commit is contained in:
parent
d92f1ff89d
commit
b1322df827
1 changed files with 7 additions and 2 deletions
|
@ -12,6 +12,7 @@ share the same MAC+PHY model.
|
|||
'''
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
|
||||
from core.api import coreapi
|
||||
from core.coreobj import PyCoreNet
|
||||
|
@ -183,6 +184,10 @@ class EmaneNode(EmaneNet):
|
|||
flowcontrol = True
|
||||
|
||||
if "virtual" in type.lower():
|
||||
if os.path.exists("/dev/net/tun_flowctl"):
|
||||
trans.appendChild(emane.xmlparam(transdoc, "devicepath",
|
||||
"/dev/net/tun_flowctl"))
|
||||
else:
|
||||
trans.appendChild(emane.xmlparam(transdoc, "devicepath",
|
||||
"/dev/net/tun"))
|
||||
if flowcontrol:
|
||||
|
|
Loading…
Reference in a new issue