RE: [PATCH net-next 3/5] net: sctp: implement rfc6458, 5.3.5. SCTP_RCVINFO cmsg support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: David Laight
...
> > +	memset(&rinfo, 0, sizeof(struct sctp_rcvinfo));
> > +	rinfo.rcv_sid = event->stream;
> > +	rinfo.rcv_ssn = event->ssn;
> > +	rinfo.rcv_ppid = event->ppid;
> > +	rinfo.rcv_flags = event->flags;
> > +	rinfo.rcv_tsn = event->tsn;
> > +	rinfo.rcv_cumtsn = event->cumtsn;
> > +	rinfo.rcv_assoc_id = sctp_assoc2id(event->asoc);
> > +	rinfo.rcv_context = event->asoc->default_rcv_context;
> > +
> > +	put_cmsg(msghdr, IPPROTO_SCTP, SCTP_RCVINFO,
> > +		 sizeof(rinfo), &rinfo);
> > +}
> 
> This gets called for every receive data chunk (since the user needs to
> verify the ssn and stream).

Clearly I meant ppid and stream :-(

	David



--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux