]> git.hungrycats.org Git - linux/commitdiff
[SCTP] Don't do any ppid byte-order conversions as it is opaque to SCTP.
authorSridhar Samudrala <sri@us.ibm.com>
Tue, 23 Mar 2004 02:50:56 +0000 (18:50 -0800)
committerSridhar Samudrala <sri@us.ibm.com>
Tue, 23 Mar 2004 02:50:56 +0000 (18:50 -0800)
net/sctp/sm_make_chunk.c
net/sctp/ulpevent.c

index 3c4bfc535fe5903c094806e24382bf22c0c23614..d8d22ed083bee1db084748cf237823cee6e1437b 100644 (file)
@@ -516,7 +516,7 @@ struct sctp_chunk *sctp_make_datafrag_empty(struct sctp_association *asoc,
         */
        dp.tsn = 0;
        dp.stream = htons(sinfo->sinfo_stream);
-       dp.ppid   = htonl(sinfo->sinfo_ppid);
+       dp.ppid   = sinfo->sinfo_ppid;
 
        /* Set the flags for an unordered send.  */
        if (sinfo->sinfo_flags & MSG_UNORDERED) {
index e56e1fdb156c3b42317c690d2039621497c6901a..9418b1065bc3f26e4a552a212e6d76345687195f 100644 (file)
@@ -663,7 +663,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc,
         * for and this information is passed opaquely by the SCTP stack from
         * one end to the other.
         */
-       info->sinfo_ppid = ntohl(chunk->subh.data_hdr->ppid);
+       info->sinfo_ppid = chunk->subh.data_hdr->ppid;
 
        /* Sockets API Extensions for SCTP
         * Section 5.2.2 SCTP Header Information Structure (SCTP_SNDRCV)