diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2014-06-14 22:47:25 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2014-06-14 22:47:25 +0000 |
commit | f1220db8d7d6e115e73637947b33704ee40b0b9b (patch) | |
tree | d694e53bf952a5685dabed4473ffb07855a9642d /sbin/ipfw/ipfw2.h | |
parent | ea761a5dc49a0f839d838a9955f57324f8025162 (diff) | |
download | src-f1220db8d7d6e115e73637947b33704ee40b0b9b.tar.gz src-f1220db8d7d6e115e73637947b33704ee40b0b9b.zip |
Move further to eliminate next pieces of number-assuming code inside tables.
Kernel changes:
* Add IP_FW_OBJ_FLUSH opcode (flush table based on its name/set)
* Add IP_FW_OBJ_DUMP opcode (dumps table data based on its names/set)
* Add IP_FW_OBJ_LISTSIZE / IP_FW_OBJ_LIST opcodes (get list of kernel tables)
Userland changes:
* move tables code to separate tables.c file
* get rid of tables_max
* switch "all"/list handling to new opcodes
Notes
Notes:
svn path=/projects/ipfw/; revision=267487
Diffstat (limited to 'sbin/ipfw/ipfw2.h')
-rw-r--r-- | sbin/ipfw/ipfw2.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h index 2301c40f2b76..2729aaf49530 100644 --- a/sbin/ipfw/ipfw2.h +++ b/sbin/ipfw/ipfw2.h @@ -227,9 +227,10 @@ int _substrcmp2(const char *str1, const char* str2, const char* str3); int match_token(struct _s_x *table, char *string); char const *match_value(struct _s_x *p, int value); +struct _ip_fw3_opheader; int do_cmd(int optname, void *optval, uintptr_t optlen); - -uint32_t ipfw_get_tables_max(void); +int do_set3(int optname, struct _ip_fw3_opheader *op3, uintptr_t optlen); +int do_get3(int optname, struct _ip_fw3_opheader *op3, size_t *optlen); struct in6_addr; void n2mask(struct in6_addr *mask, int n); |