core: socket options fix SCTP_NODELAY

SCTP_NODELAY is diffrent to TCP_NODELAY.
Apply proper options in case of SCTP.
This commit is contained in:
Susant Sahani
2015-12-31 12:05:57 +05:30
parent b485d2003e
commit 62bc4efc7a
2 changed files with 13 additions and 3 deletions
+4
View File
@@ -131,6 +131,10 @@
#define NETLINK_LIST_MEMBERSHIPS 9
#endif
#ifndef SOL_SCTP
#define SOL_SCTP 132
#endif
#if !HAVE_DECL_PIVOT_ROOT
static inline int pivot_root(const char *new_root, const char *put_old) {
return syscall(SYS_pivot_root, new_root, put_old);