Mercurial > hg > nginx
comparison auto/unix @ 7170:d747065c6a98
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 07 Dec 2017 17:09:33 +0300 |
parents | 716852cce913 |
children | d3235149d17f |
comparison
equal
deleted
inserted
replaced
7169:e8e19f5e0b8b | 7170:d747065c6a98 |
---|---|
352 ngx_feature_libs= | 352 ngx_feature_libs= |
353 ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0)" | 353 ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0)" |
354 . auto/feature | 354 . auto/feature |
355 | 355 |
356 | 356 |
357 # Linux transparent proxying | |
358 | |
359 ngx_feature="IP_TRANSPARENT" | |
360 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
361 ngx_feature_run=no | |
362 ngx_feature_incs="#include <sys/socket.h> | |
363 #include <netinet/in.h>" | |
364 ngx_feature_path= | |
365 ngx_feature_libs= | |
366 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_TRANSPARENT, NULL, 0)" | |
367 . auto/feature | |
368 | |
369 | |
370 # FreeBSD bind to any address for transparent proxying | |
371 | |
372 ngx_feature="IP_BINDANY" | |
373 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
374 ngx_feature_run=no | |
375 ngx_feature_incs="#include <sys/socket.h> | |
376 #include <netinet/in.h>" | |
377 ngx_feature_path= | |
378 ngx_feature_libs= | |
379 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0)" | |
380 . auto/feature | |
381 | |
382 | |
357 # Linux IP_BIND_ADDRESS_NO_PORT | 383 # Linux IP_BIND_ADDRESS_NO_PORT |
358 | 384 |
359 ngx_feature="IP_BIND_ADDRESS_NO_PORT" | 385 ngx_feature="IP_BIND_ADDRESS_NO_PORT" |
360 ngx_feature_name="NGX_HAVE_IP_BIND_ADDRESS_NO_PORT" | 386 ngx_feature_name="NGX_HAVE_IP_BIND_ADDRESS_NO_PORT" |
361 ngx_feature_run=no | 387 ngx_feature_run=no |
362 ngx_feature_incs="#include <sys/socket.h> | 388 ngx_feature_incs="#include <sys/socket.h> |
363 #include <netinet/in.h>" | 389 #include <netinet/in.h>" |
364 ngx_feature_path= | 390 ngx_feature_path= |
365 ngx_feature_libs= | 391 ngx_feature_libs= |
366 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0)" | 392 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0)" |
367 . auto/feature | |
368 | |
369 | |
370 # Linux transparent proxying | |
371 | |
372 ngx_feature="IP_TRANSPARENT" | |
373 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
374 ngx_feature_run=no | |
375 ngx_feature_incs="#include <sys/socket.h> | |
376 #include <netinet/in.h>" | |
377 ngx_feature_path= | |
378 ngx_feature_libs= | |
379 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_TRANSPARENT, NULL, 0)" | |
380 . auto/feature | |
381 | |
382 | |
383 # FreeBSD bind to any address for transparent proxying | |
384 | |
385 ngx_feature="IP_BINDANY" | |
386 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
387 ngx_feature_run=no | |
388 ngx_feature_incs="#include <sys/socket.h> | |
389 #include <netinet/in.h>" | |
390 ngx_feature_path= | |
391 ngx_feature_libs= | |
392 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0)" | |
393 . auto/feature | 393 . auto/feature |
394 | 394 |
395 | 395 |
396 # BSD way to get IPv4 datagram destination address | 396 # BSD way to get IPv4 datagram destination address |
397 | 397 |