Functions | |
static const auto & | Magic () |
magic octet prefix for PROXY protocol version 1 More... | |
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) |
Function Documentation
◆ ExtractIp()
|
static |
Definition at line 64 of file Parser.cc.
References SBuf::c_str(), Ip::Address::GetHostByName(), CharacterSet::HEXDIG, and TexcHere.
Referenced by ParseAddresses().
◆ ExtractPort()
|
static |
Definition at line 82 of file Parser.cc.
References max(), port, Ip::Address::port(), and TexcHere.
Referenced by ParseAddresses().
◆ Magic()
◆ Parse()
|
static |
parses PROXY protocol v1 header from the buffer
Definition at line 123 of file Parser.cc.
References ProxyProtocol::Two::cmdProxy, CharacterSet::complement(), CharacterSet::CR, ProxyProtocol::Two::Magic(), ProxyProtocol::Two::ParseAddresses(), CharacterSet::rename(), Parser::Tokenizer::skip(), and TexcHere.
◆ ParseAddresses()
|
static |
Definition at line 99 of file Parser.cc.
References ExtractIp(), ExtractPort(), and TexcHere.
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products