summaryrefslogtreecommitdiff
path: root/src/read_config_yy.y
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-02-08 20:55:34 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-02-08 20:55:34 +0100
commit7f902c8419c891ec3ec83d40fb30afccb2a150c6 (patch)
tree97c0bfcb190c4559d88653502a465412684ae2bd /src/read_config_yy.y
parentd214500c0e5f06587cd2436bf88c93b399df5122 (diff)
downloadconntrack-tools-7f902c8419c891ec3ec83d40fb30afccb2a150c6.tar.gz
conntrack-tools-7f902c8419c891ec3ec83d40fb30afccb2a150c6.zip
src: add Nice clause to set the nice value
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r--src/read_config_yy.y11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index 1bea865..b9a37f7 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -61,10 +61,11 @@ static void __max_mcast_dedicated_links_reached(void);
%token T_MCAST_RCVBUFF T_MCAST_SNDBUFF T_NOTRACK T_POLL_SECS
%token T_FILTER T_ADDRESS T_PROTOCOL T_STATE T_ACCEPT T_IGNORE
%token T_FROM T_USERSPACE T_KERNELSPACE T_EVENT_ITER_LIMIT T_DEFAULT
-%token T_NETLINK_OVERRUN_RESYNC
+%token T_NETLINK_OVERRUN_RESYNC T_NICE
%token <string> T_IP T_PATH_VAL
%token <val> T_NUMBER
+%token <val> T_SIGNED_NUMBER
%token <string> T_STRING
%%
@@ -727,6 +728,7 @@ general_line: hashsize
| poll_secs
| filter
| netlink_overrun_resync
+ | nice
;
netlink_buffer_size: T_BUFFER_SIZE T_NUMBER
@@ -752,7 +754,12 @@ netlink_overrun_resync : T_NETLINK_OVERRUN_RESYNC T_OFF
netlink_overrun_resync : T_NETLINK_OVERRUN_RESYNC T_NUMBER
{
conf.nl_overrun_resync = $2;
-}
+};
+
+nice : T_NICE T_SIGNED_NUMBER
+{
+ conf.nice = $2;
+};
family : T_FAMILY T_STRING
{