#include "config.h"#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <netinet/ip.h>#include <netinet/tcp.h>#include <netinet/udp.h>#include <netinet/ip_icmp.h>#include <linux/if.h>#include <assert.h>#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "dnet.h"Go to the source code of this file.
Defines | |
| #define | PROC_IPCHAINS_FILE "/proc/net/ip_fwchains" |
Functions | |
| static void | fr_to_fwc (const struct fw_rule *fr, struct ip_fwchange *fwc) |
| static void | fwc_to_fr (const struct ip_fwchange *fwc, struct fw_rule *fr) |
| fw_t * | fw_open (void) |
| int | fw_add (fw_t *fw, const struct fw_rule *rule) |
| int | fw_delete (fw_t *fw, const struct fw_rule *rule) |
| int | fw_loop (fw_t *fw, fw_handler callback, void *arg) |
| fw_t * | fw_close (fw_t *fw) |
|
|
Definition at line 38 of file fw-ipchains.c. Referenced by fw_loop(). |
|
||||||||||||
|
Definition at line 45 of file fw-ipchains.c. References addr::addr_bits, addr_btom(), fw_rule::fw_device, fw_rule::fw_dir, FW_DIR_IN, fw_rule::fw_dport, fw_rule::fw_dst, fw_rule::fw_op, FW_OP_ALLOW, fw_rule::fw_proto, fw_rule::fw_sport, fw_rule::fw_src, IFNAMSIZ, IP_ADDR_LEN, memset, and strlcpy. Referenced by fw_add(), and fw_delete(). |
|
||||||||||||
|
Definition at line 127 of file fw-ipchains.c. References fr_to_fwc(). |
|
|
Definition at line 219 of file fw-ipchains.c. References fw_handle::fd, and NULL. |
|
||||||||||||
|
Definition at line 138 of file fw-ipchains.c. References fr_to_fwc(). |
|
||||||||||||||||
|
Definition at line 149 of file fw-ipchains.c. References fwc_to_fr(), NULL, and PROC_IPCHAINS_FILE. |
|
|
Definition at line 115 of file fw-ipchains.c. References fw_close(), and NULL. |
|
||||||||||||
|
Definition at line 81 of file fw-ipchains.c. References addr_mtob(), ADDR_TYPE_IP, FW_DIR_IN, FW_DIR_OUT, FW_OP_ALLOW, FW_OP_BLOCK, IP_ADDR_LEN, memset, and strlcpy. Referenced by fw_loop(). |
1.4.2