|
Lines 93-98
static bool usepeerdns; /* Ask peer fo
Link Here
|
| 93 |
static int ipcp_is_up; /* have called np_up() */ |
93 |
static int ipcp_is_up; /* have called np_up() */ |
| 94 |
static int ipcp_is_open; /* haven't called np_finished() */ |
94 |
static int ipcp_is_open; /* haven't called np_finished() */ |
| 95 |
static bool ask_for_local; /* request our address from peer */ |
95 |
static bool ask_for_local; /* request our address from peer */ |
|
|
96 |
static bool hide_local; /* hide our address from peer */ |
| 96 |
static char vj_value[8]; /* string form of vj option value */ |
97 |
static char vj_value[8]; /* string form of vj option value */ |
| 97 |
static char netmask_str[20]; /* string form of netmask value */ |
98 |
static char netmask_str[20]; /* string form of netmask value */ |
| 98 |
|
99 |
|
|
Lines 165-170
static option_t ipcp_option_list[] = {
Link Here
|
| 165 |
|
166 |
|
| 166 |
{ "ipcp-accept-local", o_bool, &ipcp_wantoptions[0].accept_local, |
167 |
{ "ipcp-accept-local", o_bool, &ipcp_wantoptions[0].accept_local, |
| 167 |
"Accept peer's address for us", 1 }, |
168 |
"Accept peer's address for us", 1 }, |
|
|
169 |
{ "ipcp-hide-local", o_bool, &hide_local, |
| 170 |
"Don't tell peer about our address", 0 }, |
| 168 |
{ "ipcp-accept-remote", o_bool, &ipcp_wantoptions[0].accept_remote, |
171 |
{ "ipcp-accept-remote", o_bool, &ipcp_wantoptions[0].accept_remote, |
| 169 |
"Accept peer's address for it", 1 }, |
172 |
"Accept peer's address for it", 1 }, |
| 170 |
|
173 |
|
|
Lines 1637-1643
ip_check_options()
Link Here
|
| 1637 |
wo->ouraddr = local; |
1640 |
wo->ouraddr = local; |
| 1638 |
} |
1641 |
} |
| 1639 |
} |
1642 |
} |
| 1640 |
ask_for_local = wo->ouraddr != 0 || !disable_defaultip; |
1643 |
|
|
|
1644 |
if(hide_local) |
| 1645 |
ask_for_local = 0; |
| 1646 |
else |
| 1647 |
ask_for_local = wo->ouraddr != 0 || !disable_defaultip; |
| 1641 |
} |
1648 |
} |
| 1642 |
|
1649 |
|
| 1643 |
|
1650 |
|