zephyr/subsys/net/ip
Andriy Gelman f12f9d5e95 net: pkt: Fix leak when using shallow clone
Currently a shallow clone of a packet will bump the reference count on
all the fragments. The net_pkt_unref() function, however, only drops the
reference count on the head fragment. Fix this by only bumping the ref
count on the head buf during shallow clone.

Only bumping the ref count of head is more in line with the idea that
head buf is not responsible for the fragments of its child.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2022-06-05 14:29:19 +02:00
..
6lo.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
6lo.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
6lo_private.h net: ip: 6lo (IPHC) uncompression rework 2019-07-25 15:19:28 +03:00
canbus_socket.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
canbus_socket.h net: can: Add CAN handling to net_context 2019-02-07 18:08:27 +02:00
CMakeLists.txt net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
connection.c net: conn: Add proper processing of DGRAM packet sockets 2022-05-27 15:40:29 -07:00
connection.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dhcpv4.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dhcpv4.h net: dhcpv4: check dhcpv4 msg len is correct 2020-11-02 12:56:16 +02:00
icmpv4.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
icmpv4.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
icmpv6.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
icmpv6.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
igmp.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv4.c net: ipv4: Accept unspecified src address if dst is broadcast 2022-05-27 15:46:44 -07:00
ipv4.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv4_autoconf.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv4_autoconf_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv6.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv6.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv6_fragment.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv6_mld.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipv6_nbr.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
Kconfig net: tcp: Remove unused config NET_TCP_BACKLOG_SIZE 2022-05-13 13:04:59 +02:00
Kconfig.debug kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.ipv4 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.ipv6 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.mgmt kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.stack kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.stats net: stats: Add IGMP statistics support 2021-04-29 14:49:55 +03:00
nbr.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
nbr.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_context.c net: context: prevent truncating outgoing datagrams 2022-06-01 11:17:07 +02:00
net_core.c net: conn: Add proper processing of DGRAM packet sockets 2022-05-27 15:40:29 -07:00
net_if.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_mgmt.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_pkt.c net: pkt: Fix leak when using shallow clone 2022-06-05 14:29:19 +02:00
net_private.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_shell.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_shell.h net: shell: Migrate to new shell API 2018-10-15 11:14:02 +03:00
net_stats.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_stats.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_tc.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net_tc_mapping.h net: Enable running without TX or RX threads 2021-04-27 12:02:19 +03:00
net_timeout.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
packet_socket.c net: sockets: packet: Remove obsolete TODO 2022-05-27 15:40:29 -07:00
packet_socket.h net: socket: packet: using pckt sckt for passing the PPP dialup data 2021-04-01 09:43:56 +03:00
promiscuous.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
route.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
route.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tcp.c net: tcp: Correctly determine when the TCP transmit window is full 2022-05-20 19:24:26 -07:00
tcp.h everywhere: fix typos 2022-03-18 13:24:08 -04:00
tcp_internal.h net: tcp: Add semaphore indicating if transfer is possible 2022-05-18 11:09:17 +02:00
tcp_private.h net: tcp: Implement persistent timer for sending ZWP 2022-05-18 11:09:17 +02:00
tp.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tp.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tp_priv.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
trickle.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
udp.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
udp_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
utils.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00