]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sctp: #ifdef INET-only and INET6-only variables.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)
committerMichael Tuexen <tuexen@FreeBSD.org>
Wed, 1 Feb 2023 22:38:50 +0000 (23:38 +0100)
commit6e756956ced50d30ec5ca433373de4d7a7c58d3c
tree4216cbb042e45f1b7b5ffacac699e64330c22224
parent40a79f26978b54f48955c7f208c5c34ab28969d7
sctp: #ifdef INET-only and INET6-only variables.

Duplicating the SCTP_PCB_FLAGS_BOUND_V6 check made the #ifdef's
simpler than applying #ifdef's directly to the original code.  Modern
compilers should cache the result rather than testing the flag twice.

(cherry picked from commit 29a843177e108c688d7daaccac6ada4d16f01dca)
sys/netinet/sctp_sysctl.c