#include <sys/types.h>#include <stdlib.h>#include <ctype.h>#include <errno.h>#include "bounds.h"#include "byte_extract.h"#include "debug.h"Go to the source code of this file.
Defines | |
| #define | TEXTLEN (PARSELEN + 1) |
Functions | |
| int | byte_extract (int endianess, int bytes_to_grab, u_int8_t *ptr, u_int8_t *start, u_int8_t *end, u_int32_t *value) |
| int | string_extract (int bytes_to_grab, int base, u_int8_t *ptr, u_int8_t *start, u_int8_t *end, u_int32_t *value) |
|
|
Definition at line 35 of file byte_extract.c. Referenced by string_extract(). |
|
||||||||||||||||||||||||||||
|
Grab a binary representation of data from a buffer This method will read either a big or little endian value in binary data from the packet and return an u_int32_t value.
Definition at line 52 of file byte_extract.c. References BIG, inBounds(), and LITTLE. Referenced by ByteJump(), and ByteTest(). |
|
||||||||||||||||||||||||||||
|
Grab a string representation of data from a buffer
Definition at line 129 of file byte_extract.c. References inBounds(), strtoul(), and TEXTLEN. Referenced by ByteJump(), and ByteTest(). |
1.4.2