Subject: CVS commit: src/sys
To: None <>
From: Jonathan Stone <>
List: source-changes
Date: 11/13/2003 01:48:13
Module Name:	src
Committed By:	jonathan
Date:		Thu Nov 13 01:48:13 UTC 2003

Modified Files:
	src/sys/kern: uipc_mbuf2.c
	src/sys/net: if_loop.c
	src/sys/netinet: ip_icmp.c
	src/sys/sys: mbuf.h

Log Message:
Add m_tag_delete_nonpesrsistent(), for deleting all packet tags on
mbuf chains which are recycled (e.g., ICMP reflection, loopback
interface).  A consensus was reached that such recycled packets should
behave (more-or-less) the same way if a new chain had been allocated
and the contents copied to that chain.

Some packet tags may in future be marked as "persistent" (e.g., for
mandatory access controls) and should persist across such deletion.
NetBSD as yet hos no persistent tags, so m_tag_delete_nonpersistent()
just deletes all tags. This should not be relied upon.

To generate a diff of this commit:
cvs rdiff -r1.15 -r1.16 src/sys/kern/uipc_mbuf2.c
cvs rdiff -r1.48 -r1.49 src/sys/net/if_loop.c
cvs rdiff -r1.79 -r1.80 src/sys/netinet/ip_icmp.c
cvs rdiff -r1.87 -r1.88 src/sys/sys/mbuf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.