Skip to content

Commit

Permalink
shell: add examplery ng_ipv6_nc_still_reachable()
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed May 17, 2015
1 parent ee11a2a commit db33a10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/shell/commands/sc_icmpv6_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "byteorder.h"
#include "net/ng_icmpv6.h"
#include "net/ng_ipv6/addr.h"
#include "net/ng_ipv6/nc.h"
#include "net/ng_ipv6/hdr.h"
#include "net/ng_netbase.h"
#include "thread.h"
Expand Down Expand Up @@ -83,6 +84,7 @@ int _handle_reply(ng_pktsnip_t *pkt, uint64_t time)
ng_ipv6_addr_to_str(ipv6_str, &(ipv6_hdr->src), sizeof(ipv6_str)),
byteorder_ntohs(icmpv6_hdr->id), byteorder_ntohs(icmpv6_hdr->seq),
ipv6_hdr->hl, time / MS_IN_USEC, time % MS_IN_USEC);
ng_ipv6_nc_still_reachable(&ipv6_hdr->src);
}
else {
puts("error: unexpected parameters");
Expand Down

0 comments on commit db33a10

Please # to comment.