summaryrefslogtreecommitdiff
path: root/iftop.c
diff options
context:
space:
mode:
authorpdw <>2003-05-21 21:14:00 +0000
committerpdw <>2003-05-21 21:14:00 +0000
commit0df6f6b4e17af986eff6f5a4faccfe1adfd07e8f (patch)
tree16bc202f3c4bd473de0e242126cbd12defc96dbd /iftop.c
parent0be9f56a3b12583aaf3c97f44eda45a932f30c07 (diff)
downloadiftop-0df6f6b4e17af986eff6f5a4faccfe1adfd07e8f.zip
No longer exits if it can't find IP or MAC address.
Diffstat (limited to 'iftop.c')
-rw-r--r--iftop.c2
1 files changed, 0 insertions, 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;