X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flacp.c;h=4aee64f4835acacb7b724bd897bf1de8f7288535;hb=cfc50ae514f805dcd9c14589f21158185424daf6;hp=923c10fe345aec2f90df42c383c130a310e95d90;hpb=1f317cb5c2aa446c4b0252634a4a70dcc3682f93;p=sliver-openvswitch.git diff --git a/lib/lacp.c b/lib/lacp.c index 923c10fe3..4aee64f48 100644 --- a/lib/lacp.c +++ b/lib/lacp.c @@ -181,7 +181,7 @@ parse_lacp_packet(const struct ofpbuf *b) { const struct lacp_pdu *pdu; - pdu = ofpbuf_at(b, (uint8_t *)ofpbuf_get_l3(b) - (uint8_t *)ofpbuf_data(b), + pdu = ofpbuf_at(b, (uint8_t *)ofpbuf_l3(b) - (uint8_t *)ofpbuf_data(b), LACP_PDU_LEN); if (pdu && pdu->subtype == 1