Mercurial > hg > nginx
comparison src/event/ngx_event_udp.h @ 9008:ce6d9cf0f567 quic
Merged with the default branch.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 14 Feb 2022 10:14:07 +0300 |
parents | e7a2d3914877 0f6cc8f73744 |
children | c2f5d79cde64 |
comparison
equal
deleted
inserted
replaced
9007:2dc4203d812c | 9008:ce6d9cf0f567 |
---|---|
17 #if ((NGX_HAVE_MSGHDR_MSG_CONTROL) \ | 17 #if ((NGX_HAVE_MSGHDR_MSG_CONTROL) \ |
18 && (NGX_HAVE_IP_SENDSRCADDR || NGX_HAVE_IP_RECVDSTADDR \ | 18 && (NGX_HAVE_IP_SENDSRCADDR || NGX_HAVE_IP_RECVDSTADDR \ |
19 || NGX_HAVE_IP_PKTINFO \ | 19 || NGX_HAVE_IP_PKTINFO \ |
20 || (NGX_HAVE_INET6 && NGX_HAVE_IPV6_RECVPKTINFO))) | 20 || (NGX_HAVE_INET6 && NGX_HAVE_IPV6_RECVPKTINFO))) |
21 #define NGX_HAVE_ADDRINFO_CMSG 1 | 21 #define NGX_HAVE_ADDRINFO_CMSG 1 |
22 | |
22 #endif | 23 #endif |
23 | 24 |
24 | 25 |
25 typedef struct { | 26 typedef struct { |
26 ngx_buf_t *buffer; | 27 ngx_buf_t *buffer; |
58 ngx_int_t ngx_get_srcaddr_cmsg(struct cmsghdr *cmsg, | 59 ngx_int_t ngx_get_srcaddr_cmsg(struct cmsghdr *cmsg, |
59 struct sockaddr *local_sockaddr); | 60 struct sockaddr *local_sockaddr); |
60 | 61 |
61 #endif | 62 #endif |
62 | 63 |
63 | |
64 void ngx_event_recvmsg(ngx_event_t *ev); | 64 void ngx_event_recvmsg(ngx_event_t *ev); |
65 ssize_t ngx_sendmsg(ngx_connection_t *c, struct msghdr *msg, int flags); | 65 ssize_t ngx_sendmsg(ngx_connection_t *c, struct msghdr *msg, int flags); |
66 void ngx_udp_rbtree_insert_value(ngx_rbtree_node_t *temp, | 66 void ngx_udp_rbtree_insert_value(ngx_rbtree_node_t *temp, |
67 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel); | 67 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel); |
68 void ngx_insert_udp_connection(ngx_connection_t *c, ngx_udp_connection_t *udp, | 68 void ngx_insert_udp_connection(ngx_connection_t *c, ngx_udp_connection_t *udp, |