summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-10-18 17:01:14 +0000
committerbluhm <bluhm@openbsd.org>2017-10-18 17:01:14 +0000
commit1662d0a7d67275c7b60b9cb48ce2fe303179d8ac (patch)
tree003714b477437d51228123640e6df3afacfff088 /lib/libc/stdlib/malloc.c
parentadd support for printing function arguments when displaying a trace (diff)
downloadwireguard-openbsd-1662d0a7d67275c7b60b9cb48ce2fe303179d8ac.tar.xz
wireguard-openbsd-1662d0a7d67275c7b60b9cb48ce2fe303179d8ac.zip
When reusing an mbuf at the upper end of the network stack, strip
off the mbuf properties with m_resethdr(). It is a new packet, especially M_LOOP indicating that it was running through lo(4) should be cleared. Use the ph_loopcnt to prevent looping at the upper end of the stack. Although not strictly necessary in icmp reflect, it is a good idea to increase and check the counter here, like in socket splicing. OK mpi@ sashan@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions