X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flacp.c;h=711d7ec12d640c121d595c91b5029eea81ae1e18;hb=437d0d22ab42d4101157b48a75fa844e7039e326;hp=cbe2259f43699722b7c86324e053fbe4baf40909;hpb=d81eef1b874c3c51669fa56f57e69ba5e77ad2c5;p=sliver-openvswitch.git diff --git a/lib/lacp.c b/lib/lacp.c index cbe2259f4..711d7ec12 100644 --- a/lib/lacp.c +++ b/lib/lacp.c @@ -181,7 +181,8 @@ parse_lacp_packet(const struct ofpbuf *b) { const struct lacp_pdu *pdu; - pdu = ofpbuf_at(b, (uint8_t *)b->l3 - (uint8_t *)b->data, LACP_PDU_LEN); + pdu = ofpbuf_at(b, (uint8_t *)ofpbuf_get_l3(b) - (uint8_t *)b->data, + LACP_PDU_LEN); if (pdu && pdu->subtype == 1 && pdu->actor_type == 1 && pdu->actor_len == 20