Skip to content
Permalink
Browse files

net: ppp: Handle received Discard-Request

We must discard the received Discard-Request silently.
See RFC 1661 chapter 5.9 for details.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar committed Jun 25, 2019
1 parent c4a692a commit 4a322c6a7c9b13728224b8ea953ac6282d64c010
Showing with 3 additions and 1 deletion.
  1. +3 −1 subsys/net/l2/ppp/fsm.c
@@ -1128,7 +1128,9 @@ enum net_verdict ppp_fsm_recv_discard_req(struct ppp_fsm *fsm,
NET_DBG("[%s/%p] Current state %s (%d)", fsm->name, fsm,
ppp_state_str(fsm->state), fsm->state);

return NET_DROP;
net_pkt_unref(pkt);

return NET_OK;
}

void ppp_send_proto_rej(struct net_if *iface, struct net_pkt *pkt,

0 comments on commit 4a322c6

Please sign in to comment.
You can’t perform that action at this time.