Welcome! Log In Create A New Profile

Advanced

Re: $binary_remote_addr byte order (big-endian guaranteed?)

Maxim Dounin
November 05, 2010 08:14AM
Hello!

On Fri, Nov 05, 2010 at 04:06:44AM -0400, helen wrote:

> In what format is $binary_remote_addr? Test shows network byte order
> (big-endian), but is that guaranteed?

It's remote address as returned by accept(), either s_addr for
ipv4 or s6_addr for ipv6. Both are guaranteed to be in network
byte order[1]. Value for unix socket connections is unspecified.

[1] http://www.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html

> English wiki doesn't say, and my Russian leaves much to be desired.

Use the Source, Luke! ;)

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

$binary_remote_addr byte order (big-endian guaranteed?)

helen November 05, 2010 04:06AM

Re: $binary_remote_addr byte order (big-endian guaranteed?)

Maxim Dounin November 05, 2010 08:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready