Root/package/network/services/ppp/patches/401-no_record_file.patch

1pppd: Remove the "record" option
2
3On many embedded systems there is not enough space to record PPP session
4information to the permanent storage, therfore remove this option.
5
6Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
7
8--- a/pppd/pppd.h
9+++ b/pppd/pppd.h
10@@ -309,7 +309,6 @@ extern int holdoff; /* Dead time before
11 extern bool holdoff_specified; /* true if user gave a holdoff value */
12 extern bool notty; /* Stdin/out is not a tty */
13 extern char *pty_socket; /* Socket to connect to pty */
14-extern char *record_file; /* File to record chars sent/received */
15 extern bool sync_serial; /* Device is synchronous serial device */
16 extern int maxfail; /* Max # of unsuccessful connection attempts */
17 extern char linkname[MAXPATHLEN]; /* logical name for link */
18--- a/pppd/tty.c
19+++ b/pppd/tty.c
20@@ -145,7 +145,7 @@ char *disconnect_script = NULL; /* Scrip
21 char *welcomer = NULL; /* Script to run after phys link estab. */
22 char *ptycommand = NULL; /* Command to run on other side of pty */
23 bool notty = 0; /* Stdin/out is not a tty */
24-char *record_file = NULL; /* File to record chars sent/received */
25+static char *const record_file = NULL; /* File to record chars sent/received */
26 int max_data_rate; /* max bytes/sec through charshunt */
27 bool sync_serial = 0; /* Device is synchronous serial device */
28 char *pty_socket = NULL; /* Socket to connect to pty */
29@@ -201,8 +201,10 @@ option_t tty_options[] = {
30       "Send and receive over socket, arg is host:port",
31       OPT_PRIO | OPT_DEVNAM },
32 
33+#if 0
34     { "record", o_string, &record_file,
35       "Record characters sent/received to file", OPT_PRIO },
36+#endif
37 
38     { "crtscts", o_int, &crtscts,
39       "Set hardware (RTS/CTS) flow control",
40

Archive Download this file



interactive