Daniel,
1) I applied ns_2.28-4.diff to ns_2.28.orig, and had an error when trying to compile. When I attempted a make after configure, I got the following error: $ make c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -D HAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_9 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DH AVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO _SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/usr/ns-al linone-2.29/tclcl-1.17 -I/usr/ns-allinone-2.29/otcl-1.11 -I/usr/ns-allinone-2.29 /include -I/usr/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I ./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./ro uting -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/ lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./wpan -o gea/gea.o gea/gea.cc gea/gea.cc:1:21: gea/API.h: No such file or directory gea/gea.cc:3: error: `gea' has not been declared gea/gea.cc:3: error: expected constructor, destructor, or type conversion before "GEA" gea/gea.cc:3: error: expected `,' or `;' before "GEA" make: *** [gea/gea.o] Error 1 2) It looks like the patched version is missing a file. I then tried using gea source (libgea_1.1) instead of gea directory of the patch, and got the following error when performing make: $ make make: *** No rule to make target `gea/gea.cc', needed by `gea/gea.o'. Stop. I'm obviously doing something wrong here, but I don't know what. What steps are required to compile ns with gea? Regards, Jeff S. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Mahrenholz Sent: Sunday, May 28, 2006 12:27 PM To: Jeff Schwentner Cc: [email protected] Subject: Re: [ns] Simulating an embedded ad-hoc wireless protocol Hi Jeff, Jeff Schwentner schrieb: > So if I understand correctly, I would embed our custom packets in UDP > packets. This would include the RTS/CTS/ACK MAC packets in addition to the > actual data packets. The MAC layer, as far as ns-2 is concerned, would just > be a pass-through (not sending its own RTS/CTS). > Yes - at the moment this would result in all packets being encapsulated into UDP packets. In our case we have some kind of extended MAC layer. We do not replace the standard 802.11 MAC but we do not use RTS/CTS and only broadcast communication and so no ACKs. Currently we do not have the "pass through" MAC because our protocols are intended to work on COTS hardware. But for you this probably will not work if you like to replace/modify the whole MAC behavior and its timing. > Do you have an example that I can compile and run with ns-2 (I'm using 2.29 > on Cygwin)? In either case, I would greatly appreciate any documentation > you can point me to get started! We have some code examples in the source code archive in our repository. So far we did not try to compile GEA on cygwin but there should be no problem. But you need to use the modified ns-2 (available from our repository). Daniel.
