ppp: version bump to 2.4.5
[openwrt/staging/mkresin.git] / package / ppp / patches / 401-no_record_file.patch
1 --- a/pppd/pppd.h
2 +++ b/pppd/pppd.h
3 @@ -309,7 +309,6 @@ extern int holdoff; /* Dead time before
4 extern bool holdoff_specified; /* true if user gave a holdoff value */
5 extern bool notty; /* Stdin/out is not a tty */
6 extern char *pty_socket; /* Socket to connect to pty */
7 -extern char *record_file; /* File to record chars sent/received */
8 extern bool sync_serial; /* Device is synchronous serial device */
9 extern int maxfail; /* Max # of unsuccessful connection attempts */
10 extern char linkname[MAXPATHLEN]; /* logical name for link */
11 --- a/pppd/tty.c
12 +++ b/pppd/tty.c
13 @@ -145,7 +145,7 @@ char *disconnect_script = NULL; /* Scrip
14 char *welcomer = NULL; /* Script to run after phys link estab. */
15 char *ptycommand = NULL; /* Command to run on other side of pty */
16 bool notty = 0; /* Stdin/out is not a tty */
17 -char *record_file = NULL; /* File to record chars sent/received */
18 +static char *const record_file = NULL; /* File to record chars sent/received */
19 int max_data_rate; /* max bytes/sec through charshunt */
20 bool sync_serial = 0; /* Device is synchronous serial device */
21 char *pty_socket = NULL; /* Socket to connect to pty */
22 @@ -201,8 +201,10 @@ option_t tty_options[] = {
23 "Send and receive over socket, arg is host:port",
24 OPT_PRIO | OPT_DEVNAM },
25
26 +#if 0
27 { "record", o_string, &record_file,
28 "Record characters sent/received to file", OPT_PRIO },
29 +#endif
30
31 { "crtscts", o_int, &crtscts,
32 "Set hardware (RTS/CTS) flow control",