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

Put helpmsg on inverse bg.
This commit is contained in:
pdw
2002-10-25 10:18:50 +00:00
parent 36700cef92
commit 5b47e5be26
3 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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);
}

2
ui.c
View File

@@ -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();