Hello,
first of all many thanks for your help (mac-null.cc) it is the corrrect file
for mac-null
but I can not port it to ns-2.1b7a despite Ido the following run(
./cofigure   )&(make depend)&(make) but the ns2.1b7a dosent feel with
mac-null
when i run my new protocols(lbm) with mac-null the following error message
comes










[EMAIL PROTECTED] ns-2.1b7a]# make

c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -

DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -

DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -

DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H

-DHAVE_CONFIG_H -I. -I/root/ns-allinone-2.1b7a/tclcl-1.0b10

-I/root/ns-allinone-2.1b7a/otcl-1.0a6 -I/root/ns-allinone-

2.1b7a/include -I/root/ns-allinone-2.1b7a/include -o mac-null.o mac-null.cc
In file included from mac.h:46,
from mac-null.cc:17:

route.h:46:1:
warning: "INFINITY" redefined
In file included from /usr/include/math.h:40,

  from random.h:40, from mac-null.cc:14:
/usr/include/bits/mathdef.h:35:1:

warning: this is the location of the previous definition

mac-null.cc: In member function `virtual void

MacNULL::recv(Packet*, Handler*)
   '


:
mac-null.cc:167: error: `txtime' undeclared (first use

this function)


mac-null.cc:167: error: (Each undeclared identifier is

reported only once for

 each function it appears in.)

make: *** [mac-null.o] Error 1
*****************************************************************




[EMAIL PROTECTED] ns-2.1b7a]# cd lbm

[EMAIL PROTECTED] lbm]# ns box_study1.tcl 30 mob30-1

setting other default
settings...
removing unecessary packet headers...

num_nodes is set 30
creating channel...

invalid command name "Mac/NULL"

while executing
"Mac/NULL create _o19 "

invoked from within
"catch "$className create $o $args" msg"

(procedure "new" line 3)

invoked from within
"new $mactype"

  (procedure "_o14" line 10)

(Node/MobileNode add-interface line 10)


  invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_    $ifqType_
$ifqlen_ $phyType_ $antType_"

(procedure "_o3" line 46)

(Simulator create-wireless-node line 46)


  invoked from within
"_o3 create-wireless-node"

("eval" body line 1)

invoked from within
"eval $self create-wireless-node $args"

(procedure "_o3" line 14)

(Simulator node line 14)

invoked from within
"$ns_ node"

("for" body line 2)

invoked from within
"for {set i 0} {$i <= $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0
     ;# disable random motion
}"

(file "box_study1.tcl" line 130)



******************************************************************** **
************

[EMAIL PROTECTED] lbm]# cd  ..








*****************************************************************************
Did you can help me to port the Mac/Null class to   ns-2.1b7a?)



---
thanks in advance,
 ahmad





On 5/1/07, Nima Nafisi < [EMAIL PROTECTED]> wrote:

> أحمد حموده
>
> Try this. I use this for ns-2.27.
> Cheers,
> Nima.
>
>
>
> wrote:
>
> > Hello,
> >Did you can help me to port the Mac/Null class to  ns-2.1b7a? how can I
> got
> >it(download it use it)
> >I would be interested. It's a nice MAC layer which ignores
> >collisions and contentions, and can have an infinite bandwidth.
> >--
> >thanks in advance,
> >ahmad
> >
> >------------------------------
> >Express yourself instantly with MSN Messenger! MSN
> >Messenger< http://g.msn.com/8HMAEN/2734??PS=47575>Download today it's
> >FREE!
> >
> >
> >
>
>
>

Reply via email to