source:
freewrt/package/ppp/patches/101-debian_ip-up_option.patch@
6fc4520e
| Last change on this file since 6fc4520e was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 3.4 KB | |
-
pppd/ipcp.c
diff -ruNp ppp-2.4.3.orig/pppd/ipcp.c ppp-2.4.3/pppd/ipcp.c
old new ipcp_up(f) 1846 1846 */ 1847 1847 if (ipcp_script_state == s_down && ipcp_script_pid == 0) { 1848 1848 ipcp_script_state = s_up; 1849 ipcp_script( _PATH_IPUP);1849 ipcp_script(path_ipup); 1850 1850 } 1851 1851 } 1852 1852 … … ipcp_down(f) 1896 1896 /* Execute the ip-down script */ 1897 1897 if (ipcp_script_state == s_up && ipcp_script_pid == 0) { 1898 1898 ipcp_script_state = s_down; 1899 ipcp_script( _PATH_IPDOWN);1899 ipcp_script(path_ipdown); 1900 1900 } 1901 1901 } 1902 1902 … … ipcp_script_done(arg) 1950 1950 case s_up: 1951 1951 if (ipcp_fsm[0].state != OPENED) { 1952 1952 ipcp_script_state = s_down; 1953 ipcp_script( _PATH_IPDOWN);1953 ipcp_script(path_ipdown); 1954 1954 } 1955 1955 break; 1956 1956 case s_down: 1957 1957 if (ipcp_fsm[0].state == OPENED) { 1958 1958 ipcp_script_state = s_up; 1959 ipcp_script( _PATH_IPUP);1959 ipcp_script(path_ipup); 1960 1960 } 1961 1961 break; 1962 1962 } -
pppd/main.c
diff -ruNp ppp-2.4.3.orig/pppd/main.c ppp-2.4.3/pppd/main.c
old new main(argc, argv) 314 314 struct protent *protp; 315 315 char numbuf[16]; 316 316 317 strlcpy(path_ipup, _PATH_IPUP, sizeof(path_ipup)); 318 strlcpy(path_ipdown, _PATH_IPDOWN, sizeof(path_ipdown)); 319 317 320 link_stats_valid = 0; 318 321 new_phase(PHASE_INITIALIZE); 319 322 -
pppd/options.c
diff -ruNp ppp-2.4.3.orig/pppd/options.c ppp-2.4.3/pppd/options.c
old new char linkname[MAXPATHLEN]; /* logical na 108 108 bool tune_kernel; /* may alter kernel settings */ 109 109 int connect_delay = 1000; /* wait this many ms after connect script */ 110 110 int req_unit = -1; /* requested interface unit */ 111 char path_ipup[MAXPATHLEN]; /* pathname of ip-up script */ 112 char path_ipdown[MAXPATHLEN];/* pathname of ip-down script */ 111 113 bool multilink = 0; /* Enable multilink operation */ 112 114 char *bundle_name = NULL; /* bundle name for multilink */ 113 115 bool dump_options; /* print out option values */ … … option_t general_options[] = { 276 278 "Number of seconds to wait for child processes at exit", 277 279 OPT_PRIO }, 278 280 281 { "ip-up-script", o_string, path_ipup, 282 "Set pathname of ip-up script", 283 OPT_PRIV|OPT_STATIC, NULL, MAXPATHLEN }, 284 { "ip-down-script", o_string, path_ipdown, 285 "Set pathname of ip-down script", 286 OPT_PRIV|OPT_STATIC, NULL, MAXPATHLEN }, 287 279 288 #ifdef HAVE_MULTILINK 280 289 { "multilink", o_bool, &multilink, 281 290 "Enable multilink operation", OPT_PRIO | 1 }, -
pppd/pppd.h
diff -ruNp ppp-2.4.3.orig/pppd/pppd.h ppp-2.4.3/pppd/pppd.h
old new extern bool tune_kernel; /* May alter ke 312 312 extern int connect_delay; /* Time to delay after connect script */ 313 313 extern int max_data_rate; /* max bytes/sec through charshunt */ 314 314 extern int req_unit; /* interface unit number to use */ 315 extern char path_ipup[MAXPATHLEN]; /* pathname of ip-up script */ 316 extern char path_ipdown[MAXPATHLEN]; /* pathname of ip-down script */ 315 317 extern bool multilink; /* enable multilink operation */ 316 318 extern bool noendpoint; /* don't send or accept endpt. discrim. */ 317 319 extern char *bundle_name; /* bundle name for multilink */
Note:
See TracBrowser
for help on using the repository browser.
