diff options
author | Ivan Skytte Jorgensen <isj-sctp@i1.dk> | 2005-10-28 18:10:00 -0400 |
---|---|---|
committer | Sridhar Samudrala <sri@us.ibm.com> | 2005-10-28 18:10:00 -0400 |
commit | eaa5c54dbec70e2a93d6ed412bb589bbf9c90a17 (patch) | |
tree | 4047a75f7f74d978bad9c4862afbd47c8cda595a /net/sctp/ulpevent.c | |
parent | 741b2252a5e14d6c60a913c77a6099abe73a854a (diff) |
[SCTP] Rename SCTP specific control message flags.
Rename SCTP specific control message flags to use SCTP_ prefix rather than
MSG_ prefix as per the latest sctp sockets API draft.
Signed-off-by: Ivan Skytte Jorgensen <isj-sctp@i1.dk>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
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) |