[Click] ToSimDump patch

Bart Braem bart.braem at ua.ac.be
Wed Jan 11 08:18:46 EST 2006


Hello,

Currently ToSimDump does not support passing through packets with unknown 
types. This is necessary if you want to do Mac development inside Click. It 
can be patched as follows:
  if (!encap_type || encap_type == "ETHER")
    _encap_type = SIMCLICK_PTYPE_ETHER;
  else if (encap_type == "UNKNOWN")
    _encap_type = SIMCLICK_PTYPE_UNKNOWN;
  else if (encap_type == "IP")
    _encap_type = SIMCLICK_PTYPE_IP;
Everything is in the ns and Click sources, this should work out of the box. I 
did not yet check this on ClickCVS/ns-2.29 but most probably it works...

Bart
-- 
Bart Braem
PATS research group
Dept. of Mathematics and Computer Sciences
University of Antwerp
G2.36, Building G
Middelheimlaan 1
2020 Antwerpen, Belgium
Phone: +32 (0)3 265.35.19.
Fax: +32 (0)3 265.37.77.
Web: www.pats.ua.ac.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20060111/455e617d/attachment.pgp


More information about the click mailing list