- Add --zero-delay option

- Bump PORTREVISION

PR:		94777
Submitted by:	Ben Allen <benjamin___umn.edu>
Approved by:	maintainer timeout (39 days)
This commit is contained in:
Marcus Alves Grando 2006-04-29 17:24:34 +00:00
parent dd3d7f0f6c
commit 23ca1b34d1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160813
5 changed files with 51 additions and 8 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= etherape PORTNAME= etherape
PORTVERSION= 0.9.1 PORTVERSION= 0.9.1
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= net-mgmt gnome CATEGORIES= net-mgmt gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,20 @@
--- ./src/capture.c.orig Sun Apr 6 10:45:41 2003
+++ ./src/capture.c Sat Apr 29 11:48:08 2006
@@ -527,7 +527,16 @@
this_time.tv_usec = phdr.ts.tv_usec;
diff = substract_times (this_time, last_time);
- ms_to_next = diff.tv_sec * 1000 + diff.tv_usec / 1000;
+
+ if (pref.zero_delay)
+ {
+ ms_to_next = 0;
+ }
+ else
+ {
+ ms_to_next = diff.tv_sec * 1000 + diff.tv_usec / 1000;
+ }
+
last_time = this_time;

View file

@ -0,0 +1,11 @@
--- ./src/globals.h.orig Sun Apr 6 10:45:41 2003
+++ ./src/globals.h Sat Apr 29 11:48:08 2006
@@ -342,6 +342,8 @@
gchar *interface; /* Network interface to listen to */
gchar *filter; /* Pcap filter to be used */
+ gboolean zero_delay; /* no delay processing tcpdump files */
+
}
pref;

View file

@ -0,0 +1,12 @@
--- ./src/main.c.orig Sun Apr 6 10:45:42 2003
+++ ./src/main.c Sat Apr 29 11:48:08 2006
@@ -60,6 +60,9 @@
N_("set the node color"), N_("color")},
{"text-color", 'T', POPT_ARG_STRING, &(pref.text_color), 0,
N_("set the text color"), N_("color")},
+ {"zero-delay", 'z', POPT_ARG_NONE, &(pref.zero_delay), 0,
+ N_("zero delay for reading capture files [cli only]"), NULL},
+
POPT_AUTOHELP {NULL, 0, 0, NULL, 0}
};

View file

@ -1,10 +1,10 @@
bin/etherape bin/etherape
etc/etherape/services etc/etherape/services
share/etherape/glade/etherape.glade2 %%DATADIR%%/glade/etherape.glade2
share/etherape/glade/etherape.png %%DATADIR%%/glade/etherape.png
share/etherape/glade/pause.xpm %%DATADIR%%/glade/pause.xpm
share/etherape/glade/play.xpm %%DATADIR%%/glade/play.xpm
share/etherape/glade/stop.xpm %%DATADIR%%/glade/stop.xpm
share/gnome/apps/Applications/etherape.desktop share/gnome/apps/Applications/etherape.desktop
share/gnome/help/etherape/C/topic.dat share/gnome/help/etherape/C/topic.dat
share/locale/es/LC_MESSAGES/etherape.mo share/locale/es/LC_MESSAGES/etherape.mo
@ -13,8 +13,8 @@ share/locale/nl/LC_MESSAGES/etherape.mo
share/locale/tr/LC_MESSAGES/etherape.mo share/locale/tr/LC_MESSAGES/etherape.mo
share/pixmaps/etherape.png share/pixmaps/etherape.png
@dirrm etc/etherape @dirrm etc/etherape
@dirrm share/etherape/glade @dirrm %%DATADIR%%/glade
@dirrm share/etherape @dirrm %%DATADIR%%
@dirrm share/gnome/help/etherape/C/stylesheet-images @dirrm share/gnome/help/etherape/C/stylesheet-images
@dirrm share/gnome/help/etherape/C @dirrm share/gnome/help/etherape/C
@dirrm share/gnome/help/etherape @dirrm share/gnome/help/etherape