From 0df6f6b4e17af986eff6f5a4faccfe1adfd07e8f Mon Sep 17 00:00:00 2001 From: pdw <> Date: Wed, 21 May 2003 21:14:00 +0000 Subject: [PATCH] No longer exits if it can't find IP or MAC address. --- iftop.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/iftop.c b/iftop.c index 849f075..4c57f15 100644 --- a/iftop.c +++ b/iftop.c @@ -447,7 +447,6 @@ void packet_init() { if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFHWADDR)"); - exit(1); } else { memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); @@ -470,7 +469,6 @@ void packet_init() { if (ioctl(s, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFADDR)"); - exit(1); } else { have_ip_addr = 1;