[Click] [PATCH] EtherAddress needs packing

Harald Schiöberg harald at net.t-labs.tu-berlin.de
Tue Feb 17 13:53:11 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

class EtherAddress needs to be a CLICK_SIZE_PACKED_STRUCTURE, since
ethernet header fields are directly cast into this class.

e.g. arpquerier.cc line 242:
EtherAddress *dst_eth = reinterpret_cast<EtherAddress*>
(&q->ether_header()->ether_dhost);

patch is attached

- --
Harald Schiöberg
Technische Universität Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJmweXy8wrZ9OvkU0RAtroAJkB2B+7lx2R9JDk0sbOOLoEPCa1EgCgv0l2
NZLFHKHK/ETD10m+qEZtXbY=
=dyg/
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001-arptable_alignment.patch
Type: text/x-diff
Size: 833 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20090217/7a5ff84d/attachment.patch 


More information about the click mailing list