net: ppp: ipcp: do not require a peer address
It is not unusual that the peer does not provide an IP address in the ipcp negotiation. But because ppp is a peer-to-peer protocol, we do not actually need to know the peer's address to use the network. Signed-off-by: Göran Weinholt <goran.weinholt@endian.se>
This commit is contained in:
parent
63b22d7015
commit
eef8e67ea7
1 changed files with 5 additions and 2 deletions
|
@ -183,8 +183,11 @@ static int ipcp_config_info_req(struct ppp_fsm *fsm,
|
||||||
ctx = CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm);
|
ctx = CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm);
|
||||||
|
|
||||||
if (address_option_idx < 0) {
|
if (address_option_idx < 0) {
|
||||||
/* Address option was not present */
|
/* The address option was not present, but we
|
||||||
return -EINVAL;
|
* can continue without it. */
|
||||||
|
NET_DBG("[%s/%p] No %saddress provided",
|
||||||
|
fsm->name, fsm, "peer ");
|
||||||
|
return PPP_CONFIGURE_ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
code = PPP_CONFIGURE_ACK;
|
code = PPP_CONFIGURE_ACK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue