zephyr/subsys/net/ip
Florian Grandel b674ed6b8b net: pkt: decouple from ieee802154 internals
This change implements part two of the program laid out in the TSCH RFC,
see #50336#issuecomment-1250250154 :

> Consolidate IEEE 802.15.4 options in net_pkt

This change improves decoupling of generic net core code from
IEEE 802.15.4 internals. It also simplifies IEEE 802.15.4
attribute cloning and thereby makes it easier to maintain and less
error prone (and probably even faster as individual bits are no longer
copied over separately).

This enables us to extend and design IEEE 802.15.4 L2 attributes inside
the package in isolation from the net core code which will no longer
have to be changed when introducing changes or additions to the flags.

This flexibility will be built upon in later change sets to model the
IEEE 802.15.4 attributes closer to the spec.

The solution is inspired by Linux's sk_buff->cb attribute which addresses
the same concern as the attribute introduced in this change set:
https://elixir.bootlin.com/linux/v6.0.1/source/include/linux/skbuff.h#L871

As the inline comment says: The cb attribute can be made a union or even a
uint8[something] in the future, if further L2s need a control block, too.
Right now such full indirection would make the code overly abstract, so
I chose to compromise with maintainability in mind.

Care has been taken to ensure that this changes does not introduce
additional padding into the net package. To maintain zero-padding, future
changes to the net packet struct will have to ensure that the
IEEE 802.15.4 struct is 4-byte aligned (iff the IEEE 802.15.4 struct
continues with max uint32_t scalar members) which is no deviation from
the previous implementation.

Signed-off-by: Florian Grandel <jerico.dev@gmail.com>
2022-10-17 16:54:37 +02:00
..
6lo_private.h
6lo.c
6lo.h
canbus_socket.c net: core: clean up inbound packet handling 2022-09-05 14:35:17 +00:00
canbus_socket.h
CMakeLists.txt net: lib: sockets: improve scalability through a hidden var 2022-09-05 14:35:17 +00:00
connection.c net: ip: fix minor formatting glitch 2022-10-12 18:40:59 +02:00
connection.h net: lib: sockets: improve scalability through a hidden var 2022-09-05 14:35:17 +00:00
dhcpv4.c net: dhcp: Add support for restarting DHCP 2022-09-06 09:56:22 +02:00
dhcpv4.h
icmpv4.c net: icmp: skip checksum calculation when possible 2022-08-09 12:29:18 +02:00
icmpv4.h
icmpv6.c net: icmp: skip checksum calculation when possible 2022-08-09 12:29:18 +02:00
icmpv6.h
igmp.c
ipv4_autoconf_internal.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
ipv4_autoconf.c net: ip: only start IP configuration on IP interfaces 2022-08-04 13:44:06 +02:00
ipv4.c
ipv4.h
ipv6_fragment.c
ipv6_mld.c
ipv6_nbr.c net: ipv6: Allowed to add route to router's link local address 2022-10-05 16:22:40 +00:00
ipv6.c
ipv6.h
Kconfig net: lib: sockets: improve scalability through a hidden var 2022-09-05 14:35:17 +00:00
Kconfig.debug
Kconfig.ipv4
Kconfig.ipv6 net: l2: ieee802154: decouple L2/L3 concerns 2022-08-04 13:44:06 +02:00
Kconfig.mgmt
Kconfig.stack
Kconfig.stats wifi_mgmt: Add new API for Wi-Fi statistics 2022-08-31 21:49:47 +00:00
nbr.c
nbr.h
net_context.c net: l2: ieee802154: improve short address support 2022-10-12 18:40:59 +02:00
net_core.c net: ip: core: clean up check_ip_addr() 2022-09-05 14:35:17 +00:00
net_if.c net: context: clean up net_context_get() 2022-09-05 14:35:17 +00:00
net_mgmt.c
net_pkt.c net: pkt: decouple from ieee802154 internals 2022-10-17 16:54:37 +02:00
net_private.h
net_shell.c net: shell: fix memory leak in udp_rcvd() 2022-10-13 17:10:28 +02:00
net_shell.h
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
net_timeout.c
packet_socket.c net: core: clean up inbound packet handling 2022-09-05 14:35:17 +00:00
packet_socket.h
promiscuous.c
route.c net/route: Add missing lock in net_route_mcast_add() 2022-10-17 10:13:56 +02:00
route.h
tcp_internal.h
tcp_private.h net: tcp: Implement a fast retransmit algorithm 2022-09-01 10:38:28 +00:00
tcp.c net: context: clean up net_context_get() 2022-09-05 14:35:17 +00:00
tcp.h
tp_priv.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
tp.c
tp.h
trickle.c
udp_internal.h
udp.c
utils.c net: introduce NET_IP config to efficiently mark conditional code 2022-09-05 14:35:17 +00:00