#include <PacketDrillUtils.h>
PacketDrillExpression::PacketDrillExpression |
( |
enum expression_t |
type_ | ) |
|
Definition: PacketDrillUtils.h:260
Definition: PacketDrillUtils.h:401
const char * format
Definition: PacketDrillUtils.h:554
enum expression_t type
Definition: PacketDrillUtils.h:536
union PacketDrillExpression::@1 value
PacketDrillExpression::~PacketDrillExpression |
( |
| ) |
|
131 for (cQueue::Iterator iter(*
value.list); !iter.end(); iter++)
132 value.list->remove((*iter));
enum expression_t type
Definition: PacketDrillUtils.h:536
Definition: PacketDrillUtils.h:254
union PacketDrillExpression::@1 value
const char* PacketDrillExpression::getFormat |
( |
| ) |
const |
|
inline |
const char * format
Definition: PacketDrillUtils.h:554
cQueue* PacketDrillExpression::getList |
( |
| ) |
|
|
inline |
int64 PacketDrillExpression::getNum |
( |
| ) |
const |
|
inline |
int PacketDrillExpression::getS32 |
( |
int32 * |
value, |
|
|
char ** |
error |
|
) |
| |
Referenced by inet::PacketDrillApp::syscallAccept(), inet::PacketDrillApp::syscallBind(), inet::PacketDrillApp::syscallClose(), inet::PacketDrillApp::syscallConnect(), inet::PacketDrillApp::syscallGetsockopt(), inet::PacketDrillApp::syscallListen(), inet::PacketDrillApp::syscallRead(), inet::PacketDrillApp::syscallRecvFrom(), inet::PacketDrillApp::syscallSctpSend(), inet::PacketDrillApp::syscallSctpSendmsg(), inet::PacketDrillApp::syscallSendTo(), inet::PacketDrillApp::syscallSetsockopt(), inet::PacketDrillApp::syscallShutdown(), inet::PacketDrillApp::syscallSocket(), and inet::PacketDrillApp::syscallWrite().
201 if ((
value.num > UINT_MAX) || (
value.num < INT_MIN)) {
202 EV_DEBUG <<
"Value out of range for 32-bit integer: " <<
value.num << endl;
Definition: PacketDrillUtils.h:288
Definition: PacketDrillUtils.h:247
Definition: PacketDrillUtils.h:287
enum expression_t type
Definition: PacketDrillUtils.h:536
union PacketDrillExpression::@1 value
const char* PacketDrillExpression::getString |
( |
| ) |
const |
|
inline |
Referenced by PacketDrill::evaluate(), PacketDrill::evaluate_binary_expression(), PacketDrill::evaluateListExpression(), inet::PacketDrillApp::syscallBind(), inet::PacketDrillApp::syscallConnect(), inet::PacketDrillApp::syscallGetsockopt(), inet::PacketDrillApp::syscallRead(), inet::PacketDrillApp::syscallRecvFrom(), inet::PacketDrillApp::syscallSctpSend(), inet::PacketDrillApp::syscallSctpSendmsg(), inet::PacketDrillApp::syscallSendTo(), inet::PacketDrillApp::syscallSetsockopt(), inet::PacketDrillApp::syscallSocket(), and inet::PacketDrillApp::syscallWrite().
enum expression_t type
Definition: PacketDrillUtils.h:536
int PacketDrillExpression::getU16 |
( |
uint16 * |
value, |
|
|
char ** |
error |
|
) |
| |
Referenced by inet::PacketDrillApp::syscallSctpSendmsg().
226 EV_DEBUG <<
"Value out of range for 16-bit unsigned integer: " <<
value.num << endl;
Definition: PacketDrillUtils.h:288
Definition: PacketDrillUtils.h:247
#define UINT16_MAX
Definition: lexer.cc:81
Definition: PacketDrillUtils.h:287
enum expression_t type
Definition: PacketDrillUtils.h:536
union PacketDrillExpression::@1 value
int PacketDrillExpression::getU32 |
( |
uint32 * |
value, |
|
|
char ** |
error |
|
) |
| |
Referenced by inet::PacketDrillApp::syscallSctpSendmsg().
214 EV_DEBUG <<
"Value out of range for 32-bit unsigned integer: " <<
value.num << endl;
Definition: PacketDrillUtils.h:288
Definition: PacketDrillUtils.h:247
Definition: PacketDrillUtils.h:287
#define UINT32_MAX
Definition: lexer.cc:84
enum expression_t type
Definition: PacketDrillUtils.h:536
union PacketDrillExpression::@1 value
bool PacketDrillExpression::lookupIntSymbol |
( |
const char * |
input_symbol, |
|
|
int64 * |
output_integer, |
|
|
struct int_symbol * |
symbols |
|
) |
| |
238 for (i = 0; symbols[i].
name != NULL ; ++i) {
239 if (strcmp(input_symbol, symbols[i].name) == 0) {
240 *output_integer = symbols[i].
value;
int64 value
Definition: PacketDrillUtils.h:40
const char * name
Definition: PacketDrillUtils.h:41
568 {
value.binary = bin; };
union PacketDrillExpression::@1 value
void PacketDrillExpression::setFormat |
( |
const char * |
format_ | ) |
|
|
inline |
void PacketDrillExpression::setIp |
( |
L3Address * |
exp | ) |
|
|
inline |
585 {
value.ip_address = exp; };
union PacketDrillExpression::@1 value
void PacketDrillExpression::setList |
( |
cQueue * |
queue | ) |
|
|
inline |
void PacketDrillExpression::setNum |
( |
int64 |
n | ) |
|
|
inline |
void PacketDrillExpression::setString |
( |
char * |
str | ) |
|
|
inline |
561 {
value.string = str; };
union PacketDrillExpression::@1 value
int PacketDrillExpression::symbolToInt |
( |
const char * |
input_symbol, |
|
|
int64 * |
output_integer, |
|
|
char ** |
error |
|
) |
| |
Referenced by PacketDrill::evaluate().
Definition: PacketDrillUtils.h:288
bool lookupIntSymbol(const char *input_symbol, int64 *output_integer, struct int_symbol *symbols)
Definition: PacketDrillUtils.cc:235
struct int_symbol * platform_symbols(void)
Definition: PacketDrillUtils.cc:84
Definition: PacketDrillUtils.h:287
int PacketDrillExpression::unescapeCstringExpression |
( |
const char * |
input_string, |
|
|
char ** |
error |
|
) |
| |
Referenced by PacketDrill::evaluate().
143 int bytes = strlen(input_string) + 1;
146 const char *c_in = input_string;
147 char *c_out =
value.string;
148 while (*c_in !=
'\0') {
181 EV_DEBUG <<
"Unsupported escape code: " << *c_in << endl;
Definition: PacketDrillUtils.h:288
Definition: PacketDrillUtils.h:287
enum expression_t type
Definition: PacketDrillUtils.h:536
union PacketDrillExpression::@1 value
Definition: PacketDrillUtils.h:250
const char* PacketDrillExpression::format |
|
private |
cQueue* PacketDrillExpression::list |
int64 PacketDrillExpression::num |
char* PacketDrillExpression::string |
union { ... } PacketDrillExpression::value |
The documentation for this class was generated from the following files: