diff options
Diffstat (limited to 'net/sctp/ulpevent.c')
-rw-r--r-- | net/sctp/ulpevent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/ulpevent.c b/net/sctp/ulpevent.c index 057e7fac3af0..e049f41faa47 100644 --- a/net/sctp/ulpevent.c +++ b/net/sctp/ulpevent.c | |||
@@ -698,7 +698,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, | |||
698 | event->ssn = ntohs(chunk->subh.data_hdr->ssn); | 698 | event->ssn = ntohs(chunk->subh.data_hdr->ssn); |
699 | event->ppid = chunk->subh.data_hdr->ppid; | 699 | event->ppid = chunk->subh.data_hdr->ppid; |
700 | if (chunk->chunk_hdr->flags & SCTP_DATA_UNORDERED) { | 700 | if (chunk->chunk_hdr->flags & SCTP_DATA_UNORDERED) { |
701 | event->flags |= MSG_UNORDERED; | 701 | event->flags |= SCTP_UNORDERED; |
702 | event->cumtsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map); | 702 | event->cumtsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map); |
703 | } | 703 | } |
704 | event->tsn = ntohl(chunk->subh.data_hdr->tsn); | 704 | event->tsn = ntohl(chunk->subh.data_hdr->tsn); |
@@ -824,7 +824,7 @@ void sctp_ulpevent_read_sndrcvinfo(const struct sctp_ulpevent *event, | |||
824 | * | 824 | * |
825 | * recvmsg() flags: | 825 | * recvmsg() flags: |
826 | * | 826 | * |
827 | * MSG_UNORDERED - This flag is present when the message was sent | 827 | * SCTP_UNORDERED - This flag is present when the message was sent |
828 | * non-ordered. | 828 | * non-ordered. |
829 | */ | 829 | */ |
830 | sinfo.sinfo_flags = event->flags; | 830 | sinfo.sinfo_flags = event->flags; |
@@ -839,7 +839,7 @@ void sctp_ulpevent_read_sndrcvinfo(const struct sctp_ulpevent *event, | |||
839 | * This field will hold the current cumulative TSN as | 839 | * This field will hold the current cumulative TSN as |
840 | * known by the underlying SCTP layer. Note this field is | 840 | * known by the underlying SCTP layer. Note this field is |
841 | * ignored when sending and only valid for a receive | 841 | * ignored when sending and only valid for a receive |
842 | * operation when sinfo_flags are set to MSG_UNORDERED. | 842 | * operation when sinfo_flags are set to SCTP_UNORDERED. |
843 | */ | 843 | */ |
844 | sinfo.sinfo_cumtsn = event->cumtsn; | 844 | sinfo.sinfo_cumtsn = event->cumtsn; |
845 | /* sinfo_assoc_id: sizeof (sctp_assoc_t) | 845 | /* sinfo_assoc_id: sizeof (sctp_assoc_t) |