zephyr/subsys/net/ip
Ravi kumar Veeramally 3ce7f89a8a net: pkt: Restore pkt cursor after cloning
net_pkt_clone() initializes the original packet cursor
and clone the packet. But it doesn't restore the cursor
back to original position.

Issue noticed when mDNS resolving fails when mdns responder
is also enabled.

net_conn_input(), in case of multicast packet, connection
handler clone the packet and deliver to matching handler.

Example case: dns_resolver and mdns_responder both register
handlers for 5353 port. After first clone original packet
cursor moved back to starting position. But first cloned
packet cursor is set properly. Second time cloning makes
cursor position to set to zero. Which makes second packet
handler header unpacking goes wrong.

Fixes #21970.

Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2020-02-21 16:49:14 +02:00
..
6lo_private.h
6lo.c net: 6lo: Fix memory corruption during uncompression 2020-01-22 11:57:11 -06:00
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt
connection.c
connection.h
dhcpv4.c net: core: Drop NET_ASSERT_INFO() macro 2020-01-08 14:10:21 +02:00
dhcpv4.h
icmpv4.c net: icmpv4: Add support for Timestamp and RR 2019-12-16 11:35:24 +02:00
icmpv4.h
icmpv6.c
icmpv6.h
ipv4_autoconf_internal.h
ipv4_autoconf.c
ipv4.c net: icmpv4: Add support for Timestamp and RR 2019-12-16 11:35:24 +02:00
ipv4.h net: icmpv4: Add support for Timestamp and RR 2019-12-16 11:35:24 +02:00
ipv6_fragment.c
ipv6_mld.c
ipv6_nbr.c net: ipv6: When sending NS, use correct destination address 2020-01-30 09:42:07 +02:00
ipv6.c net: ipv6: Add routing according to interface prefix 2020-01-20 17:22:49 +02:00
ipv6.h net: icmpv6: fix add own IP addr to nbr cache 2020-01-29 11:39:50 +02:00
Kconfig net: if: Add option to set ppp as default network if 2020-01-17 06:44:32 -06:00
Kconfig.debug
Kconfig.ipv4 net: icmpv4: Add support for Timestamp and RR 2019-12-16 11:35:24 +02:00
Kconfig.ipv6
Kconfig.mgmt kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.stack
Kconfig.stats
nbr.c net: icmpv6: fix add own IP addr to nbr cache 2020-01-29 11:39:50 +02:00
nbr.h net: icmpv6: fix add own IP addr to nbr cache 2020-01-29 11:39:50 +02:00
net_context.c net: core: Drop NET_ASSERT_INFO() macro 2020-01-08 14:10:21 +02:00
net_core.c
net_if.c net: if: Add option to set ppp as default network if 2020-01-17 06:44:32 -06:00
net_mgmt.c
net_pkt.c net: pkt: Restore pkt cursor after cloning 2020-02-21 16:49:14 +02:00
net_private.h
net_shell.c
net_shell.h
net_stats.c
net_stats.h net: stats: Fix RX traffic class time statistics update 2019-12-18 17:59:54 +02:00
net_tc_mapping.h
net_tc.c
packet_socket.c
packet_socket.h
promiscuous.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
route.c net: ipv6: Add routing according to interface prefix 2020-01-20 17:22:49 +02:00
route.h net: ipv6: Add routing according to interface prefix 2020-01-20 17:22:49 +02:00
tcp_internal.h
tcp.c net: core: Drop NET_ASSERT_INFO() macro 2020-01-08 14:10:21 +02:00
tcp2_priv.h net: tcp2: Support tracking of net_buf_clone() 2020-01-08 14:10:21 +02:00
tcp2.c net: tcp2: Guard on th being NULL in SYN_RECEIVED 2020-01-17 10:24:06 +02:00
tcp2.h net: tcp2: Rename tcp_pkt_received() into tcp_recv() 2020-01-17 10:24:06 +02:00
tp_priv.h
tp.c net: tp: Add a support for arbitrary payloads in tp_output() 2020-01-17 10:24:06 +02:00
tp.h net: tcp2: Support tracking of net_buf_clone() 2020-01-08 14:10:21 +02:00
trickle.c
udp_internal.h
udp.c net: ipv4: Add IPv4 options length to net pkt 2019-12-16 11:35:24 +02:00
utils.c net: ipv4: Add IPv4 options length to net pkt 2019-12-16 11:35:24 +02:00