zephyr/subsys/net/l2
Seppo Takalo d5f4ca3b64 net: ppp: Allow peer-options to be rejected
There are cases, for example when peer is requesting two DNS
addresses, but we can only give one, we should reject the secondary
DNS request first, before sending NAK to acceptable options.

Option parser can reject a parameter by returning -ENOTSUP and when
it wants to NAK the parameter, it returns -EINVAL.

On RFC 1661:
Configure-Reject
  If some Configuration Options received in a Configure-Request are
  not recognizable or are not acceptable for negotiation (as
  configured by a network administrator), then the implementation
  MUST transmit a Configure-Reject.

Configure-Nak
  If every instance of the received Configuration Options is
  recognizable, but some values are not acceptable, then the
  implementation MUST transmit a Configure-Nak.

So as stated by RFC, we should start the negotiation by rejecting all
parameters that we cannot configure. I added an example of rejecting
DNS requests, if we don't have those.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-07-19 13:24:41 -04:00
..
canbus net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
dummy net: l2: dummy: Update sent statistics 2025-03-21 14:18:25 +01:00
ethernet net: ipv4: Avoid casting unaligned address to struct in_addr 2025-07-04 13:16:32 -05:00
ieee802154 net: l2: ieee802154: mgmt: fix net_pkt leaks 2025-07-10 10:13:35 -05:00
offloaded_netdev
openthread net: mgmt: Convert the mgmt API to use 64-bit masks 2025-06-18 10:54:44 +02:00
ppp net: ppp: Allow peer-options to be rejected 2025-07-19 13:24:41 -04:00
virtual net: mgmt: Convert the mgmt API to use 64-bit masks 2025-06-18 10:54:44 +02:00
wifi net: l2: wifi: Fix roaming fail issue 2025-06-27 18:27:45 -05:00
CMakeLists.txt openthread: Separate OpenThread Kconfigs from L2 layer 2025-04-23 17:54:58 +02:00
Kconfig