[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Enforcing Common Headers




The table of known/active packet headers is supposed to always 
contain the common headers (PacketHeader/Common).  ns-packet.tcl 
seems to make two similar entries.

One sets tab_(Common) to 1 as shown below:
	PacketHeaderManager set tab_(Common) 1

Another sets tab_(PacketHeader/Common) to 1.  The code below is used, 
and Common gets passed in as an argument:
	proc add-packet-header args {
		foreach cl $args {
			PacketHeaderManager set tab_(PacketHeader/$cl) 1
		}
	}

Are both entries needed, or is this a simple case of making MOST of a 
change?

-- 
Brian Lee Bowers	|	RADIANT Team
[email protected]	|	Los Alamos National Laboratory