Welcome! Log In Create A New Profile

Advanced

[nginx] Configure: moved IP_BIND_ADDRESS_NO_PORT test.

Maxim Dounin
December 07, 2017 09:14AM
details: http://hg.nginx.org/nginx/rev/d747065c6a98
branches:
changeset: 7170:d747065c6a98
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Dec 07 17:09:33 2017 +0300
description:
Configure: moved IP_BIND_ADDRESS_NO_PORT test.

In 2c7b488a61fb, IP_BIND_ADDRESS_NO_PORT test was accidentally placed
between SO_BINDANY, IP_TRANSPARENT, and IP_BINDANY tests. Moved it after
these tests.

diffstat:

auto/unix | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)

diffs (43 lines):

diff --git a/auto/unix b/auto/unix
--- a/auto/unix
+++ b/auto/unix
@@ -354,19 +354,6 @@ ngx_feature_test="setsockopt(0, SOL_SOCK
. auto/feature


-# Linux IP_BIND_ADDRESS_NO_PORT
-
-ngx_feature="IP_BIND_ADDRESS_NO_PORT"
-ngx_feature_name="NGX_HAVE_IP_BIND_ADDRESS_NO_PORT"
-ngx_feature_run=no
-ngx_feature_incs="#include <sys/socket.h>
- #include <netinet/in.h>"
-ngx_feature_path=
-ngx_feature_libs=
-ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0)"
-. auto/feature
-
-
# Linux transparent proxying

ngx_feature="IP_TRANSPARENT"
@@ -393,6 +380,19 @@ ngx_feature_test="setsockopt(0, IPPROTO_
. auto/feature


+# Linux IP_BIND_ADDRESS_NO_PORT
+
+ngx_feature="IP_BIND_ADDRESS_NO_PORT"
+ngx_feature_name="NGX_HAVE_IP_BIND_ADDRESS_NO_PORT"
+ngx_feature_run=no
+ngx_feature_incs="#include <sys/socket.h>
+ #include <netinet/in.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0)"
+. auto/feature
+
+
# BSD way to get IPv4 datagram destination address

ngx_feature="IP_RECVDSTADDR"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Configure: moved IP_BIND_ADDRESS_NO_PORT test.

Maxim Dounin 527 December 07, 2017 09:14AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready