Subject: CVS commit: src/sys/netinet
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 07/28/2006 17:04:27
Module Name:	src
Committed By:	dyoung
Date:		Fri Jul 28 17:04:27 UTC 2006

Modified Files:
	src/sys/netinet: in_gif.c

Log Message:
Fix mtod() usage.  If we will write to the mbuf data, check whether
the data is read-only/shared and call m_pullup().  Otherwise,
extract a const pointer to the mbuf data.

XXX I should extract a new macro, M_WRITABLE(m, len), that is true
if m has len consecutive writable bytes at its front.


To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 src/sys/netinet/in_gif.c

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