diff options
author | melifaro <melifaro@FreeBSD.org> | 2014-08-01 15:17:46 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2014-08-01 15:17:46 +0000 |
commit | 178311d9d4c0a512292c01d751831b7155819d27 (patch) | |
tree | 1039246d324a5e4fb33337aa1b6f3cc96b2763d2 /sys/netinet/ip_fw.h | |
parent | 6d7452f13b0a8fdccc3fb65e9e726d366c6c71b0 (diff) | |
download | FreeBSD-src-178311d9d4c0a512292c01d751831b7155819d27.zip FreeBSD-src-178311d9d4c0a512292c01d751831b7155819d27.tar.gz |
* Permit limiting number of items in table.
Kernel changes:
* Add TEI_FLAGS_DONTADD entry flag to indicate that insert is not possible
* Support given flag in all algorithms
* Add "limit" field to ipfw_xtable_info
* Add actual limiting code into add_table_entry()
Userland changes:
* Add "limit" option as "create" table sub-option. Limit modification
is currently impossible.
* Print human-readable errors in table enry addition/deletion code.
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r-- | sys/netinet/ip_fw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index a1459ae..ff0aadb 100644 --- a/sys/netinet/ip_fw.h +++ b/sys/netinet/ip_fw.h @@ -827,6 +827,8 @@ typedef struct _ipfw_xtable_info { uint32_t refcnt; /* number of references */ uint32_t count; /* Number of records */ uint32_t size; /* Total size of records(export)*/ + uint32_t limit; /* Max number of records */ + uint32_t spare; char tablename[64]; /* table name */ char algoname[64]; /* algorithm name */ ifpw_ta_tinfo ta_info; /* additional algo stats */ |