nxt_listen_socket.c (312:c156aea91063) nxt_listen_socket.c (359:d4848619451a)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 163 unchanged lines hidden (view full) ---

172
173 thr->log = old;
174
175 return NXT_ERROR;
176}
177
178
179void
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 163 unchanged lines hidden (view full) ---

172
173 thr->log = old;
174
175 return NXT_ERROR;
176}
177
178
179void
180nxt_listen_socket_remote_size(nxt_listen_socket_t *ls, nxt_sockaddr_t *sa)
180nxt_listen_socket_remote_size(nxt_listen_socket_t *ls)
181{
181{
182 switch (sa->u.sockaddr.sa_family) {
182 switch (ls->sockaddr->u.sockaddr.sa_family) {
183
184#if (NXT_INET6)
185
186 case AF_INET6:
187 ls->socklen = sizeof(struct sockaddr_in6);
188 ls->address_length = NXT_INET6_ADDR_STR_LEN;
189
190 break;

--- 119 unchanged lines hidden ---
183
184#if (NXT_INET6)
185
186 case AF_INET6:
187 ls->socklen = sizeof(struct sockaddr_in6);
188 ls->address_length = NXT_INET6_ADDR_STR_LEN;
189
190 break;

--- 119 unchanged lines hidden ---