diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-02-07 19:59:53 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-02-07 20:04:09 +0100 |
commit | 77f48c2f1ef21fa43aa68c25a1457db319ca2526 (patch) | |
tree | 7ea8f2daedc6d1aebf87e6ca9e7d244a855aedb6 /include | |
parent | 1de7edffc9085c0f41c261dca995e28ae4126c29 (diff) |
libxtables: move afinfo around
libxtables should not rely on the program executable providing the
magic constants for using [gs]etsockopt.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h.in | 1 | ||||
-rw-r--r-- | include/xtables/internal.h.in | 24 |
2 files changed, 1 insertions, 24 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index 07217d6a..02750fb9 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -189,6 +189,7 @@ extern struct xtables_match *xtables_matches; extern struct xtables_target *xtables_targets; extern void xtables_init(void); +extern void xtables_set_nfproto(uint8_t); extern void *xtables_calloc(size_t, size_t); extern void *xtables_malloc(size_t); diff --git a/include/xtables/internal.h.in b/include/xtables/internal.h.in index 21438290..81ddb48a 100644 --- a/include/xtables/internal.h.in +++ b/include/xtables/internal.h.in @@ -7,30 +7,6 @@ # define XT_LIB_DIR "/usr/local/lib/iptables" #endif -/* protocol family dependent informations */ -struct afinfo { - /* protocol family */ - int family; - - /* prefix of library name (ex "libipt_" */ - char *libprefix; - - /* used by setsockopt (ex IPPROTO_IP */ - int ipproto; - - /* kernel module (ex "ip_tables" */ - char *kmod; - - /* optname to check revision support of match */ - int so_rev_match; - - /* optname to check revision support of match */ - int so_rev_target; -}; - -/* This is decleared in ip[6]tables.c */ -extern struct afinfo afinfo; - /** * Program's own name and version. */ |