zephyr/subsys/net
Tomasz Bursztyka dcc6eddfef net/ethernet: Centralize where and when header is filled in
Current code generating Ethernet header is scattered all over the place,
sometimes in functions that are supposed to check something (and not
filling the header). Not to say about innefficiency.

Src ll address does not need to be set in L2 as net_if.c handles that
already.

Broadcast dst ll address is the same in ipv4 or ipv6, thus factorizing.
In each case, multicast is filled in only at the relevant place.

This is the first step towards changing L2 sending logic, when L2 send
API function will be the only point of sending. The redirection from
driver to L2 again (which finally uses the right device API function to
send) it a temporary hack.

This simplifies the code but will also enable using statically
allocated net_buf and ethernet header payload buffer afterwards.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2018-11-30 11:12:13 -08:00
..
ip net: ipv4: Drop incoming packets with src addr is multicast 2018-11-28 10:13:41 +01:00
l2 net/ethernet: Centralize where and when header is filled in 2018-11-30 11:12:13 -08:00
lib net: mqtt: Fix NULL pointer dereference in logs 2018-11-28 13:09:46 -08:00
buf.c net: buf: Fix debug level setting 2018-10-23 10:36:01 +03:00
CMakeLists.txt net: l2: Move the layer 2 code into subsys/net/ 2018-06-27 17:02:59 +03:00
hostname.c net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig net: buf: Use proper Kconfig log level template 2018-10-24 15:10:33 +03:00
Kconfig.hostname net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.template.log_config.default.net net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.template.log_config.net net: Honor default log level 2018-10-19 16:13:48 -04:00
TODO Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00