MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / should_send_stream_proxy_protocol

Function should_send_stream_proxy_protocol

net/proxy_protocol.c:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static 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
155int send_stream_proxy_protocol_v1(struct tcp_connection *c, int fd,
156 int write_timeout, int lock, const struct receive_info *ri,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected