gnrc_ipv6: use gnrc_netif_hdr_set_netif()
This commit is contained in:
parent
716cbe3f34
commit
7b43a8f9d5
@ -232,7 +232,7 @@ static void _send_to_iface(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
|
|||||||
const ipv6_hdr_t *hdr = pkt->next->data;
|
const ipv6_hdr_t *hdr = pkt->next->data;
|
||||||
|
|
||||||
assert(netif != NULL);
|
assert(netif != NULL);
|
||||||
((gnrc_netif_hdr_t *)pkt->data)->if_pid = netif->pid;
|
gnrc_netif_hdr_set_netif(pkt->data, netif);
|
||||||
if (gnrc_pkt_len(pkt->next) > netif->ipv6.mtu) {
|
if (gnrc_pkt_len(pkt->next) > netif->ipv6.mtu) {
|
||||||
DEBUG("ipv6: packet too big\n");
|
DEBUG("ipv6: packet too big\n");
|
||||||
gnrc_icmpv6_error_pkt_too_big_send(netif->ipv6.mtu, pkt);
|
gnrc_icmpv6_error_pkt_too_big_send(netif->ipv6.mtu, pkt);
|
||||||
|
|||||||
@ -830,7 +830,7 @@ static void _send_delayed_nbr_adv(const gnrc_netif_t *netif,
|
|||||||
if ((pkt = _check_release_pkt(pkt, payload)) == NULL) {
|
if ((pkt = _check_release_pkt(pkt, payload)) == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((gnrc_netif_hdr_t *)pkt->data)->if_pid = netif->pid;
|
gnrc_netif_hdr_set_netif(pkt->data, netif);
|
||||||
LL_PREPEND(payload, pkt);
|
LL_PREPEND(payload, pkt);
|
||||||
_evtimer_add(pkt, GNRC_IPV6_NIB_SND_NA, &nce->snd_na,
|
_evtimer_add(pkt, GNRC_IPV6_NIB_SND_NA, &nce->snd_na,
|
||||||
random_uint32_range(0, NDP_MAX_ANYCAST_MS_DELAY));
|
random_uint32_range(0, NDP_MAX_ANYCAST_MS_DELAY));
|
||||||
@ -1196,7 +1196,7 @@ static bool _resolve_addr(const ipv6_addr_t *dst, gnrc_netif_t *netif,
|
|||||||
queue_entry->pkt = NULL;
|
queue_entry->pkt = NULL;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
((gnrc_netif_hdr_t *)netif_hdr->data)->if_pid = netif->pid;
|
gnrc_netif_hdr_set_netif(netif_hdr->data, netif);
|
||||||
LL_PREPEND(queue_entry->pkt, netif_hdr);
|
LL_PREPEND(queue_entry->pkt, netif_hdr);
|
||||||
}
|
}
|
||||||
gnrc_pktqueue_add(&entry->pktqueue, queue_entry);
|
gnrc_pktqueue_add(&entry->pktqueue, queue_entry);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user