svn commit: r215594 - stable/8/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Nov 20 21:39:08 UTC 2010
Author: tuexen
Date: Sat Nov 20 21:39:08 2010
New Revision: 215594
URL: http://svn.freebsd.org/changeset/base/215594
Log:
MFC r215301:
Simplify sctp_delayed_cksum() a bit.
Modified:
stable/8/sys/netinet/sctp_crc32.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/netinet/sctp_crc32.c
==============================================================================
--- stable/8/sys/netinet/sctp_crc32.c Sat Nov 20 21:36:12 2010 (r215593)
+++ stable/8/sys/netinet/sctp_crc32.c Sat Nov 20 21:39:08 2010 (r215594)
@@ -124,18 +124,16 @@ sctp_delayed_cksum(struct mbuf *m, uint3
#if defined(SCTP_WITH_NO_CSUM)
panic("sctp_delayed_cksum() called when using no SCTP CRC.");
#else
- struct ip *ip;
uint32_t checksum;
- ip = mtod(m, struct ip *);
checksum = sctp_calculate_cksum(m, offset);
SCTP_STAT_DECR(sctps_sendhwcrc);
SCTP_STAT_INCR(sctps_sendswcrc);
offset += offsetof(struct sctphdr, checksum);
if (offset + sizeof(uint32_t) > (uint32_t) (m->m_len)) {
- printf("delayed m_pullup, m->len: %d off: %d p: %d\n",
- (uint32_t) m->m_len, offset, ip->ip_p);
+ printf("sctp_delayed_cksum(): m->len: %d, off: %d.\n",
+ (uint32_t) m->m_len, offset);
/*
* XXX this shouldn't happen, but if it does, the correct
* behavior may be to insert the checksum in the appropriate
More information about the svn-src-stable
mailing list