lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 7 Jul 2014 08:56:06 +0000
From:	David Laight <David.Laight@...LAB.COM>
To:	David Laight <David.Laight@...LAB.COM>,
	'Daniel Borkmann' <dborkman@...hat.com>,
	"davem@...emloft.net" <davem@...emloft.net>
CC:	"geirola@...il.com" <geirola@...il.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"linux-sctp@...r.kernel.org" <linux-sctp@...r.kernel.org>
Subject: RE: [PATCH net-next 3/5] net: sctp: implement rfc6458, 5.3.5.
 SCTP_RCVINFO cmsg support

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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists