]> git.proxmox.com Git - ovs.git/commit
lldp: Get rid of POKE macros in favor of inline functions.
authorBen Pfaff <blp@nicira.com>
Tue, 3 Mar 2015 23:26:54 +0000 (15:26 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2015 00:19:27 +0000 (16:19 -0800)
commit22736f59c1c3d35662be0369321041c06747f7b9
treec886b6b8681edbd6a80d6ce4fc895bb8815eadaa
parent501b80538d7ab9a46a53a746ab109c04f8a6b9ab
lldp: Get rid of POKE macros in favor of inline functions.

The POKE macros previously used here don't match the style usually used in
OVS and they require the user to know exactly how many bytes to reserve.
This commit replaces them by easier-to-use inline functions that take
advantage of the ofpbuf interface.

Also removes a few PEEK macros that weren't used anywhere.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/lldp/lldp.c
tests/test-aa.c