Hi List

I'm currently attempting to extend Proxy Protocol v2 by a new TLV to
send a unique ID for TCP connections, similar to the unique-id-header
for HTTP.

I'm currently struggling to get the `struct stream` within
`make_proxy_line_v2`. I could find out that I can get the `struct
session` via `remote->owner`, but from there I have no idea how to get a
`struct stream`. By printing the allocations it appears that a stream
should already exist by the time the proxy line is sent.

So questions:
1. Would it generally work to send a unique ID within the proxy line or
will that cause issues?
2. How can I grab the `struct stream` from the `struct connection
remote` or more general: How can I get the correct `struct stream` from
within `make_proxy_line_v2`?

Best regards
Tim Düsterhus

Reply via email to