PATH:
usr
/
include
/
linux
/
netfilter
#ifndef _XT_HASHLIMIT_H #define _XT_HASHLIMIT_H #include <linux/types.h> /* timings are in milliseconds. */ #define XT_HASHLIMIT_SCALE 10000 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 * seconds, or one packet every 59 hours. */ /* packet length accounting is done in 16-byte steps */ #define XT_HASHLIMIT_BYTE_SHIFT 4 /* details of this structure hidden by the implementation */ struct xt_hashlimit_htable; enum { XT_HASHLIMIT_HASH_DIP = 1 << 0, XT_HASHLIMIT_HASH_DPT = 1 << 1, XT_HASHLIMIT_HASH_SIP = 1 << 2, XT_HASHLIMIT_HASH_SPT = 1 << 3, XT_HASHLIMIT_INVERT = 1 << 4, XT_HASHLIMIT_BYTES = 1 << 5, }; struct hashlimit_cfg { __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ __u32 avg; /* Average secs between packets * scale */ __u32 burst; /* Period multiplier for upper limit. */ /* user specified */ __u32 size; /* how many buckets */ __u32 max; /* max number of entries */ __u32 gc_interval; /* gc interval */ __u32 expire; /* when do entries expire? */ }; struct xt_hashlimit_info { char name [IFNAMSIZ]; /* name */ struct hashlimit_cfg cfg; /* Used internally by the kernel */ struct xt_hashlimit_htable *hinfo; union { void *ptr; struct xt_hashlimit_info *master; } u; }; struct hashlimit_cfg1 { __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ __u32 avg; /* Average secs between packets * scale */ __u32 burst; /* Period multiplier for upper limit. */ /* user specified */ __u32 size; /* how many buckets */ __u32 max; /* max number of entries */ __u32 gc_interval; /* gc interval */ __u32 expire; /* when do entries expire? */ __u8 srcmask, dstmask; }; struct xt_hashlimit_mtinfo1 { char name[IFNAMSIZ]; struct hashlimit_cfg1 cfg; /* Used internally by the kernel */ struct xt_hashlimit_htable *hinfo __attribute__((aligned(8))); }; #endif /* _XT_HASHLIMIT_H */
[-] xt_helper.h
[edit]
[-] xt_HMARK.h
[edit]
[-] xt_time.h
[edit]
[-] xt_dccp.h
[edit]
[-] xt_IDLETIMER.h
[edit]
[-] xt_recent.h
[edit]
[-] nfnetlink_acct.h
[edit]
[-] xt_mac.h
[edit]
[-] xt_rateest.h
[edit]
[-] x_tables.h
[edit]
[-] xt_mark.h
[edit]
[-] xt_devgroup.h
[edit]
[-] xt_connlimit.h
[edit]
[-] nf_conntrack_ftp.h
[edit]
[-] nfnetlink_cthelper.h
[edit]
[+]
..
[-] xt_u32.h
[edit]
[-] xt_rpfilter.h
[edit]
[-] nf_tables_compat.h
[edit]
[-] xt_policy.h
[edit]
[-] xt_CLASSIFY.h
[edit]
[-] xt_quota.h
[edit]
[-] xt_TCPOPTSTRIP.h
[edit]
[-] xt_comment.h
[edit]
[-] xt_sctp.h
[edit]
[-] xt_tcpudp.h
[edit]
[-] xt_tcpmss.h
[edit]
[-] xt_nfacct.h
[edit]
[-] xt_TCPMSS.h
[edit]
[-] xt_length.h
[edit]
[-] xt_connlabel.h
[edit]
[-] xt_cpu.h
[edit]
[-] xt_osf.h
[edit]
[-] xt_bpf.h
[edit]
[-] xt_hashlimit.h
[edit]
[-] xt_NFLOG.h
[edit]
[-] nfnetlink_conntrack.h
[edit]
[-] xt_AUDIT.h
[edit]
[-] xt_pkttype.h
[edit]
[-] xt_set.h
[edit]
[-] xt_string.h
[edit]
[-] xt_ipvs.h
[edit]
[-] xt_socket.h
[edit]
[-] nf_tables.h
[edit]
[-] xt_CONNSECMARK.h
[edit]
[-] xt_CONNMARK.h
[edit]
[-] xt_NFQUEUE.h
[edit]
[-] nf_nat.h
[edit]
[-] xt_connbytes.h
[edit]
[-] xt_addrtype.h
[edit]
[-] nfnetlink_log.h
[edit]
[-] xt_LED.h
[edit]
[-] xt_LOG.h
[edit]
[-] xt_physdev.h
[edit]
[-] xt_state.h
[edit]
[-] xt_realm.h
[edit]
[-] xt_SECMARK.h
[edit]
[-] xt_ecn.h
[edit]
[-] xt_cluster.h
[edit]
[+]
ipset
[-] xt_connmark.h
[edit]
[-] xt_esp.h
[edit]
[-] xt_TEE.h
[edit]
[-] xt_owner.h
[edit]
[-] nfnetlink_compat.h
[edit]
[-] xt_cgroup.h
[edit]
[-] xt_CHECKSUM.h
[edit]
[-] xt_TPROXY.h
[edit]
[-] xt_CT.h
[edit]
[-] nf_conntrack_tcp.h
[edit]
[-] xt_iprange.h
[edit]
[-] nf_conntrack_sctp.h
[edit]
[-] xt_DSCP.h
[edit]
[-] nf_conntrack_common.h
[edit]
[-] xt_MARK.h
[edit]
[-] nfnetlink.h
[edit]
[-] xt_conntrack.h
[edit]
[-] nfnetlink_cttimeout.h
[edit]
[-] xt_limit.h
[edit]
[-] xt_RATEEST.h
[edit]
[-] nfnetlink_queue.h
[edit]
[-] nf_conntrack_tuple_common.h
[edit]
[-] xt_dscp.h
[edit]
[-] xt_statistic.h
[edit]
[-] xt_multiport.h
[edit]