Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit d6de864b4c653d65a79aed3458f6c049d026e320 Author: Sven Eckelmann sven@open-mesh.com Date: Tue Oct 1 14:02:14 2013 +0200
alfred: Remove unused check for device MTU
Signed-off-by: Sven Eckelmann sven@open-mesh.com Signed-off-by: Simon Wunderlich simon@open-mesh.com
d6de864b4c653d65a79aed3458f6c049d026e320 netsock.c | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/netsock.c b/netsock.c index bed62e9..dc57b3c 100644 --- a/netsock.c +++ b/netsock.c @@ -80,11 +80,6 @@ int netsock_open(struct globals *globals) memcpy(&globals->hwaddr, &ifr.ifr_hwaddr.sa_data, 6); mac_to_ipv6(&globals->hwaddr, &globals->address);
- if (ioctl(sock, SIOCGIFMTU, &ifr) == -1) { - fprintf(stderr, "can't get MTU: %s\n", strerror(errno)); - goto err; - } - if (bind(sock, (struct sockaddr *)&sin6, sizeof(sin6)) < 0) { fprintf(stderr, "can't bind\n"); goto err;