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;
                                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to