libexplain
1.4.D001
|
#include <libexplain/ac/bluetooth/bluetooth.h>
#include <libexplain/ac/netinet/in.h>
#include <libexplain/ac/stdlib.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/socket.h>
#include <libexplain/buffer/sockopt_name.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Data Structures | |
struct | list_t |
Typedefs | |
typedef struct list_t | list_t |
Functions | |
void | explain_buffer_sockopt_name (explain_string_buffer_t *sb, int level, int name) |
static void | list_constructor (list_t *lp) |
static void | list_append (list_t *lp, const explain_parse_bits_table_t *table, size_t size) |
static void | list_destructor (list_t *lp) |
int | explain_parse_sockopt_name_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | sol_socket_table [] |
static const explain_parse_bits_table_t | sol_ip_table [] |
Definition at line 321 of file sockopt_name.c.
void explain_buffer_sockopt_name | ( | explain_string_buffer_t * | sb, |
int | level, | ||
int | name | ||
) |
The explain_buffer_sockopt_name function may be used to print a representation of a sockopt name.
sb | The string buffer to print into. |
level | The sockopt level value. This is important because the names are dependent on the level. |
name | The sockopt_name value to be printed. |
Definition at line 257 of file sockopt_name.c.
int explain_parse_sockopt_name_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_sockopt_name_or_die function is used to parse a text string into a sockopt name value. It parses all levels.
text | The text string to be parsed. |
caption | additional information for error messages. |
Definition at line 376 of file sockopt_name.c.
static void list_append | ( | list_t * | lp, |
const explain_parse_bits_table_t * | table, | ||
size_t | size | ||
) | [static] |
Definition at line 340 of file sockopt_name.c.
static void list_constructor | ( | list_t * | lp | ) | [static] |
Definition at line 331 of file sockopt_name.c.
static void list_destructor | ( | list_t * | lp | ) | [static] |
Definition at line 365 of file sockopt_name.c.
const explain_parse_bits_table_t sol_ip_table[] [static] |
Definition at line 160 of file sockopt_name.c.
const explain_parse_bits_table_t sol_socket_table[] [static] |
Definition at line 30 of file sockopt_name.c.