https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194577

Andrey V. Elsukov <a...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a...@freebsd.org

--- Comment #2 from Andrey V. Elsukov <a...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to