runtime: mark TCP header offset correctly
@@ -26,8 +26,8 @@ tcp_push_tcphdr(struct mbuf *m, tcpconn_t *c, uint8_t flags, uint16_t l4len)
uint16_t win = c->tx_last_win = load_acquire(&c->pcb.rcv_wnd);
/* write the tcp header */
- mbuf_mark_transport_offset(m);
tcphdr = mbuf_push_hdr(m, *tcphdr);
+ mbuf_mark_transport_offset(m);
tcphdr->sport = hton16(c->e.laddr.port);
tcphdr->dport = hton16(c->e.raddr.port);
tcphdr->ack = hton32(ack);
