Hi all, I noticed that section VII of Marc Greis' tutorial is seriously out of sync with the NS 2.30 sources. First, the ping example is now included in the apps directory of the ns distribution (this is worth mentioning in the tutorial text), Second, some functionality has been added to the apps/ping example (e.g. broadcast) and Third, the location, encapsulation and access methodology for some (former) member variables has been changed (improved imho, but with the drawback of not being backward compatible).
Specifically the third aspect requires to update the tutorial. Newbies are likely to be confused by the changes and compiler errors when they write their own protocols based on the ping sample as a template. The tutorial ping uses members which are no longer valid - e.g. off_ip_, which was apparently replaced by hdr_ip::access(); the src_ member which apprently was changed to a struct, yielding the former src_ in src_.addr_, etc.). NS is sufficiently complex for newbies, anyhow. ;) I therefore suggest to reflect these changes of the ping sources back to the tutorial, and, in addition, modify the comment on line 55 of the NS 2.30 apps/ping.h file (and cc-file) requesting that future changes be reflected to section VII the NS Tutorial. (The tutorial/examples directory seems to anyhow no longer exist)... Thanks in advance, best regards --Joachim
