Signed-off-by: Sven Eckelmann sven@open-mesh.com --- 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;