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:
Göran Weinholt 2020-02-17 12:38:21 +01:00 committed by Jukka Rissanen
commit eef8e67ea7

View file

@ -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;