stub_libip.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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/QosConfig.h"
16 namespace Ip
17 {
18 namespace Qos
19 {
20 void getTosFromServer(fde *, const int) {
21 #if USE_QOS_TOS
22  STUB
23 #endif
24 }
25 void getNfmarkFromServer(const fde *, const fde *, const int) {
26 #if USE_QOS_NFMARK
27  STUB
28 #endif
29 }
30 #if USE_QOS_NFMARK
31 int GetNfMarkCallback(enum nf_conntrack_msg_type, struct nf_conntrack *, void *) STUB_RETVAL(-1)
32 #endif
35 int doTosLocalHit(const int) STUB_RETVAL(-1)
36 int doNfmarkLocalHit(const int) STUB_RETVAL(-1)
37 void parseConfigLine() STUB
38 void dumpConfigLine(char *, const char *) STUB
39 
40 Config::Config() {STUB}
42 bool Config::isAclTosActive() const STUB_RETVAL(false)
43 }
44 }
45 
int doTosLocalMiss(const Comm::ConnectionPointer &conn, const hier_code hierCode)
Definition: QosConfig.cc:226
void getTosFromServer(const Comm::ConnectionPointer &server, fde *clientFde)
Definition: QosConfig.cc:43
unsigned char tos_t
Definition: forward.h:27
Definition: fde.h:52
void getNfmarkFromServer(const fde *, const fde *, const int)
Definition: stub_libip.cc:25
int doNfmarkLocalHit(const Comm::ConnectionPointer &conn)
Definition: QosConfig.cc:275
#define STUB
macro to stub a void function.
Definition: STUB.h:33
Definition: client_db.h:23
int doNfmarkLocalMiss(const Comm::ConnectionPointer &conn, const hier_code hierCode)
Definition: QosConfig.cc:247
tos_t const hier_code STUB_RETVAL(-1) int doTosLocalHit(const int) STUB_RETVAL(-1) int doNfmarkLocalHit(const int) STUB_RETVAL(-1) void parseConfigLine() STUB void dumpConfigLine(char *
hier_code
Definition: hier_code.h:12
int doTosLocalHit(const Comm::ConnectionPointer &conn)
Definition: QosConfig.cc:268
#define false
Definition: GnuRegex.c:233
bool isAclNfmarkActive() const
Definition: QosConfig.cc:610
class SquidConfig Config
Definition: SquidConfig.cc:12
int unsigned int
Definition: stub_fd.cc:19

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors