Welcome! Log In Create A New Profile

Advanced

[nginx] Enabled IPV6_RECVPKTINFO / IPV6_PKTINFO on macOS.

Sergey Kandaurov
April 17, 2017 07:46AM
details: http://hg.nginx.org/nginx/rev/9fb994513776
branches:
changeset: 6978:9fb994513776
user: Sergey Kandaurov <pluknet@nginx.com>
date: Mon Apr 17 14:42:12 2017 +0300
description:
Enabled IPV6_RECVPKTINFO / IPV6_PKTINFO on macOS.

This change allows setting the destination IPv6 address of a UDP datagram
received on a wildcard socket.

diffstat:

auto/os/darwin | 4 +++-
src/os/unix/ngx_darwin_config.h | 3 +++
2 files changed, 6 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r be5cfa918bfc -r 9fb994513776 auto/os/darwin
--- a/auto/os/darwin Tue Apr 11 03:13:46 2017 +0200
+++ b/auto/os/darwin Mon Apr 17 14:42:12 2017 +0300
@@ -17,6 +17,9 @@ ngx_spacer='
MAIN_LINK=
MODULE_LINK="-shared -Wl,-undefined,dynamic_lookup"

+CC_AUX_FLAGS="$CC_AUX_FLAGS -D__APPLE_USE_RFC_3542"
+
+
# kqueue

echo " + kqueue found"
@@ -86,7 +89,6 @@ ngx_feature_test="int kq;

# sendfile()

-CC_AUX_FLAGS="$CC_AUX_FLAGS"
ngx_feature="sendfile()"
ngx_feature_name="NGX_HAVE_SENDFILE"
ngx_feature_run=yes
diff -r be5cfa918bfc -r 9fb994513776 src/os/unix/ngx_darwin_config.h
--- a/src/os/unix/ngx_darwin_config.h Tue Apr 11 03:13:46 2017 +0200
+++ b/src/os/unix/ngx_darwin_config.h Mon Apr 17 14:42:12 2017 +0300
@@ -9,6 +9,9 @@
#define _NGX_DARWIN_CONFIG_H_INCLUDED_


+#define __APPLE_USE_RFC_3542 /* IPV6_PKTINFO */
+
+
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Enabled IPV6_RECVPKTINFO / IPV6_PKTINFO on macOS.

Sergey Kandaurov 1093 April 17, 2017 07:46AM



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

Online Users

Guests: 160
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