summaryrefslogtreecommitdiff
path: root/src/read_config_yy.y
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-11-30 11:40:36 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-11-30 11:40:36 +0100
commit1fadc34c80a17e291f5ae86ecb84efbdb2aab265 (patch)
tree1ee5c644e2f9771bc92a786ea11f11cd0133b163 /src/read_config_yy.y
parent1cd6dc33d533d05f5212f215521d5c3c9e362714 (diff)
downloadconntrack-tools-1fadc34c80a17e291f5ae86ecb84efbdb2aab265.tar.gz
conntrack-tools-1fadc34c80a17e291f5ae86ecb84efbdb2aab265.zip
config: move `Checksum' inside `Multicast' clause
This patch moves `Checksum' into the `Multicast' clause. This property is dependent of the multicast configuration. This patch is required to introduce the redundant dedicated link support that is on the way. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r--src/read_config_yy.y14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index 32ddeff..69a7eff 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -172,11 +172,15 @@ purge: T_PURGE T_NUMBER
checksum: T_CHECKSUM T_ON
{
+ fprintf(stderr, "WARNING: The use of `Checksum' outside the "
+ "`Multicast' clause is ambiguous.\n");
conf.mcast.checksum = 0;
};
checksum: T_CHECKSUM T_OFF
{
+ fprintf(stderr, "WARNING: The use of `Checksum' outside the "
+ "`Multicast' clause is ambiguous.\n");
conf.mcast.checksum = 1;
};
@@ -357,6 +361,16 @@ multicast_option: T_MCAST_RCVBUFF T_NUMBER
conf.mcast.rcvbuf = $2;
};
+multicast_option: T_CHECKSUM T_ON
+{
+ conf.mcast.checksum = 0;
+};
+
+multicast_option: T_CHECKSUM T_OFF
+{
+ conf.mcast.checksum = 1;
+};
+
hashsize : T_HASHSIZE T_NUMBER
{
conf.hashsize = $2;