]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix demand mode with noremoteip option (#232)
authorpali <7141871+pali@users.noreply.github.com>
Tue, 26 Jan 2021 02:52:22 +0000 (03:52 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 02:52:22 +0000 (13:52 +1100)
commit99578f2b8bc6592119868e5fbe6f723cf3640bc2
treeacb1c95d259cffe8693fbfd7a87a24520bb4d317
parentbb4b502d41c08753e82c13792ed85e1ec8071a95
pppd: Fix demand mode with noremoteip option (#232)

When noremoteip is set then initial hisaddr (peer address) is zero. So to
handle setting correct peer address after establishing connection it is
needed to change logic around 'wo->hisaddr != 0' condition. wo->hisaddr
needs to be updated from initial zero address to correct peer address.

Signed-off-by: Pali Rohár <pali@kernel.org>
pppd/ipcp.c