X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Fip_pipeline%2Fpipeline_firewall.c;h=b70260e30f3cb5813f5a456d1a180781d8c0476a;hp=ecc15a7165deaa6bf71a3769af5a27fbf8a34aa3;hb=9aaccf1abdb2894ec23870e1d2199a657f85850e;hpb=62814bc2e923b3d1867a93a1a4cd6073f5065e41 diff --git a/examples/ip_pipeline/pipeline_firewall.c b/examples/ip_pipeline/pipeline_firewall.c index ecc15a7165..b70260e30f 100644 --- a/examples/ip_pipeline/pipeline_firewall.c +++ b/examples/ip_pipeline/pipeline_firewall.c @@ -264,7 +264,7 @@ app_message_handle(struct app_core_firewall_message_handle_params *params) table_id = params->table_id; /* Handle request */ - req = (struct app_msg_req *) msg->ctrl.data; + req = (struct app_msg_req *)rte_ctrlmbuf_data(msg); switch (req->type) { case APP_MSG_REQ_PING: { @@ -303,7 +303,7 @@ app_message_handle(struct app_core_firewall_message_handle_params *params) } /* Fill in response message */ - resp = (struct app_msg_resp *) msg->ctrl.data; + resp = (struct app_msg_resp *)rte_ctrlmbuf_data(msg); resp->result = result; /* Send response */