diff options
Diffstat (limited to 'src/udp6.c')
-rw-r--r-- | src/udp6.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,6 +11,8 @@ void udp6_input(struct mbuf *m) { Slirp *slirp = m->slirp; + M_DUP_DEBUG(slirp, m, 0, 0); + struct ip6 *ip, save_ip; struct udphdr *uh; int iphlen = sizeof(struct ip6); @@ -153,7 +155,8 @@ bad: int udp6_output(struct socket *so, struct mbuf *m, struct sockaddr_in6 *saddr, struct sockaddr_in6 *daddr) { - g_assert(M_ROOMBEFORE(m) >= sizeof(struct ip6) + sizeof(struct udphdr)); + Slirp *slirp = m->slirp; + M_DUP_DEBUG(slirp, m, 0, sizeof(struct ip6) + sizeof(struct udphdr)); struct ip6 *ip; struct udphdr *uh; |