Mercurial > hg > nginx
comparison src/os/unix/ngx_udp_sendmsg_chain.c @ 7019:8ce1a34f160b
Style.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 01 Jun 2017 16:49:14 +0300 |
parents | dbb0c854e308 |
children | d127837c714f |
comparison
equal
deleted
inserted
replaced
7018:610a219b28f6 | 7019:8ce1a34f160b |
---|---|
204 struct msghdr msg; | 204 struct msghdr msg; |
205 | 205 |
206 #if (NGX_HAVE_MSGHDR_MSG_CONTROL) | 206 #if (NGX_HAVE_MSGHDR_MSG_CONTROL) |
207 | 207 |
208 #if (NGX_HAVE_IP_SENDSRCADDR) | 208 #if (NGX_HAVE_IP_SENDSRCADDR) |
209 u_char msg_control[CMSG_SPACE(sizeof(struct in_addr))]; | 209 u_char msg_control[CMSG_SPACE(sizeof(struct in_addr))]; |
210 #elif (NGX_HAVE_IP_PKTINFO) | 210 #elif (NGX_HAVE_IP_PKTINFO) |
211 u_char msg_control[CMSG_SPACE(sizeof(struct in_pktinfo))]; | 211 u_char msg_control[CMSG_SPACE(sizeof(struct in_pktinfo))]; |
212 #endif | 212 #endif |
213 | 213 |
214 #if (NGX_HAVE_INET6 && NGX_HAVE_IPV6_RECVPKTINFO) | 214 #if (NGX_HAVE_INET6 && NGX_HAVE_IPV6_RECVPKTINFO) |
215 u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; | 215 u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; |
216 #endif | 216 #endif |
217 | 217 |
218 #endif | 218 #endif |
219 | 219 |
220 ngx_memzero(&msg, sizeof(struct msghdr)); | 220 ngx_memzero(&msg, sizeof(struct msghdr)); |