Defines | Enumerations | Variables

ControlBase.cc File Reference

A brief file description. More...

#include "ink_platform.h"
#include "ink_defs.h"
#include "ink_time.h"
#include "Main.h"
#include "URL.h"
#include "Tokenizer.h"
#include "ControlBase.h"
#include "MatcherUtils.h"
#include "HTTP.h"
#include "ControlMatcher.h"
#include "HdrUtils.h"
#include "Vec.h"
#include <ts/TsBuffer.h>
Include dependency graph for ControlBase.cc:

Go to the source code of this file.

Defines

#define TS_IP_OCTETS(x)
 Used for printing IP address.

Enumerations

enum  mod_errors { ME_UNKNOWN, ME_PARSE_FAILED, ME_BAD_MOD, ME_CALLEE_GENERATED }

Variables

static const char * errorFormats []

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ControlBase.cc.


Define Documentation

#define TS_IP_OCTETS (   x  ) 
Value:
reinterpret_cast<unsigned char const*>(&(x))[0],   \
    reinterpret_cast<unsigned char const*>(&(x))[1], \
    reinterpret_cast<unsigned char const*>(&(x))[2], \
    reinterpret_cast<unsigned char const*>(&(x))[3]

Used for printing IP address.

    uint32_t addr; // IP address.
    printf("IP address = " TS_IP_PRINTF_CODE,TS_IP_OCTETS(addr));

Definition at line 54 of file ControlBase.cc.


Enumeration Type Documentation

enum mod_errors
Enumerator:
ME_UNKNOWN 
ME_PARSE_FAILED 
ME_BAD_MOD 
ME_CALLEE_GENERATED 

Definition at line 571 of file ControlBase.cc.


Variable Documentation

const char* errorFormats[] [static]
Initial value:
 {
  "Unknown error parsing modifier",
  "Unable to parse modifier",
  "Unknown modifier",
  "Callee Generated",
}

Definition at line 578 of file ControlBase.cc.