]> git.ipfire.org Git - thirdparty/lldpd.git/commit - NEWS
Major rewrite for packet builder and parser.
authorVincent Bernat <bernat@luffy.cx>
Sun, 8 Mar 2009 15:01:22 +0000 (16:01 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 8 Mar 2009 15:01:22 +0000 (16:01 +0100)
commita8105c1b10d0d97e010b52ea9d52149d1efbc9c6
tree1da5f7ce33176fd4e3d1305e6e7221a16188d7ca
parent70d8fe9813a02dd9bda175b5a77be7aba83a0541
Major rewrite for packet builder and parser.

Packet builder now uses POKE_* macro that push bytes one by one using
memcpy to avoid any alignment issue that may appear on architectures
like ARM. The use of those macros instead of IOV renders the code
usually smaller except for very simple protocols.

Packet parser does not use structure casting any more. This is not
safe on architectures that do not handle unaligned read. We now read
packets sequentially using memcpy when reading more than one byte.
This makes the parser harder to read and somewhat longer.
15 files changed:
CHANGELOG
src/Makefile.am
src/cdp.c
src/cdp.h
src/edp.c
src/edp.h
src/frame.h [new file with mode: 0644]
src/iov.c [deleted file]
src/llc.h [deleted file]
src/lldp.c
src/lldp.h
src/lldpd.c
src/lldpd.h
src/sonmp.c
src/sonmp.h