diff options
author | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-04-13 18:01:40 +0000 |
---|---|---|
committer | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-04-13 18:01:40 +0000 |
commit | 10ee8946d3e96d60954d8daec26ff8a0c8416aa2 (patch) | |
tree | 6a54825847abbc0db6dc02968b0555a89d2dfb65 /file.c | |
parent | a9cb35328c1cdc89257a003a07fc0ce8007b3c1a (diff) |
From Jon Oberheide: Add interface name to the capture and ethereal window
while capturing.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10594 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.370 2004/03/08 23:45:24 guy Exp $ + * $Id: file.c,v 1.371 2004/04/13 18:01:39 tuexen Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -529,6 +529,7 @@ int cf_start_tail(char *fname, gboolean is_tempfile, capture_file *cf) { int err; + gchar *capture_msg; err = cf_open(fname, is_tempfile, cf); if (err == 0) { @@ -540,7 +541,9 @@ cf_start_tail(char *fname, gboolean is_tempfile, capture_file *cf) packets (yes, I know, we don't have any *yet*). */ set_menus_for_captured_packets(TRUE); - statusbar_push_file_msg(" <live capture in progress>"); + capture_msg = g_strdup_printf(" %s: <live capture in progress>", cf->iface); + + statusbar_push_file_msg(capture_msg); } return err; } |