Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/netinet



Module Name:    src
Committed By:   dyoung
Date:           Fri Jul 28 17:06:59 UTC 2006

Modified Files:
        src/sys/netinet: ip_gre.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.

KNF slightly.

Use bpf_mtap_af().


To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 src/sys/netinet/ip_gre.c

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




Home | Main Index | Thread Index | Old Index