summaryrefslogtreecommitdiff
path: root/lib/stp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stp.c')
-rw-r--r--lib/stp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stp.c b/lib/stp.c
index ec8b01a4e..22bd93a60 100644
--- a/lib/stp.c
+++ b/lib/stp.c
@@ -1576,7 +1576,7 @@ stp_send_bpdu(struct stp_port *p, const void *bpdu, size_t bpdu_size)
pkt = dp_packet_new(ETH_HEADER_LEN + LLC_HEADER_LEN + bpdu_size);
eth = dp_packet_put_zeros(pkt, sizeof *eth);
llc = dp_packet_put_zeros(pkt, sizeof *llc);
- dp_packet_set_frame(pkt, eth);
+ dp_packet_reset_offsets(pkt);
dp_packet_set_l3(pkt, dp_packet_put(pkt, bpdu, bpdu_size));
/* 802.2 header. */