Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
089d83fb
Commit
089d83fb
authored
Oct 10, 2018
by
Dag-Erling Smørgrav
Browse files
Merge upstream r4932: turn so-reuseport option off by default.
parent
0a0da7dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
config.h.in
View file @
089d83fb
...
...
@@ -663,6 +663,9 @@
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* if REUSEPORT is enabled by default */
#undef REUSEPORT_DEFAULT
/* default rootkey location */
#undef ROOT_ANCHOR_FILE
...
...
configure
View file @
089d83fb
...
...
@@ -15966,6 +15966,17 @@ fi
done
# check if we can use SO_REUSEPORT
if echo "$host" | grep -i -e linux -e dragonfly >/dev/null; then
$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
else
$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
fi
# set memory allocation checking if requested
# Check whether --enable-alloc-checks was given.
if test "${enable_alloc_checks+set}" = set; then :
...
...
configure.ac
View file @
089d83fb
...
...
@@ -461,6 +461,13 @@ ACX_CHECK_NONBLOCKING_BROKEN
ACX_MKDIR_ONE_ARG
AC_CHECK_FUNCS([strptime],[AC_CHECK_STRPTIME_WORKS],[AC_LIBOBJ([strptime])])
# check if we can use SO_REUSEPORT
if echo "$host" | grep -i -e linux -e dragonfly >/dev/null; then
AC_DEFINE(REUSEPORT_DEFAULT, 1, [if REUSEPORT is enabled by default])
else
AC_DEFINE(REUSEPORT_DEFAULT, 0, [if REUSEPORT is enabled by default])
fi
# set memory allocation checking if requested
AC_ARG_ENABLE(alloc-checks, AC_HELP_STRING([--enable-alloc-checks],
[ enable to memory allocation statistics, for debug purposes ]),
...
...
util/config_file.c
View file @
089d83fb
...
...
@@ -177,7 +177,7 @@ config_create(void)
cfg
->
if_automatic
=
0
;
cfg
->
so_rcvbuf
=
0
;
cfg
->
so_sndbuf
=
0
;
cfg
->
so_reuseport
=
1
;
cfg
->
so_reuseport
=
REUSEPORT_DEFAULT
;
cfg
->
ip_transparent
=
0
;
cfg
->
ip_freebind
=
0
;
cfg
->
num_ifs
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment