| 145 | } |
| 146 | |
| 147 | static inline int should_send_stream_proxy_protocol(const struct tcp_connection *c) |
| 148 | { |
| 149 | return c && c->rcv.bind_address && |
| 150 | (c->flags & F_CONN_ACCEPTED) == 0 && |
| 151 | (c->rcv.bind_address->flags & SI_PROXY_OUT) && |
| 152 | (c->flags & F_CONN_PROXY_OUT_SENT) == 0; |
| 153 | } |
| 154 | |
| 155 | int send_stream_proxy_protocol_v1(struct tcp_connection *c, int fd, |
| 156 | int write_timeout, int lock, const struct receive_info *ri, |
no outgoing calls
no test coverage detected