[Ameba] Route hook voidptr (#27882)

* [routehook] fix void ptr dereference

* restyle
diff --git a/examples/platform/ameba/route_hook/ameba_route_hook.c b/examples/platform/ameba/route_hook/ameba_route_hook.c
index 0be1f71..66cbfcb 100644
--- a/examples/platform/ameba/route_hook/ameba_route_hook.c
+++ b/examples/platform/ameba/route_hook/ameba_route_hook.c
@@ -140,7 +140,7 @@
     }
 
     icmp_payload_len = p->tot_len - sizeof(struct ip6_hdr);
-    icmp_payload     = p->payload + sizeof(struct ip6_hdr);
+    icmp_payload     = (uint8_t *) p->payload + sizeof(struct ip6_hdr);
 
     icmp6_header = (struct icmp6_hdr *) icmp_payload;
     if (icmp6_header->type == ICMP6_TYPE_RA)