1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #8257 from PeterKietzmann/pr_netif_raw_vector_release

sys/netif: include release of iovec in gnrc_netif_raw
This commit is contained in:
Martine Lenders 2017-12-13 17:52:17 +01:00 committed by GitHub
commit ef3c6022f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,8 +100,11 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
/* we don't need the netif snip: remove it */
pkt = gnrc_pktbuf_remove_snip(pkt, pkt);
}
/* prepare packet for sending */
vector = gnrc_pktbuf_get_iovec(pkt, &n);
if (vector != NULL) {
/* reassign for later release; vector is prepended to pkt */
pkt = vector;
struct iovec *v = (struct iovec *)vector->data;
netdev_t *dev = netif->dev;