net: l2: ppp: ipcp: clear options after protocol goes down
Clear negotiated options in protocol down handler. That way all addresses are properly requested (by sending 0.0.0.0 in Configure-Req) in the subsequent option negotiation phases. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
eb2a64989b
commit
7996f527d5
1 changed files with 7 additions and 0 deletions
|
@ -481,6 +481,13 @@ static void ipcp_down(struct ppp_fsm *fsm)
|
|||
struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context,
|
||||
ipcp.fsm);
|
||||
|
||||
memset(&ctx->ipcp.my_options.address, 0,
|
||||
sizeof(ctx->ipcp.my_options.address));
|
||||
memset(&ctx->ipcp.my_options.dns1_address, 0,
|
||||
sizeof(ctx->ipcp.my_options.dns1_address));
|
||||
memset(&ctx->ipcp.my_options.dns2_address, 0,
|
||||
sizeof(ctx->ipcp.my_options.dns2_address));
|
||||
|
||||
if (!ctx->is_ipcp_up) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue