svn commit: r214465 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Oct 28 17:04:33 UTC 2010


Author: tuexen
Date: Thu Oct 28 17:04:32 2010
New Revision: 214465
URL: http://svn.freebsd.org/changeset/base/214465

Log:
  MFC 212099:
  Fix the the SCTP_WITH_NO_CSUM option when used in combination with
  interface supporting CRC offload. While at it, make use of the
  feature that the loopback interface provides CRC offloading.

Modified:
  stable/8/sys/netinet/sctp_pcb.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_pcb.c
==============================================================================
--- stable/8/sys/netinet/sctp_pcb.c	Thu Oct 28 17:02:36 2010	(r214464)
+++ stable/8/sys/netinet/sctp_pcb.c	Thu Oct 28 17:04:32 2010	(r214465)
@@ -5988,7 +5988,7 @@ sctp_load_addresses_from_init(struct sct
 				}
 				p4 = (struct sctp_ipv4addr_param *)phdr;
 				sin.sin_addr.s_addr = p4->addr;
-				if (IN_MULTICAST(sin.sin_addr.s_addr)) {
+				if (IN_MULTICAST(ntohl(sin.sin_addr.s_addr))) {
 					/* Skip multi-cast addresses */
 					goto next_param;
 				}


More information about the svn-src-all mailing list