diff options
author | Ben Pfaff <blp@nicira.com> | 2015-03-03 15:26:54 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-03-03 16:19:27 -0800 |
commit | 22736f59c1c3d35662be0369321041c06747f7b9 (patch) | |
tree | c886b6b8681edbd6a80d6ce4fc895bb8815eadaa /tests/test-aa.c | |
parent | 501b80538d7ab9a46a53a746ab109c04f8a6b9ab (diff) | |
download | openvswitch-22736f59c1c3d35662be0369321041c06747f7b9.tar.gz |
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>
Diffstat (limited to 'tests/test-aa.c')
-rw-r--r-- | tests/test-aa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-aa.c b/tests/test-aa.c index c3f5f3aa6..c4c9e71ce 100644 --- a/tests/test-aa.c +++ b/tests/test-aa.c @@ -153,7 +153,7 @@ test_aa_send(void) struct lldpd_aa_isid_vlan_maps_tlv map[2]; uint32_t stub[512 / 4]; - struct ofpbuf packet; + struct dp_packet packet; int n; @@ -202,8 +202,8 @@ test_aa_send(void) map_init[1].isid_vlan_data.isid[2] = 6; /* Prepare an empty packet buffer */ - ofpbuf_use_stub(&packet, stub, sizeof stub); - ofpbuf_clear(&packet); + dp_packet_use_stub(&packet, stub, sizeof stub); + dp_packet_clear(&packet); /* Create a dummy lldp instance */ lldp = lldp_create_dummy(); |