From 22736f59c1c3d35662be0369321041c06747f7b9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 3 Mar 2015 15:26:54 -0800 Subject: 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 --- tests/test-aa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test-aa.c') 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(); -- cgit v1.2.1