diff options
author | rrs <rrs@FreeBSD.org> | 2008-07-31 11:08:30 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2008-07-31 11:08:30 +0000 |
commit | 7818f3ed80d17fe337ebaa5b51ecf26b785c41c7 (patch) | |
tree | 0e033aa257d8146537bb1dea4adc81527d15a2ef /sys/netinet/sctp_var.h | |
parent | b8596e4794a3aeb4fb1425b04700669f545743de (diff) | |
download | FreeBSD-src-7818f3ed80d17fe337ebaa5b51ecf26b785c41c7.zip FreeBSD-src-7818f3ed80d17fe337ebaa5b51ecf26b785c41c7.tar.gz |
Adds support for the SCTP_PORT_REUSE option
Fixes a refcount bug found in the process
Obtained from: With the help of Michael Tuexen
Diffstat (limited to 'sys/netinet/sctp_var.h')
-rw-r--r-- | sys/netinet/sctp_var.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h index 3ef801c..77f2ceb 100644 --- a/sys/netinet/sctp_var.h +++ b/sys/netinet/sctp_var.h @@ -45,9 +45,10 @@ extern struct pr_usrreqs sctp_usrreqs; #define sctp_feature_on(inp, feature) (inp->sctp_features |= feature) #define sctp_feature_off(inp, feature) (inp->sctp_features &= ~feature) -#define sctp_is_feature_on(inp, feature) (inp->sctp_features & feature) +#define sctp_is_feature_on(inp, feature) ((inp->sctp_features & feature) == feature) #define sctp_is_feature_off(inp, feature) ((inp->sctp_features & feature) == 0) + /* managing mobility_feature in inpcb (by micchie) */ #define sctp_mobility_feature_on(inp, feature) (inp->sctp_mobility_features |= feature) #define sctp_mobility_feature_off(inp, feature) (inp->sctp_mobility_features &= ~feature) |