summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_structs.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2011-09-14 08:15:21 +0000
committertuexen <tuexen@FreeBSD.org>2011-09-14 08:15:21 +0000
commiteab7de0c8f2e020f13c85e1f6c4169d552b72d8e (patch)
treebfbae5e50e0ce4c3b8e5ca776cf5fb38b53e8bf9 /sys/netinet/sctp_structs.h
parent8494658150198f84d6b4f924e45deb4918496bb3 (diff)
downloadFreeBSD-src-eab7de0c8f2e020f13c85e1f6c4169d552b72d8e.zip
FreeBSD-src-eab7de0c8f2e020f13c85e1f6c4169d552b72d8e.tar.gz
Fix the handling of the flowlabel and DSCP value in the SCTP_PEER_ADDR_PARAMS
socket option. Honor the net.inet6.ip6.auto_flowlabel sysctl setting. Approved by: re (bz) MFC after: 1 month.
Diffstat (limited to 'sys/netinet/sctp_structs.h')
-rw-r--r--sys/netinet/sctp_structs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/sctp_structs.h b/sys/netinet/sctp_structs.h
index 362f9cb..c7dee69 100644
--- a/sys/netinet/sctp_structs.h
+++ b/sys/netinet/sctp_structs.h
@@ -321,7 +321,9 @@ struct sctp_nets {
uint32_t fast_recovery_tsn;
uint32_t heartbeat_random1;
uint32_t heartbeat_random2;
+#ifdef INET6
uint32_t flowlabel;
+#endif
uint8_t dscp;
struct timeval start_time; /* time when this net was created */
@@ -987,7 +989,9 @@ struct sctp_association {
uint32_t sb_send_resv; /* amount reserved on a send */
uint32_t my_rwnd_control_len; /* shadow of sb_mbcnt used for rwnd
* control */
+#ifdef INET6
uint32_t default_flowlabel;
+#endif
uint32_t pr_sctp_cnt;
int ctrl_queue_cnt; /* could be removed REM - NO IT CAN'T!! RRS */
/*
OpenPOWER on IntegriCloud