cvs commit: src/sys/net if_loop.c src/sys/netinet ip_icmp.c src/sys/kern uipc_mbuf2.c src/sys/sys mbuf.h

Sam Leffler sam at FreeBSD.org
Tue Oct 28 21:40:08 PST 2003


sam         2003/10/28 21:40:07 PST

  FreeBSD src repository

  Modified files:
    sys/net              if_loop.c 
    sys/netinet          ip_icmp.c 
    sys/kern             uipc_mbuf2.c 
    sys/sys              mbuf.h 
  Log:
  Introduce the notion of "persistent mbuf tags"; these are tags that stay
  with an mbuf until it is reclaimed.  This is in contrast to tags that
  vanish when an mbuf chain passes through an interface.  Persistent tags
  are used, for example, by MAC labels.
  
  Add an m_tag_delete_nonpersistent function to strip non-persistent tags
  from mbufs and use it to strip such tags from packets as they pass through
  the loopback interface and when turned around by icmp.  This fixes problems
  with "tag leakage".
  
  Pointed out by: Jonathan Stone
  Reviewed by:    Robert Watson
  
  Revision  Changes    Path
  1.21      +17 -0     src/sys/kern/uipc_mbuf2.c
  1.88      +1 -0      src/sys/net/if_loop.c
  1.81      +1 -0      src/sys/netinet/ip_icmp.c
  1.125     +17 -1     src/sys/sys/mbuf.h


More information about the cvs-src mailing list