[Bug 194577] mbuf packet header leakage when closing TUN devices
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Oct 27 08:23:44 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194577
Andrey V. Elsukov <ae at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ae at FreeBSD.org
--- Comment #2 from Andrey V. Elsukov <ae at 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.
More information about the freebsd-bugs
mailing list