Announces selected interface on startup.
This commit is contained in:
2
TODO
2
TODO
@@ -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.
|
||||
|
||||
19
ui.c
19
ui.c
@@ -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,16 +644,12 @@ 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) {
|
||||
|
||||
Reference in New Issue
Block a user