Hi,
At Thu, 4 Jul 2013 07:19:14 -0700 (PDT),
Rick Correa wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> I'm trying to run Quagga to simulate RIP routing on an 802.11 network using
> NS-3.
>
> I used bake.py to set up the environment and I can run the example P2P
> links, but when I try to change the Layer 2 P2P helper to a wireless
> helper, I getting an assert that triggers because uid==0 (cond="uid != 0").
>
> It occurs in *several places including *when I call:
>
> processManager.SetNetworkStack ("ns3::LinuxSocketFdFactory",
> "Library", StringValue ("liblinux.so"));
>
> I seem to always get uid !=0 assertions in *multiple places including*:
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
> ns3::LinuxSocketFdFactory not found", file=../src/core/model/type-id.cc,
> line=419
> terminate called without an active exception
this error is because of lacking Linux network stack for DCE
(not related to wireless helper). It needs to build with the
following bake configuration.
% bake.py configure -e dce-linux-1.0
% bake.py download
% bake.py build
http://www.nsnam.org/docs/dce/release/1.0/manual/html/getting-started.html#building-dce-advanced-mode-with-linux-kernel
> I have two questions:
> Fundamentally, can I simulate a wireless stack using NS-3 and have packets
> processed by Quagga?
yes.
there is no limitation for quagga whether a link is wireless
or not.
this example uses WiFi links with quagga.
http://code.nsnam.org/thehajime/ns-3-dce-umip/file/88d63172f7cd/example/dce-umip-nemo.cc
> Am I doing anything wrong?
>
> I've reviewed the DCE documentation and the Quagga documentation. I don't
> see anything immediately wrong.
I hope above answer (dce-linux build for bake) will solve
your issue. Please let me know if you'll still be stuck.
-- Hajime