Skip to content

Commit

Permalink
[SQUASH ME] ng_ipv6: fix receive
Browse files Browse the repository at this point in the history
Conflicts:
	sys/net/network_layer/ng_ipv6/ng_ipv6.c
  • Loading branch information
miri64 committed Mar 25, 2015
1 parent a052041 commit ef6fc20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/net/network_layer/ng_ipv6/ng_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ static void _handle_receive(kernel_pid_t netif, ng_pktsnip_t *pkt)
if (_pkt_not_for_me(&netif, hdr)) { /* if packet is not for me */
/* redirect to next hop */
ng_pktbuf_hold(ipv6, 1);
ipv6->next = NULL;
ng_pktbuf_release(pkt); /* Drop everything except IPv6 */
ipv6->next = NULL;
_handle_send(ipv6, true, false);
Expand Down Expand Up @@ -685,6 +686,8 @@ ng_nettype_t ng_ipv6_demux(ng_pktsnip_t *pkt, uint8_t nh)

case NG_PROTNUM_ICMPV6:
DEBUG("ipv6: Received ICMPv6 packet.\n");
pkt->type = NG_NETTYPE_ICMPV6; /* preset needed for further
* handling*/
ng_icmpv6_demux(pkt);
return NG_NETTYPE_ICMPV6;
#endif
Expand Down

0 comments on commit ef6fc20

Please sign in to comment.