Commit c46fa1ec authored by Robert Ricci's avatar Robert Ricci

Don't die quite so easily - some errors turn out to be okay, because

we didn't reeally want to send packets on those interfaces anyway.
parent e38df6c2
......@@ -93,6 +93,9 @@ int main(int argc, char **argv) {
exit(1);
}
/*
*
*/
if (flag_ifr.ifr_flags & IFF_LOOPBACK) {
continue;
}
......@@ -126,7 +129,7 @@ int main(int argc, char **argv) {
if (bpffd[num_interfaces] < 0) {
printf("Failed to find an open-able BPF device\n");
exit(1);
continue;
}
/*
......@@ -136,7 +139,7 @@ int main(int argc, char **argv) {
if (ioctl(bpffd[num_interfaces],BIOCSETIF,&req) < 0) {
perror("BIOSETIF failed");
exit(-1);
continue;
}
num_interfaces++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment