diff options
author | pdw <> | 2003-05-21 21:14:00 +0000 |
---|---|---|
committer | pdw <> | 2003-05-21 21:14:00 +0000 |
commit | 0df6f6b4e17af986eff6f5a4faccfe1adfd07e8f (patch) | |
tree | 16bc202f3c4bd473de0e242126cbd12defc96dbd /iftop.c | |
parent | 0be9f56a3b12583aaf3c97f44eda45a932f30c07 (diff) | |
download | iftop-0df6f6b4e17af986eff6f5a4faccfe1adfd07e8f.zip |
No longer exits if it can't find IP or MAC address.
Diffstat (limited to 'iftop.c')
-rw-r--r-- | iftop.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |