mtr v0.30

- Fixed a typo in the changelog (NEWS) entry for 0.27. :-) added use
   of "MTR_OPTIONS" environment variable for defaults.

source: ftp://ftp.bitwizard.nl/mtr/mtr-0.30.tar.gz
This commit is contained in:
Roger Wolff 1999-03-04 00:00:00 +00:00 committed by Travis Cross
parent f4b205deba
commit a81e2a544a
3 changed files with 34 additions and 2 deletions

6
NEWS
View File

@ -1,5 +1,9 @@
WHAT'S NEW?
v0.30 Fixed a typo in the changelog (NEWS) entry for 0.27. :-)
added use of "MTR_OPTIONS" environment variable for defaults.
v0.29 Lots of stuff.
Neato overview display by David Sward.
FreeBSD does wrong in the kernel the same that Solaris/x86 (see
@ -14,7 +18,7 @@ WHAT'S NEW?
v0.27
Fixed bug that showed up on Solaris/x86.
Gimp mainloop now runs as it's supposed to.
GTK mainloop now runs as it's supposed to.
v0.26
Added "-n" flag for numeric output.

View File

@ -1,5 +1,5 @@
AC_INIT(mtr.c)
AM_INIT_AUTOMAKE(mtr, 0.29)
AM_INIT_AUTOMAKE(mtr, 0.30)
AC_SUBST(GTK_OBJ)
AC_SUBST(CURSES_OBJ)

28
mtr.c
View File

@ -109,6 +109,31 @@ void parse_arg(int argc, char **argv) {
}
void parse_mtr_options (char *string)
{
int argc;
char *argv[128], *p;
int i;
if (!string) return;
argv[0] = "mtr";
argc = 1;
p = strtok (string, " \t");
while (p) {
argv[argc++] = p;
p = strtok (NULL, " \t");
}
parse_arg (argc, argv);
optind = 0;
}
int main(int argc, char **argv) {
int traddr;
struct hostent *host;
@ -131,6 +156,9 @@ int main(int argc, char **argv) {
}
display_detect(&argc, &argv);
parse_mtr_options (getenv ("MTR_OPTIONS"));
parse_arg(argc, argv);
if(PrintVersion) {