mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
netfilter: nfnetlink_log: fix timeout handling
NFLOG timeout was computed in timer by doing: flushtimeout*HZ/100 Default value of flushtimeout was HZ (for 1 second delay). This was wrong for non 100HZ computer. This patch modify the default delay by using 100 instead of HZ. Signed-off-by: Eric Leblond <eric@inl.fr> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
5ca431f9ae
commit
2c6764b743
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NFULNL_NLBUFSIZ_DEFAULT NLMSG_GOODSIZE
|
#define NFULNL_NLBUFSIZ_DEFAULT NLMSG_GOODSIZE
|
||||||
#define NFULNL_TIMEOUT_DEFAULT HZ /* every second */
|
#define NFULNL_TIMEOUT_DEFAULT 100 /* every second */
|
||||||
#define NFULNL_QTHRESH_DEFAULT 100 /* 100 packets */
|
#define NFULNL_QTHRESH_DEFAULT 100 /* 100 packets */
|
||||||
#define NFULNL_COPY_RANGE_MAX 0xFFFF /* max packet size is limited by 16-bit struct nfattr nfa_len field */
|
#define NFULNL_COPY_RANGE_MAX 0xFFFF /* max packet size is limited by 16-bit struct nfattr nfa_len field */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue