I am trying to run a software that uses SCTP socket communication on a recently purchased Jetson TX2 board. However, it does not work as the SCTP socket creation fails. I installed libsctp library and headers but it looks like the kernel does not have support for SCTP.
Could someone please tell if the kernel on Jetson TX2 has support for SCTP or if it is disabled, how to enable it.
I cannot tell for your case, but you can check which features are enabled in your running kernel with:
<b>gunzip -c /proc/config.gz | grep SCTP</b>
CONFIG_NF_CT_PROTO_SCTP=m
CONFIG_NF_NAT_PROTO_SCTP=m
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
# CONFIG_IP_VS_PROTO_SCTP is not set
# CONFIG_IP_SCTP is not set
Only the two first ones are available, as modules, you may load these with:
Thank you very much for replying. I also found that my kernel has only the those two modules as you mentioned and I loaded them with modprobe and checked with lsmod.
However, after that even if the sctp socket creation does not fail now, but sctp_recvmsg() gives error for “Bad file descriptor”. So, I may need to install the missing modules and build the kernel.
As I have never built kernel on the Jetson, could you please share some guidance or links on how to enable the missing features and build the kernel.