summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-08-22 20:08:50 +0000
committertuexen <tuexen@FreeBSD.org>2014-08-22 20:08:50 +0000
commit5a4252e3c473170a493004da8e482390b54ddedd (patch)
tree300a64dfd6390b1eb5172ba04ae10a5d561e40cf /lib/libc/net
parent94e8309da0a98cd328fb5723308f6b1faaf4af51 (diff)
downloadFreeBSD-src-5a4252e3c473170a493004da8e482390b54ddedd.zip
FreeBSD-src-5a4252e3c473170a493004da8e482390b54ddedd.tar.gz
MFC r269481:
Add support for the SCTP_PKTDROP_SUPPORTED socket option and the corresponding sysctl variable. The default is off, since the specification is not an RFC yet.
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/sctp_sys_calls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c
index 1d6e191..6fd136e 100644
--- a/lib/libc/net/sctp_sys_calls.c
+++ b/lib/libc/net/sctp_sys_calls.c
@@ -359,6 +359,9 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size)
case SCTP_NRSACK_SUPPORTED:
((struct sctp_assoc_value *)arg)->assoc_id = id;
break;
+ case SCTP_PKTDROP_SUPPORTED:
+ ((struct sctp_assoc_value *)arg)->assoc_id = id;
+ break;
case SCTP_MAX_BURST:
((struct sctp_assoc_value *)arg)->assoc_id = id;
break;
OpenPOWER on IntegriCloud