Announces selected interface on startup.

This commit is contained in:
pdw
2002-10-29 20:35:06 +00:00
parent 18524e9045
commit ea08b52871
2 changed files with 14 additions and 7 deletions

2
TODO
View File

@@ -17,3 +17,5 @@ $Id$
* Configurable refresh rates. * Configurable refresh rates.
* Filtering of items included in diplay * Filtering of items included in diplay
* Attempt to assign direction based on IP of selected interface for DLT_RAW.

19
ui.c
View File

@@ -624,7 +624,16 @@ void ui_curses_init() {
halfdelay(2); 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() { void ui_init() {
char msg[20];
ui_curses_init(); ui_curses_init();
erase(); erase();
@@ -635,16 +644,12 @@ void ui_init() {
service_hash = serv_hash_create(); service_hash = serv_hash_create();
serv_hash_initialise(service_hash); 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() { void showportstatus() {
if(options.showports == OPTION_PORTS_ON) { if(options.showports == OPTION_PORTS_ON) {