Hello
I'm using ns 2.33. I'm trying to add a snoop module to Base Station, but I
have some problems.
At the begin I create some configuration of the node
set opt(chan) Channel/WirelessChannel
set opt(prop) Propagation/TwoRayGround
set opt(netif) Phy/WirelessPhy
set opt(mac) Mac/802_11
set opt(ifq) Queue/DropTail/PriQueue
set opt(ll) LL
set opt(llS) LL/LLSnoop
set opt(ant) Antenna/OmniAntenna
set opt(ifqlen) 50
set opt(adhocRouting) DSDV
set opt(x) 500
set opt(y) 500
set opt(nn) 1
set num_wired_nodes 5
set num_bs_nodes 1
set que_limit 20
$ns node-config -adhocRouting $opt(adhocRouting) \
-llType $opt(llS) \
-macType $opt(mac) \
-ifqType $opt(ifq) \
-ifqLen $opt(ifqlen) \
-antType $opt(ant) \
-propType $opt(prop) \
-phyType $opt(netif) \
-channelType $opt(chan) \
-topoInstance $topo \
-wiredRouting ON \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF
And then I create Base Station
set BS(0) [$ns node 1.0.0]
but when I invoke a script I get an error:
*Memory security injury*
but when I use -llType $opt(ll) instead of -llType $opt(llS) everything
works fine.
Can someone help me?
thanks in advance