mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc: add comment about gnrc_pktbuf_hold() use
This commit is contained in:
parent
e8b3b4d3e4
commit
300a936e42
@ -92,6 +92,7 @@ int gnrc_netapi_dispatch(gnrc_nettype_t type, uint32_t demux_ctx,
|
||||
if (numof != 0) {
|
||||
gnrc_netreg_entry_t *sendto = gnrc_netreg_lookup(type, demux_ctx);
|
||||
|
||||
/* the packet is replicated over all interfaces that is's being sent on */
|
||||
gnrc_pktbuf_hold(pkt, numof - 1);
|
||||
|
||||
while (sendto) {
|
||||
|
@ -576,7 +576,7 @@ static void _send_multicast(gnrc_pktsnip_t *pkt, bool prep_hdr,
|
||||
if (!gnrc_netif_highlander()) {
|
||||
/* interface not given: send over all interfaces */
|
||||
if (netif == NULL) {
|
||||
/* send packet to link layer */
|
||||
/* the packet is replicated over all interfaces that is's being sent on */
|
||||
gnrc_pktbuf_hold(pkt, ifnum - 1);
|
||||
|
||||
while ((netif = gnrc_netif_iter(netif))) {
|
||||
|
Loading…
Reference in New Issue
Block a user