zephyr/samples/net
Tomasz Bursztyka 4b78a251d7 net/context: Make recv_cb providing the ip and protocol headers
If status is 0, both ip_hdr and proto_hdr will own a pointer to the
relevant IP and Protocol headers. In order to know which of ipv4/ipv6
and udp/tcp one will need to use respectively net_pkt_family(pkt) and
net_context_get_ip_proto(context).

Having access to those headers directly, many callbacks will not need
to parse the packet again no get the src/dst addresses or the src/dst
ports. This will be change after this commit.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2019-02-01 14:34:38 +02:00
..
coap_client net/context: Make recv_cb providing the ip and protocol headers 2019-02-01 14:34:38 +02:00
coap_server net/context: Make recv_cb providing the ip and protocol headers 2019-02-01 14:34:38 +02:00
common
dhcpv4_client
dns_resolve
eth_native_posix samples: net: Remove net-app based sample applications 2019-02-01 12:29:21 +02:00
gptp samples: net: Remove net-app based sample applications 2019-02-01 12:29:21 +02:00
ipv4_autoconf
leds_demo net/context: Make recv_cb providing the ip and protocol headers 2019-02-01 14:34:38 +02:00
lldp samples: net: Remove net-app based sample applications 2019-02-01 12:29:21 +02:00
lwm2m_client
mdns_responder
mqtt_publisher
nats net/context: Make recv_cb providing the ip and protocol headers 2019-02-01 14:34:38 +02:00
promiscuous_mode
sockets samples: net: Remove net-app based sample applications 2019-02-01 12:29:21 +02:00
stats samples: net: Remove net-app based sample applications 2019-02-01 12:29:21 +02:00
syslog_net
telnet
vlan samples: net: Remove net-app based sample applications 2019-02-01 12:29:21 +02:00
wifi
wpan_serial
wpanusb
zperf net/context: Make recv_cb providing the ip and protocol headers 2019-02-01 14:34:38 +02:00
net.rst