Skip to content

Commit be3536c

Browse files
authored
[Ameba] Route hook voidptr (#27882)
* [routehook] fix void ptr dereference * restyle
1 parent b9874d6 commit be3536c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/platform/ameba/route_hook/ameba_route_hook.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static uint8_t icmp6_raw_recv_handler(void * arg, struct raw_pcb * pcb, struct p
140140
}
141141

142142
icmp_payload_len = p->tot_len - sizeof(struct ip6_hdr);
143-
icmp_payload = p->payload + sizeof(struct ip6_hdr);
143+
icmp_payload = (uint8_t *) p->payload + sizeof(struct ip6_hdr);
144144

145145
icmp6_header = (struct icmp6_hdr *) icmp_payload;
146146
if (icmp6_header->type == ICMP6_TYPE_RA)

0 commit comments

Comments
 (0)