mirror of
https://github.com/traviscross/mtr.git
synced 2024-09-21 18:37:10 +00:00
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:
parent
f4b205deba
commit
a81e2a544a
6
NEWS
6
NEWS
@ -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.
|
||||
|
@ -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
28
mtr.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user