summaryrefslogtreecommitdiff
path: root/src/mcast.c
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/mcast.c
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/mcast.c')
-rw-r--r--src/mcast.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mcast.c b/src/mcast.c
index 3dff855..600fdc2 100644
--- a/src/mcast.c
+++ b/src/mcast.c
@@ -46,8 +46,6 @@ struct mcast_sock *mcast_server_create(struct mcast_conf *conf)
return NULL;
memset(m, 0, sizeof(struct mcast_sock));
- m->interface_idx = conf->interface_idx;
-
switch(conf->ipproto) {
case AF_INET:
mreq.ipv4.imr_multiaddr.s_addr = conf->in.inet_addr.s_addr;
@@ -78,19 +76,6 @@ struct mcast_sock *mcast_server_create(struct mcast_conf *conf)
return NULL;
}
- if(conf->iface[0]) {
- struct ifreq ifr;
-
- strncpy(ifr.ifr_name, conf->iface, sizeof(ifr.ifr_name));
-
- if (ioctl(m->fd, SIOCGIFMTU, &ifr) == -1) {
- close(m->fd);
- free(m);
- return NULL;
- }
- conf->mtu = ifr.ifr_mtu;
- }
-
if (setsockopt(m->fd, SOL_SOCKET, SO_REUSEADDR, &yes,
sizeof(int)) == -1) {
close(m->fd);
@@ -214,8 +199,6 @@ struct mcast_sock *mcast_client_create(struct mcast_conf *conf)
return NULL;
memset(m, 0, sizeof(struct mcast_sock));
- m->interface_idx = conf->interface_idx;
-
if ((m->fd = socket(conf->ipproto, SOCK_DGRAM, 0)) == -1) {
free(m);
return NULL;