#include <getopt.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
#include "include/ebtables_u.h"
Macros | |
#define | sparc_cast |
Functions | |
void | ebt_deliver_table (struct ebt_u_replace *u_repl) |
void | ebt_deliver_counters (struct ebt_u_replace *u_repl) |
int | ebt_get_table (struct ebt_u_replace *u_repl, int init) |
Variables | |
char * | hooknames [NF_BR_NUMHOOKS] |
int | sockfd = -1 |
#define sparc_cast |
Referenced by ebt_deliver_counters().
void ebt_deliver_counters | ( | struct ebt_u_replace * | u_repl | ) |
References ebt_counter::bcnt, ebt_u_replace::cc, ebt_u_replace::chains, ebt_cntchanges::change, ebt_u_entry::cnt, CNT_ADD, CNT_CHANGE, CNT_DEL, CNT_NORM, ebt_u_entry::cnt_surplus, ebt_replace::counters, ebt_u_replace::counters, ebt_print_bug, ebt_print_memory, EBT_SO_SET_COUNTERS, ebt_u_entries::entries, ebt_u_replace::filename, ebt_replace::name, ebt_u_replace::name, ebt_u_replace::nentries, ebt_cntchanges::next, ebt_u_entry::next, NULL, ebt_u_replace::num_chains, ebt_replace::num_counters, ebt_u_replace::num_counters, ebt_counter::pcnt, ebt_cntchanges::prev, sockfd, sparc_cast, and ebt_cntchanges::type.
Referenced by do_command(), and main().
void ebt_deliver_table | ( | struct ebt_u_replace * | u_repl | ) |
References ebt_u_replace::command, ebt_print_error, EBT_SO_SET_ENTRIES, ebtables_insmod(), ebt_replace::entries, ebt_u_replace::filename, NULL, and sockfd.
Referenced by do_command(), and main().
int ebt_get_table | ( | struct ebt_u_replace * | u_repl, |
int | init | ||
) |
References ebt_u_replace::cc, ebt_u_replace::chains, ebt_cntchanges::change, CNT_NORM, ebt_u_replace::command, ebt_replace::counters, ebt_u_replace::counters, EBT_ENTRY_ITERATE, EBT_ORI_MAX_CHAINS, ebt_print_bug, ebt_print_memory, ebt_replace::entries, ebt_replace::entries_size, ebt_u_replace::filename, hook, ebt_u_replace::max_chains, ebt_replace::name, ebt_u_replace::name, ebt_replace::nentries, ebt_u_replace::nentries, ebt_cntchanges::next, NF_BR_NUMHOOKS, NULL, ebt_u_replace::num_chains, ebt_replace::num_counters, ebt_u_replace::num_counters, ebt_cntchanges::prev, ebt_cntchanges::type, ebt_replace::valid_hooks, and ebt_u_replace::valid_hooks.
Referenced by do_command(), and ebt_get_kernel_table().
char* hooknames[NF_BR_NUMHOOKS] |
Referenced by TC_INIT().
int sockfd = -1 |
Referenced by ebt_deliver_counters(), ebt_deliver_table(), TC_COMMIT(), TC_GET_RAW_SOCKET(), TC_INIT(), and xtables_compatible_revision().