Commit ea08b528 authored by pdw's avatar pdw

Announces selected interface on startup.

parent 18524e90
......@@ -17,3 +17,5 @@ $Id$
* Configurable refresh rates.
* Filtering of items included in diplay
* Attempt to assign direction based on IP of selected interface for DLT_RAW.
......@@ -624,7 +624,16 @@ void ui_curses_init() {
halfdelay(2);
}
void showhelp(const char * s) {
strncpy(helpmsg, s, HELP_MSG_SIZE);
showhelphint = 1;
helptimer = time(NULL);
persistenthelp = 0;
tick(1);
}
void ui_init() {
char msg[20];
ui_curses_init();
erase();
......@@ -635,17 +644,13 @@ void ui_init() {
service_hash = serv_hash_create();
serv_hash_initialise(service_hash);
snprintf(msg,20,"Listening on %s",options.interface);
showhelp(msg);
}
void showhelp(const char * s) {
strncpy(helpmsg, s, HELP_MSG_SIZE);
showhelphint = 1;
helptimer = time(NULL);
persistenthelp = 0;
tick(1);
}
void showportstatus() {
if(options.showports == OPTION_PORTS_ON) {
showhelp("Port display ON");
......
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