On Tue, May 22, 2018 at 09:42:08AM +0200, Andreas Fink wrote: > > > > On 22 May 2018, at 09:22, Xin Long <lucien.xin@xxxxxxxxx> wrote: > > > > On Tue, May 22, 2018 at 2:23 PM, Andreas Fink <afink@xxxxxxxxxxxxx> wrote: > >> On Debian9 Stretch > >> > >> the > >> struct sctp_sndinfo send_info; > >> > >> seems not to be defined in > >> > >> netinet/sctp.h > >> > >> it seems however be defined in > >> > >> linux/sctp.h > >> > >> but including both headers results in tons of redefinitions. > >> > >> Also the definition of sctp_sendv is not found anywhere. > >> > >> > >> Whats the proper approach to use sctp_sndinfo for sctp_sendv() in this case? > > Normally, you should use netinet/sctp.h, which is from lksctp-tools and > > copying from linux/sctp.h to make the header file for the released kernel > > consistent with the uapi in lksctp-tools. > > > > But if you update the kernel manually, the lksctp-tools should also be > > updated. if Debian doesn't provide the newer version lksctp-tools, you > > can go to upstream and build one: > > https://github.com/sctp/lksctp-tools.git > > > > BTW, sctp_sendv/recvv are supported since kernel 4.16, before > > using it, make sure your kernel version is above 4.16. > > Ok debian comes with Kernel 4.9. That explains things. > So I have to do use the old calls under Linux. Amending, "... use the old calls under old Linux." :-) Marcelo -- 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