zephyr/subsys/net/l2
Marcin Niestroj cbb3e9a065 net: l2: ppp: fix MRU when CONFIG_NET_L2_PPP_OPTION_MRU=n
When support for custom MRU/MTU was added with
CONFIG_NET_L2_PPP_OPTION_MRU=y, code flow with
CONFIG_NET_L2_PPP_OPTION_MRU=n has been broken due to lack of valid
'ctx->lcp.my_options.mru' initialization and its use (with value 0) in
the implementation.

Initialize 'ctx->lcp.my_options.mru' unconditionally in lcp_init(), so
that PPP works fine with CONFIG_NET_L2_PPP_OPTION_MRU=n.

Fixes: 8a51a79d89 ("net: l2: ppp: possibility to have a custom
  MRU/MTU")

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2021-12-21 17:12:24 +01:00
..
bluetooth samples: conn_cb replace to const zsector 2021-08-11 13:42:28 +02:00
canbus drivers: can: deprecate the use of CAN-specific error return values 2021-12-09 12:37:40 -05:00
dummy net: capture: Catch sent and received packets 2021-04-02 07:24:06 -04:00
ethernet net: dsa: Update iface description for mac table programming functions 2021-12-01 13:58:08 -06:00
ieee802154 net: l2: ieee802154: Fix packed structure warning 2021-11-25 10:46:35 -05:00
openthread net: openthread: store settings in RAM if there is no flash driver 2021-12-09 11:04:49 -06:00
ppp net: l2: ppp: fix MRU when CONFIG_NET_L2_PPP_OPTION_MRU=n 2021-12-21 17:12:24 +01:00
virtual net: ipv6: Remove in6_addr from packed net_ipv6_hdr struct 2021-11-25 10:46:35 -05:00
wifi net: l2: wifi_shell: mac address in scanning results 2021-10-07 10:55:37 +02:00
CMakeLists.txt
Kconfig net: l2: Add symbols for custom IEEE802154 L2 2021-11-23 13:25:01 -05:00