zephyr/tests/net
Tomasz Bursztyka 024a7e0502 net/sockets: Adapt net_pkt_get_src_addr to new net_pkt API
This function is only used in sockets, thus making it a private function
of socket library and renaming it relevantly.

Note that sockets should be reviewed at some point to avoid using such
function: zsock_received_cb() already get the ip header and the protocol
header, so it could grab the src addr/port from there. It would be way
more optimized to do so, since net_pkt_get_src_addr is costly as it
parses all over again the ip/protocol headers.

utils unit test is updated and the test of the former
net_pkt_get_src_addr/net_pkt_get_dst_addr are removed.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2019-02-12 20:24:02 -05:00
..
6lo net/ipv6: Switch RA msg handler to new net_pkt API 2019-02-01 14:34:38 +02:00
all net: http: Remove HTTP client and server APIs 2019-01-25 11:21:20 -05:00
arp net: pkt: convert remaining users of ref to atomic_ref 2019-01-29 09:22:14 +02:00
buf cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
checksum_offload net/ethernet: Remove inserted L2 header buffer 2019-02-08 14:24:03 +02:00
context net/ethernet: Remove inserted L2 header buffer 2019-02-08 14:24:03 +02:00
dhcpv4 cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
ethernet_mgmt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
icmpv6 tests/icmpv6: Real packet length must be given 2019-02-01 14:34:38 +02:00
ieee802154 cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
iface cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
ip-addr cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
ipv6 tests: net: ipv6: Fix the DAD failure in the test 2019-02-08 14:24:03 +02:00
ipv6_fragment net: ip: Add protocol family type to conn handler 2019-02-07 14:43:30 +02:00
lib tests: CONFIG_NET* fixup 2019-02-08 13:57:55 +02:00
mgmt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
mld net/ipv6: Switch MLD join, leave and report to new net_pkt API 2019-02-01 14:34:38 +02:00
neighbor cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
net_pkt tests: CONFIG_NET* fixup 2019-02-08 13:57:55 +02:00
net_pkt_new net/pkt: Allocate relevant size on AF_UNSPEC 2019-02-04 17:15:52 +02:00
promiscuous cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
ptp/clock net: app: Remove net-app API files 2019-02-01 12:29:21 +02:00
route cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
socket tests: socket: misc: Add test for gethostname() 2019-02-08 10:39:30 +02:00
tcp net: ip: Add protocol family type to conn handler 2019-02-07 14:43:30 +02:00
traffic_class net/ethernet: Remove inserted L2 header buffer 2019-02-08 14:24:03 +02:00
trickle cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
tx_timestamp net: app: Remove net-app API files 2019-02-01 12:29:21 +02:00
udp net: ip: Add protocol family type to conn handler 2019-02-07 14:43:30 +02:00
utils net/sockets: Adapt net_pkt_get_src_addr to new net_pkt API 2019-02-12 20:24:02 -05:00
vlan net: app: Remove net-app API files 2019-02-01 12:29:21 +02:00