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 <limits>
Include dependency graph for Parser.cc:

Go to the source code of this file.

Namespaces

namespace  ProxyProtocol
 
namespace  ProxyProtocol::One
 
namespace  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 ("\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A", 12)
 magic octet prefix for PROXY protocol version 2 More...
 

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors