Bugzilla – Attachment 65814 Details for
Bug 145683
dial on demand with modem does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
suggested patch for pppd (untested)
ppp-ipcp-hide-local.diff (text/plain), 1.20 KB, created by
Ludwig Nussel
on 2006-01-31 09:50:04 UTC
(
hide
)
Description:
suggested patch for pppd (untested)
Filename:
MIME Type:
Creator:
Ludwig Nussel
Created:
2006-01-31 09:50:04 UTC
Size:
1.20 KB
patch
obsolete
>Index: ppp-2.4.3/pppd/ipcp.c >=================================================================== >--- ppp-2.4.3.orig/pppd/ipcp.c >+++ ppp-2.4.3/pppd/ipcp.c >@@ -93,6 +93,7 @@ static bool usepeerdns; /* Ask peer fo > static int ipcp_is_up; /* have called np_up() */ > static int ipcp_is_open; /* haven't called np_finished() */ > static bool ask_for_local; /* request our address from peer */ >+static bool hide_local; /* hide our address from peer */ > static char vj_value[8]; /* string form of vj option value */ > static char netmask_str[20]; /* string form of netmask value */ > >@@ -165,6 +166,8 @@ static option_t ipcp_option_list[] = { > > { "ipcp-accept-local", o_bool, &ipcp_wantoptions[0].accept_local, > "Accept peer's address for us", 1 }, >+ { "ipcp-hide-local", o_bool, &hide_local, >+ "Don't tell peer about our address", 0 }, > { "ipcp-accept-remote", o_bool, &ipcp_wantoptions[0].accept_remote, > "Accept peer's address for it", 1 }, > >@@ -1637,7 +1640,11 @@ ip_check_options() > wo->ouraddr = local; > } > } >- ask_for_local = wo->ouraddr != 0 || !disable_defaultip; >+ >+ if(hide_local) >+ ask_for_local = 0; >+ else >+ ask_for_local = wo->ouraddr != 0 || !disable_defaultip; > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 145683
: 65814