Commit 5b47e5be authored by pdw's avatar pdw

Improved error message for failure to get h/ware address.

Put helpmsg on inverse bg.
parent 36700cef
......@@ -8,6 +8,7 @@ On-the-fly filter code changes
Shell escape
Alternative resolver back-ends
Improved totals display
Added regexp based screen filtering
0.9 22/10/02
......
......@@ -353,6 +353,7 @@ void packet_init() {
strncpy(ifr.ifr_name, options.interface, IFNAMSIZ);
ifr.ifr_hwaddr.sa_family = AF_UNSPEC;
if (ioctl(s, SIOCGIFHWADDR, &ifr) == -1) {
fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface);
perror("ioctl(SIOCGIFHWADDR)");
exit(1);
}
......
......@@ -558,7 +558,9 @@ void ui_print() {
if(showhelphint) {
mvaddstr(0, 0, helpmsg);
clrtoeol();
mvchgat(0, 0, -1, A_REVERSE, 0, NULL);
}
move(LINES - 1, COLS - 1);
refresh();
......
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