stub_libip.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
10#include "Store.h"
11
12#define STUB_API "ip/libip.la"
13#include "tests/STUB.h"
14
15#include "ip/Address.h"
16Ip::Address::Address(const struct in_addr &) STUB
17Ip::Address::Address(const struct sockaddr_in &) STUB
18Ip::Address::Address(const struct in6_addr &) STUB
19Ip::Address::Address(const struct sockaddr_in6 &) STUB
20Ip::Address::Address(const struct hostent &) STUB
21Ip::Address::Address(const struct addrinfo &) STUB
22Ip::Address::Address(const char*) STUB
23Ip::Address& Ip::Address::operator =(struct sockaddr_in const &) STUB_RETVAL(*this)
24Ip::Address& Ip::Address::operator =(struct sockaddr_storage const &) STUB_RETVAL(*this)
25Ip::Address& Ip::Address::operator =(struct in_addr const &) STUB_RETVAL(*this)
26Ip::Address& Ip::Address::operator =(struct in6_addr const &) STUB_RETVAL(*this)
27Ip::Address& Ip::Address::operator =(struct sockaddr_in6 const &) STUB_RETVAL(*this)
28bool Ip::Address::operator =(const struct hostent &) STUB_RETVAL(false)
29bool Ip::Address::operator =(const struct addrinfo &) STUB_RETVAL(false)
30bool Ip::Address::operator =(const char *) STUB_RETVAL(false)
31bool Ip::Address::operator ==(Ip::Address const &) const STUB_RETVAL(false)
32bool Ip::Address::operator !=(Ip::Address const &) const STUB_RETVAL(false)
33bool Ip::Address::operator >=(Ip::Address const &) const STUB_RETVAL(false)
34bool Ip::Address::operator <=(Ip::Address const &) const STUB_RETVAL(false)
35bool Ip::Address::operator >(Ip::Address const &) const STUB_RETVAL(false)
36bool Ip::Address::operator <(Ip::Address const &) const STUB_RETVAL(false)
37bool Ip::Address::isIPv4() const STUB_RETVAL(false)
38bool Ip::Address::isIPv6() const STUB_RETVAL(false)
39bool Ip::Address::isSockAddr() const STUB_RETVAL(false)
40bool Ip::Address::isAnyAddr() const STUB_RETVAL(false)
41bool Ip::Address::isNoAddr() const STUB_RETVAL(false)
42bool Ip::Address::isLocalhost() const STUB_RETVAL(false)
43bool Ip::Address::isSiteLocal6() const STUB_RETVAL(false)
44bool Ip::Address::isSiteLocalAuto() const STUB_RETVAL(false)
45unsigned short Ip::Address::port() const STUB
46unsigned short Ip::Address::port(unsigned short) STUB
47void Ip::Address::setAnyAddr() STUB
48void Ip::Address::setNoAddr() STUB
49void Ip::Address::setLocalhost() STUB
50void Ip::Address::setEmpty() STUB_NOP // NOP for default constructor
51bool Ip::Address::setIPv4() STUB_RETVAL(false)
52int Ip::Address::cidr() const STUB_RETVAL(0)
53int Ip::Address::applyMask(const Ip::Address &) STUB_RETVAL(0)
54bool Ip::Address::applyMask(const unsigned int, int) STUB_RETVAL(false)
55void Ip::Address::applyClientMask(const Ip::Address &) STUB
56char* Ip::Address::toStr(char *, const unsigned int, int) const STUB_RETVAL(nullptr)
57char* Ip::Address::toUrl(char *, unsigned int) const STUB_RETVAL(nullptr)
58unsigned int Ip::Address::toHostStr(char *, const unsigned int) const STUB_RETVAL(0)
59bool Ip::Address::fromHost(const char *) STUB_RETVAL(false)
60bool Ip::Address::getReverseString(char [MAX_IPSTRLEN], int) const STUB_RETVAL(false)
61int Ip::Address::matchIPAddr(const Ip::Address &) const STUB_RETVAL(0)
62int Ip::Address::compareWhole(const Ip::Address &) const STUB_RETVAL(0)
63void Ip::Address::getAddrInfo(struct addrinfo *&, int) const STUB
64void Ip::Address::FreeAddr(struct addrinfo *&) STUB
65void Ip::Address::InitAddr(struct addrinfo *&) STUB
66bool Ip::Address::GetHostByName(const char *) STUB_RETVAL(false)
67void Ip::Address::getSockAddr(struct sockaddr_storage &, const int) const STUB
68void Ip::Address::getSockAddr(struct sockaddr_in &) const STUB
69bool Ip::Address::getInAddr(struct in_addr &) const STUB_RETVAL(false)
70void Ip::Address::getSockAddr(struct sockaddr_in6 &) const STUB
71void Ip::Address::getInAddr(struct in6_addr &) const STUB
72void parse_IpAddress_list_token(Ip::Address_list **, char *) STUB
73
74//#include "ip/forward.h"
75
76#include "ip/QosConfig.h"
81void Ip::Qos::getTosFromServer(const Comm::ConnectionPointer &, fde *) STUB
83bool Ip::Qos::setNfConnmark(Comm::ConnectionPointer &, const ConnectionDirection, const Ip::NfMarkConfig &) STUB_RETVAL(false)
84int Ip::Qos::doTosLocalMiss(const Comm::ConnectionPointer &, const hier_code) STUB_RETVAL(-1)
88int Ip::Qos::setSockTos(const Comm::ConnectionPointer &, tos_t) STUB_RETVAL(-1)
89int Ip::Qos::setSockTos(const int, tos_t, int) STUB_RETVAL(-1)
91int Ip::Qos::setSockNfmark(const int, nfmark_t) STUB_RETVAL(-1)
92Ip::Qos::Config::Config() STUB_NOP
93void Ip::Qos::Config::parseConfigLine() STUB
94void Ip::Qos::Config::dumpConfigLine(char *, const char *) const STUB
95bool Ip::Qos::Config::isAclNfmarkActive() const STUB_RETVAL(false)
96bool Ip::Qos::Config::isAclTosActive() const STUB_RETVAL(false)
97Ip::Qos::Config Ip::Qos::TheConfig;
98
99#include "ip/Intercept.h"
101bool Ip::Intercept::ProbeForTproxy(Ip::Address &) STUB_RETVAL(false)
102void Ip::Intercept::StartTransparency() STUB
103void Ip::Intercept::StopTransparency(const char *) STUB
104void Ip::Intercept::StartInterception() STUB
105Ip::Intercept Ip::Interceptor;
106
107#include "ip/NfMarkConfig.h"
110std::ostream &Ip::operator <<(std::ostream &os, Ip::NfMarkConfig) STUB_RETVAL(os)
111
112#include "ip/tools.h"
114int Ip::EnableIpv6 = 0;
115
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_NOP
Definition: STUB.h:37
#define STUB_RETSTATREF(x)
Definition: STUB.h:54
#define STUB_RETVAL(x)
Definition: STUB.h:41
class SquidConfig Config
Definition: SquidConfig.cc:12
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:320
Address & operator=(struct sockaddr_in const &s)
Definition: Address.cc:430
bool LookupNat(const Comm::Connection &)
perform NAT lookups for the local address of the given connection
Definition: Intercept.cc:382
a netfilter mark/mask pair
Definition: NfMarkConfig.h:23
static NfMarkConfig Parse(const SBuf &token)
parses a token and returns an object, expects a "mark[/mask]" format
Definition: NfMarkConfig.cc:32
nfmark_t applyToMark(nfmark_t m) const
Definition: NfMarkConfig.cc:46
Definition: SBuf.h:94
~acl_tos()
Definition: QosConfig.cc:28
Definition: fde.h:52
static int port
Definition: ldap_backend.cc:70
hier_code
Definition: hier_code.h:12
void parse_IpAddress_list_token(Ip::Address_list **, char *)
#define MAX_IPSTRLEN
Length of buffer that needs to be allocated to old a null-terminated IP-string.
Definition: forward.h:25
unsigned char tos_t
Definition: forward.h:27
uint32_t nfmark_t
Definition: forward.h:26
Config TheConfig
Definition: Config.cc:16
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:28
void getTosFromServer(const Comm::ConnectionPointer &server, fde *clientFde)
Definition: QosConfig.cc:43
bool setNfConnmark(Comm::ConnectionPointer &conn, const ConnectionDirection connDir, const NfMarkConfig &cm)
Definition: QosConfig.cc:181
ConnectionDirection
Possible Squid roles in connection handling.
Definition: QosConfig.h:68
int doNfmarkLocalHit(const Comm::ConnectionPointer &conn)
Definition: QosConfig.cc:275
int doTosLocalMiss(const Comm::ConnectionPointer &conn, const hier_code hierCode)
Definition: QosConfig.cc:226
int setSockTos(const Comm::ConnectionPointer &conn, tos_t tos)
Definition: QosConfig.cc:570
int doNfmarkLocalMiss(const Comm::ConnectionPointer &conn, const hier_code hierCode)
Definition: QosConfig.cc:247
int doTosLocalHit(const Comm::ConnectionPointer &conn)
Definition: QosConfig.cc:268
int setSockNfmark(const Comm::ConnectionPointer &conn, nfmark_t mark)
Definition: QosConfig.cc:602
nfmark_t getNfConnmark(const Comm::ConnectionPointer &conn, const ConnectionDirection connDir)
Definition: QosConfig.cc:146
Definition: Xaction.cc:139
void ProbeTransport(void)
Probe to discover IPv6 capabilities.
STL namespace.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors