Parser.cc File Reference
#include "squid.h"
#include "parser/BinaryTokenizer.h"
#include "parser/Tokenizer.h"
#include "proxyp/Elements.h"
#include "proxyp/Header.h"
#include "proxyp/Parser.h"
#include "sbuf/Stream.h"
#include <algorithm>
Include dependency graph for Parser.cc:

Go to the source code of this file.

Namespaces

 ProxyProtocol
 
 ProxyProtocol::One
 
 ProxyProtocol::Two
 

Functions

static Parsed ProxyProtocol::One::Parse (const SBuf &buf)
 extracts PROXY protocol v1 header from the given buffer More...
 
static void ProxyProtocol::One::ExtractIp (Parser::Tokenizer &tok, Ip::Address &addr)
 
static void ProxyProtocol::One::ExtractPort (Parser::Tokenizer &tok, Ip::Address &addr, const bool trailingSpace)
 
static void ProxyProtocol::One::ParseAddresses (Parser::Tokenizer &tok, Header::Pointer &header)
 
static Parsed ProxyProtocol::Two::Parse (const SBuf &buf)
 extracts PROXY protocol v2 header from the given buffer More...
 
static void ProxyProtocol::Two::ParseAddresses (const uint8_t family, Parser::BinaryTokenizer &tok, Header::Pointer &header)
 
static void ProxyProtocol::Two::ParseTLVs (Parser::BinaryTokenizer &tok, Header::Pointer &header)
 

Variables

static const SBuf ProxyProtocol::One::Magic ("PROXY", 5)
 magic octet prefix for PROXY protocol version 1 More...
 
static const SBuf ProxyProtocol::Two::Magic ("\D\A\D\A\0\D\A\1\5\9\4\A", 12)
 magic octet prefix for PROXY protocol version 2 More...
 

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors