Skip to content

Commit

Permalink
[SQUASH ME] ng_ipv6: postpone ipv6 header assignment due to duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Apr 22, 2015
1 parent 3c84e4c commit 1a51135
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sys/net/network_layer/ng_ipv6/ng_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static void _send_multicast(kernel_pid_t iface, ng_pktsnip_t *pkt,
static void _send(ng_pktsnip_t *pkt, bool prep_hdr)
{
kernel_pid_t iface = KERNEL_PID_UNDEF;
ng_pktsnip_t *ipv6 = pkt, *payload;
ng_pktsnip_t *ipv6, *payload;
ng_ipv6_hdr_t *hdr;
ng_ipv6_nc_t *nc_entry;

Expand All @@ -341,6 +341,9 @@ static void _send(ng_pktsnip_t *pkt, bool prep_hdr)
iface = ((ng_netif_hdr_t *)pkt->data)->if_pid;
ipv6 = pkt->next;
}
else {
ipv6 = pkt;
}

hdr = ipv6->data;
payload = ipv6->next; /* TODO: parse extension headers */
Expand Down

0 comments on commit 1a51135

Please sign in to comment.