X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstp.c;h=78dacb38870f075757f3cb12dc3b3c89e39a8a36;hb=437d0d22ab42d4101157b48a75fa844e7039e326;hp=c5aec57d2149552839623a066c1c92757a3d78a7;hpb=d81eef1b874c3c51669fa56f57e69ba5e77ad2c5;p=sliver-openvswitch.git diff --git a/lib/stp.c b/lib/stp.c index c5aec57d2..78dacb388 100644 --- a/lib/stp.c +++ b/lib/stp.c @@ -1537,7 +1537,7 @@ stp_send_bpdu(struct stp_port *p, const void *bpdu, size_t bpdu_size) pkt = ofpbuf_new(ETH_HEADER_LEN + LLC_HEADER_LEN + bpdu_size); pkt->l2 = eth = ofpbuf_put_zeros(pkt, sizeof *eth); llc = ofpbuf_put_zeros(pkt, sizeof *llc); - pkt->l3 = ofpbuf_put(pkt, bpdu, bpdu_size); + ofpbuf_set_l3(pkt, ofpbuf_put(pkt, bpdu, bpdu_size)); /* 802.2 header. */ memcpy(eth->eth_dst, eth_addr_stp, ETH_ADDR_LEN);