Re: tcptrace-bugs Compile Problem + ns2 support

From: Ahmad Khayyat (
Date: 02/21/06

Message-ID: <>
Date: Tue, 21 Feb 2006 15:12:45 -0500
From: Ahmad Khayyat <>
Subject: Re: tcptrace-bugs Compile Problem + ns2 support

you are right.. It compiles perfectly now using flex-old. Thanks a lot.

And you are right yet once again regarding ns2 trace formats. I am
working on the wireless wpan (IEEE 802.15.4) which is somewhat similar
to 802.11, but I guess built-in ns support is wired only.
So, I looked into ns.c and modified it so that it reads the format i use...
Good news: tcptrace compiled after the modifications and read my trace
file without complaining.
Bad news: I am using udp instead of tcp, so all my events are ignored
since clearly ns.c looks for tcp and ack events only.
My new question: how can I add udp support to the ns.c input module?

Again, thank you very much for your prompt help.

- Ahmad Khayyat

Joshua Blanton wrote:

>Joshua Blanton wrote:
>>Hm, it looks like your version of flex doesn't like our scanner
>>file... Off the top of my head I don't know of a quick fix for
>>that - I see that my ubuntu box doesn't like that file either.
>>Perhaps a new version of flex chokes on the input (I thought it
>>might be gcc4, but I tried with gcc 3.4 as well and it fails too).
>>Hopefully someone else can track this down; if not, I'll try and
>>track it down when I get some free time.
>So a quick google search reveals that flex is broken in later
>versions; install "flex-old" in debian (it exists in Ubuntu -
>hopefully it's there in debian as well) and you should be able to
>build tcptrace.

This archive was generated by hypermail 2.1.7 : 02/22/06 EST