summaryrefslogtreecommitdiff
path: root/src/read_config_yy.y
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-20 16:03:08 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-20 16:03:08 +0100
commit16e6a01a6454dc791b7af593390616b4a29724c7 (patch)
treed399bda96f4a03d3a328d3a770db618ab0dc9f87 /src/read_config_yy.y
parentf7b4b7bd19b16d11491f18891942f6d48c2fcf7e (diff)
downloadconntrack-tools-16e6a01a6454dc791b7af593390616b4a29724c7.tar.gz
conntrack-tools-16e6a01a6454dc791b7af593390616b4a29724c7.zip
mcast: remove several unused structure fields
This patch removes several structure fields that are unused. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r--src/read_config_yy.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index 7b62cf3..4e60d95 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -330,7 +330,7 @@ multicast_option : T_IPV6_ADDR T_IP
conf.channel[conf.channel_num].u.mcast.ipproto = AF_INET6;
- if (conf.channel[conf.channel_num].u.mcast.iface[0] &&
+ if (conf.channel[conf.channel_num].channel_ifname[0] &&
!conf.channel[conf.channel_num].u.mcast.ifa.interface_index6) {
unsigned int idx;
@@ -376,14 +376,12 @@ multicast_option : T_IFACE T_STRING
__max_dedicated_links_reached();
strncpy(conf.channel[conf.channel_num].channel_ifname, $2, IFNAMSIZ);
- strncpy(conf.channel[conf.channel_num].u.mcast.iface, $2, IFNAMSIZ);
idx = if_nametoindex($2);
if (!idx) {
fprintf(stderr, "%s is an invalid interface.\n", $2);
break;
}
- conf.channel[conf.channel_num].u.mcast.interface_idx = idx;
if (conf.channel[conf.channel_num].u.mcast.ipproto == AF_INET6) {
conf.channel[conf.channel_num].u.mcast.ifa.interface_index6 = idx;