diff options
author | James Brown <jbrown@easypost.com> | 2016-03-14 14:45:36 -0700 |
---|---|---|
committer | James Brown <jbrown@easypost.com> | 2017-01-31 10:18:02 -0800 |
commit | 99e9d0949f6439851f8a7519e9200be257ce4bed (patch) | |
tree | 0cea5ebad5ad4ae0eb851a80fb9ec02485e20892 /proto | |
parent | 089abc941c6ec619cb012316dd94356d5ef47ea7 (diff) | |
download | uwsgi-99e9d0949f6439851f8a7519e9200be257ce4bed.tar.gz |
update comments
Diffstat (limited to 'proto')
-rw-r--r-- | proto/http.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/proto/http.c b/proto/http.c index 7f287674..b48d902b 100644 --- a/proto/http.c +++ b/proto/http.c @@ -337,14 +337,12 @@ static int http_parse(struct wsgi_request *wsgi_req, char *watermark) { /* check if it's an IPv6-mapped-IPv4 address and, if so, * represent it as an IPv4 address * - * Note: This macro isn't in any version of the POSIX - * spec that I've found, but it's implemented on BSD, - * Linux, and OS X. + * these IPv6 macros are defined in POSIX.1-2001. */ if (IN6_IS_ADDR_V4MAPPED(&http_sin->sin6_addr)) { /* just grab the last 4 bytes and pretend they're - * IPv4. Linux has a convenience wrapped to get the - * componenets word-wise, but OS X/BSD do not. + * IPv4. None of the word/half-word convenience + * functions are in POSIX, so just stick to .s6_addr */ uint32_t in4_addr = ((uint32_t*)http_sin->sin6_addr.s6_addr)[3]; if (inet_ntop(AF_INET, (void*)&in4_addr, ip, INET_ADDRSTRLEN)) { |