masaori335 opened a new pull request #7331:
URL: https://github.com/apache/trafficserver/pull/7331


   This is a preparation for PROXY Protocol v2 support.
   
   1). Make parser interface version-neutral
     - the public function is named `proxy_protocol_parse()` and it switches 
parsers based on the preface.
   
   2). Cleanup NetVConnection & ProxyProtocol
     - `NetVConnection::ProxyProtocol` -> `ProxyProtocol`
     -  `bool http_has_proxy_v1(IOBufferReader *, NetVConnection *)` 
       -> `bool NetVConnection::has_proxy_protocol(IOBufferReader *reader)`
     - `bool ssl_has_proxy_v1(NetVConnection *sslvc, char *buffer, int64_t 
*bytes_r)` 
       -> `bool NetVConnection::has_proxy_protocol(char *buffer, int64_t 
*bytes_r)`
     - Make `NetVConnection::pp_info` private
   
   ## Links
   
   - AuTest is #7326 
   - Unit Test is coming in another PR.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to