1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-ab,v 1.3 2006/04/14 10:32:02 rillig Exp $
Added more logging.
--- pptp.c.orig 2005-07-28 03:15:11.000000000 +0200
+++ pptp.c 2006-03-14 13:51:22.000000000 +0100
@@ -261,6 +261,8 @@ int main(int argc, char **argv, char **e
inetaddr = get_ip_address(argv[optind]);
optind++;
+ log("using remote IP address %s\n", inet_ntoa(inetaddr));
+
/* Find the ppp options, extract phone number */
pppdargc = argc - optind;
pppdargv = argv + optind;
@@ -504,6 +506,12 @@ void launch_pppd(char *ttydev, int argc,
for (j = 0; j < argc; j++)
new_argv[i++] = argv[j];
new_argv[i] = NULL;
+
+ fprintf(stderr, "running pppd:");
+ for (i = 0; new_argv[i] != NULL; i++)
+ fprintf(stderr, " %s", new_argv[i]);
+ fprintf(stderr, "\n");
+
execvp(new_argv[0], new_argv);
}
|