Functions | |
static Parsed | Parse (const SBuf &buf) |
extracts PROXY protocol v1 header from the given buffer More... | |
static void | ExtractIp (Parser::Tokenizer &tok, Ip::Address &addr) |
static void | ExtractPort (Parser::Tokenizer &tok, Ip::Address &addr, const bool trailingSpace) |
static void | ParseAddresses (Parser::Tokenizer &tok, Header::Pointer &header) |
Variables | |
static const SBuf | Magic ("PROXY", 5) |
magic octet prefix for PROXY protocol version 1 More... | |
Function Documentation
◆ ExtractIp()
|
static |
Definition at line 54 of file Parser.cc.
References SBuf::c_str(), Ip::Address::GetHostByName(), CharacterSet::HEXDIG, and TexcHere.
Referenced by ParseAddresses().
◆ ExtractPort()
|
static |
Definition at line 72 of file Parser.cc.
References max(), port, Ip::Address::port(), and TexcHere.
Referenced by ParseAddresses().
◆ Parse()
|
static |
parses PROXY protocol v1 header from the buffer
Definition at line 113 of file Parser.cc.
References ProxyProtocol::Two::cmdProxy, CharacterSet::complement(), CharacterSet::CR, SBuf::length(), ProxyProtocol::Two::Magic, ProxyProtocol::Two::ParseAddresses(), CharacterSet::rename(), Parser::Tokenizer::skip(), and TexcHere.
◆ ParseAddresses()
|
static |
Definition at line 89 of file Parser.cc.
References ExtractIp(), ExtractPort(), and TexcHere.
Variable Documentation
◆ Magic
|
static |