Tap don't work on DCE

282 views
Skip to first unread message

gian

unread,
Sep 24, 2013, 10:08:28 AM9/24/13
to ns-3-...@googlegroups.com
Hi,
I developed a script that use the tap-bridge device, configured in "UseBridge" mode, that running perfectly in NS-3.18.
But the same script crash if execute in DCE-1.1. It generate this log:
....
msg="TapBridge::CreateTap(): Back from execlp(), errno = No such file or directory", file=../src/tap-bridge/model/tap-bridge.cc, line=523
terminate called without an active exception
msg="TapBridge::CreateTap(): socket creator exited abnormally", file=../src/tap-bridge/model/tap-bridge.cc, line=550
terminate called without an active exception
Command ['/home/scnl_user/workspace/dce/source/ns-3-dce/build/myscripts/dce-lte-wifi/bin/lte-epc-wifi-test'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

Why?!? could I have some help, please?

Hajime Tazaki

unread,
Sep 25, 2013, 3:41:07 AM9/25/13
to ns-3-...@googlegroups.com

this is probably an issue of DCE, which I have no quick fix
or ideas at this moment.

I will try to find a solution. If you find the way to fix
it, i'm happy to know that.

-- Hajime

At Tue, 24 Sep 2013 07:08:28 -0700 (PDT),
gian wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]

Hajime Tazaki

unread,
Oct 9, 2013, 8:17:01 PM10/9/13
to ns-3-...@googlegroups.com

I've filled a bug entry.

https://www.nsnam.org/bugzilla/show_bug.cgi?id=1765

two things are needed to be fixed; you can try it before
merging the fix in the latest code repository.

* --enable-sudo option is missing in ns-3-dev, ns-3.18
module in bakeconf.xml. add the option in bakeconf.xml.

* in dce-1.1 with ./waf under ns-3-dce directory, missing
PATH variable failed to lookup tap-creator. add PATH
variables with (bake buildroot)/build/bin directory.


-- Hajime

At Wed, 25 Sep 2013 16:41:07 +0900,

gian

unread,
Oct 14, 2013, 3:53:26 AM10/14/13
to ns-3-...@googlegroups.com
Thanks Hajime.
I try your fix.

Bye.
    Giancarlo

gian

unread,
Oct 30, 2013, 10:51:35 AM10/30/13
to ns-3-...@googlegroups.com
Hi Hajime,
I have implemented the first fix that you have suggested... but I don't understand how to implement the second fix :-|
Could explain more this part, please ?



      Giancarlo


Il giorno giovedì 10 ottobre 2013 02:17:01 UTC+2, Hajime ha scritto:

Hajime Tazaki

unread,
Nov 5, 2013, 9:09:10 AM11/5/13
to ns-3-...@googlegroups.com

At Wed, 30 Oct 2013 07:51:35 -0700 (PDT),
gian wrote:
>
> Hi Hajime,
> I have implemented the first fix that you have suggested... but I don't
> understand how to implement the second fix :-|
> Could explain more this part, please ?

I've uploaded the proposed patch for this fix. could you try
to patch it to ns-3-dce and build via bake again (if
possible) ?

https://www.nsnam.org/bugzilla/show_bug.cgi?id=1765

thanks.

-- Hajime
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
> To post to this group, send email to ns-3-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/groups/opt_out.

gian

unread,
Nov 6, 2013, 6:12:06 AM11/6/13
to ns-3-...@googlegroups.com
Hi Hajime,
your patch work well and in addition with your first fix ( --enable-sudo) is possible use the tap device. Thanks.

But now I have another issue: I must use NS3 simulation in realtime. How can I enable the "optimize" mode with DCE?

     Giancarlo

Hajime Tazaki

unread,
Nov 6, 2013, 9:44:40 AM11/6/13
to ns-3-...@googlegroups.com, ns-3-...@googlegroups.com

It's tricky (meaning should be documented) but you can. 

./waf configure --prefix=`pwd`/../../build --enable-static --enable-opt --prefix=$INSTALLDIR --with-ns3=$INSTALLDIR --with-elf-loader=$INSTALLDIR/lib --enable-kernel-stack=`pwd`/../net-next-sim-2.6.36/arch 

Then build it. 

We're using the following script for the daily test of optimized and static build. 
 

-- Hajime

gian

unread,
Nov 7, 2013, 10:41:49 AM11/7/13
to ns-3-...@googlegroups.com
Now It works all.
The suggested script it was very useful; in the configuration of waf  I do not include the directive --enable-static.
Thank you very much.

     Giancarlo

Mohammad Abu Shattal

unread,
Feb 16, 2015, 12:00:54 PM2/16/15
to ns-3-...@googlegroups.com
Hello Gian,

Would you please direct me to tap bridge ns3 example that works for you.

regards,
Mohammad

sen

unread,
Jun 22, 2017, 12:41:26 PM6/22/17
to ns-3-users

Hi,
I have the same question.
My script works well if I run it using the way "./waf --run myprojects/My/myapp"
I want to run it without the ns3 source code. So I execute it directly like the other C++ program using the way "./build/myprojects/My/ns3.19-myapp-debug". This way always ok in the other ns3 programs.

Unfortunately, it crash this time. It generate this log:

msg="TapBridge::CreateTap(): Back from execlp(), errno = No such file or directory", file=../src/tap-bridge/model/tap-bridge.cc, line=511
terminate called without an active exception
msg="TapBridge::CreateTap(): socket creator exited abnormally", file=../src/tap-bridge/model/tap-bridge.cc, line=538
terminate called without an active exception


could I have some help, please?

在 2013年9月24日星期二 UTC+8下午10:08:28,gian写道:
Reply all
Reply to author
Forward
0 new messages