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:
commit
ef3c6022f2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user