Date: Mon, 27 Oct 2014 08:23:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194577] mbuf packet header leakage when closing TUN devices Message-ID: <bug-194577-8-EkvmeOsJ4V@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194577-8@https.bugs.freebsd.org/bugzilla/> References: <bug-194577-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194577 Andrey V. Elsukov <ae@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ae@FreeBSD.org --- Comment #2 from Andrey V. Elsukov <ae@FreeBSD.org> --- Hi, Hans, If I understand correctly, you are able to track what mbuf were allocated and not freed in some period. Is it possible to modify your patch for printing content of these mbufs? I mean something like this: struct ip *ip; struct ip6_hdr *ip6; if (m->m_len > sizeof(struct ip)) { ip = mtod(m, struct ip*); printf("IP version: %u\n", ip->ip_v); switch(ip->ip_v) { case IPVERSION: /* print ip_src, ip_dst, ip_p */ break; case (IPV6_VERSION >> 4): ip6 = mtod(m, struct ip6_hdr *); /* print ip6_src, ip6_dst, ip6_nxt */ break; } } -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194577-8-EkvmeOsJ4V>