Author: tuexen
Date: Mon Oct 29 20:42:48 2012
New Revision: 242325
URL: http://svn.freebsd.org/changeset/base/242325

Log:
  Use ntohs() and htons() in correct order. However, this doesn't change
  functionality.

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Mon Oct 29 18:06:09 2012        (r242324)
+++ head/sys/netinet/sctputil.c Mon Oct 29 20:42:48 2012        (r242325)
@@ -6821,7 +6821,7 @@ sctp_recv_udp_tunneled_packet(struct mbu
        switch (iph->ip_v) {
 #ifdef INET
        case IPVERSION:
-               iph->ip_len = ntohs(htons(iph->ip_len) - sizeof(struct udphdr));
+               iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));
                sctp_input_with_port(m, off, port);
                break;
 #endif
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to