On Thursday 05 July 2012 03:57:19 Albert ARIBAUD wrote: > But to be honest, I haven't seen such badly a designed protocol or file > format; their designers tend to make sure that (assuming the start of a > protocol or file 'content' (frame, record, etc) is aligned, then all > fields in it are aligned as well. Can someone point me to an example of > a protocol or file format which does present such a misalignment risk ?
simply search the kernel for get_unaligned then. there are plenty of examples in there. granted, many apply to stacks that don't show up in u-boot (yet?) such as bluetooth, wireless, and irda, but i'm pretty sure TCP/IPv4 has a few edge cases too. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot