zephyr/include/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
..
bt.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
buf.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
coap_link_format_sock.h net: coap: CoAP library support over sockets 2018-10-31 19:44:25 -04:00
coap_link_format.h net: coap: Deprecate net_pkt based CoAP library 2018-11-22 09:08:46 -05:00
coap_sock.h net: coap: CoAP library support over sockets 2018-10-31 19:44:25 -04:00
coap.h net: coap: Deprecate net_pkt based CoAP library 2018-11-22 09:08:46 -05:00
dhcpv4.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
dns_resolve.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ethernet_mgmt.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ethernet_vlan.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ethernet.h net/ethernet: Centralize where and when header is filled in 2018-11-30 11:12:13 -08:00
gptp.h net: gptp: Add clock accuracy selection 2018-10-01 14:48:53 +03:00
hostname.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
http_parser_state.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
http_parser_url.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
http_parser.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
http.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ieee802154_mgmt.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ieee802154_radio.h net/ieee802154: Remove unnecessary __packed keyword on API struct 2018-11-15 09:14:56 -05:00
ieee802154.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ipv4_autoconf.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
lldp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
lwm2m.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
mii.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
mqtt_legacy_types.h net: mqtt: Mark existing implementation as legacy 2018-11-19 09:31:01 -05:00
mqtt_legacy.h net: mqtt: Mark existing implementation as legacy 2018-11-19 09:31:01 -05:00
mqtt.h net: mqtt: Add TLS socket transport 2018-11-19 09:31:01 -05:00
net_app.h net: lib: Convert net_app to use log level 2018-10-04 14:13:57 +03:00
net_config.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_context.h c++: convert implicit conversion to explicit ones in header files 2018-11-16 15:18:36 -05:00
net_core.h net: logging: Remove function name from NET_DBG if needed 2018-10-19 13:54:50 +03:00
net_event.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_if.h net: if: Allow calling IPv4 specific functions 2018-11-08 15:23:05 +02:00
net_ip.h c++: convert implicit conversion to explicit ones in header files 2018-11-16 15:18:36 -05:00
net_l2.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_linkaddr.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_mgmt.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_offload.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_pkt.h net/ethernet: Centralize where and when header is filled in 2018-11-30 11:12:13 -08:00
net_stats.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
net_timeout.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
openthread.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
promiscuous.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ptp_time.h net: gptp: Convert SyncReceiptTime to ExtendedTimestamp 2018-10-01 14:48:53 +03:00
sntp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
socket_offload_ops.h net: sockets: Add getaddrinfo and freeaddrinfo to socket offloading 2018-10-02 11:11:15 +03:00
socket_offload.h net: sockets: Add getaddrinfo and freeaddrinfo to socket offloading 2018-10-02 11:11:15 +03:00
socket.h doc: sockets: Make TLS option descriptions doxygen 2018-11-21 12:25:57 -05:00
tcp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
tls_credentials.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
trickle.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
udp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
websocket_console.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
websocket.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
wifi_mgmt.h net: wifi: Allow mgmt interface to compile if not offloaded 2018-10-11 16:28:55 +03:00
wifi.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00