From 1f317cb5c2aa446c4b0252634a4a70dcc3682f93 Mon Sep 17 00:00:00 2001 From: Pravin Shelar Date: Sun, 30 Mar 2014 01:31:50 -0700 Subject: ofpbuf: Introduce access api for base, data and size. These functions will be used by later patches. Following patch does not change functionality. Signed-off-by: Pravin B Shelar --- lib/cfm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/cfm.c') diff --git a/lib/cfm.c b/lib/cfm.c index dcdaa0ea6..420a57f10 100644 --- a/lib/cfm.c +++ b/lib/cfm.c @@ -719,7 +719,7 @@ cfm_process_heartbeat(struct cfm *cfm, const struct ofpbuf *p) ovs_mutex_lock(&mutex); eth = p->l2; - ccm = ofpbuf_at(p, (uint8_t *)ofpbuf_get_l3(p) - (uint8_t *)p->data, + ccm = ofpbuf_at(p, (uint8_t *)ofpbuf_get_l3(p) - (uint8_t *)ofpbuf_data(p), CCM_ACCEPT_LEN); if (!ccm) { -- cgit v1.2.1