Skip to content
Snippets Groups Projects
Unverified Commit ef3c6022 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #8257 from PeterKietzmann/pr_netif_raw_vector_release

sys/netif: include release of iovec in gnrc_netif_raw
parents dbc57746 70810ae6
Branches
No related tags found
No related merge requests found
...@@ -100,8 +100,11 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) ...@@ -100,8 +100,11 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
/* we don't need the netif snip: remove it */ /* we don't need the netif snip: remove it */
pkt = gnrc_pktbuf_remove_snip(pkt, pkt); pkt = gnrc_pktbuf_remove_snip(pkt, pkt);
} }
/* prepare packet for sending */
vector = gnrc_pktbuf_get_iovec(pkt, &n); vector = gnrc_pktbuf_get_iovec(pkt, &n);
if (vector != NULL) { if (vector != NULL) {
/* reassign for later release; vector is prepended to pkt */
pkt = vector;
struct iovec *v = (struct iovec *)vector->data; struct iovec *v = (struct iovec *)vector->data;
netdev_t *dev = netif->dev; netdev_t *dev = netif->dev;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment