From a7d1b7a008c86d84b8bc0df257ca7d791dfde8b5 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 20 Mar 2012 18:26:27 +0100 Subject: [PATCH] proto_ipv6_routing: removed GCC overflow warning of loop counter Removed GCC overflow warning of loop counter. Signed-off-by: Daniel Borkmann --- src/proto_ipv6_routing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_ipv6_routing.h b/src/proto_ipv6_routing.h index d430dcbf..a666bbc9 100644 --- a/src/proto_ipv6_routing.h +++ b/src/proto_ipv6_routing.h @@ -40,7 +40,7 @@ static inline void routing(uint8_t *packet, size_t len) tprintf("Left (%u), ", routing->h_segments_left); if(routing->h_routing_type == 0) { char address[INET6_ADDRSTRLEN]; - for (uint8_t i = sizeof(struct routinghdr) + 4; + for (int i = sizeof(struct routinghdr) + 4; i < hdr_ext_len; i += 16) { tprintf("\n\tAdress: "); inet_ntop(AF_INET6, &packet[i], address, -- 2.11.4.GIT