Index: tests/sys/netinet/libalias/util.c =================================================================== --- tests/sys/netinet/libalias/util.c +++ tests/sys/netinet/libalias/util.c @@ -109,8 +109,8 @@ struct udphdr * set_udp(struct ip *p, u_short sport, u_short dport) { - uint32_t *up = (void *)p; - struct udphdr *u = (void *)&(up[p->ip_hl]); + char *up = (void *)p; + struct udphdr *u = (void *)&(up[4*p->ip_hl]); int payload = ntohs(p->ip_len) - 4*p->ip_hl; REQUIRE(payload >= (int)sizeof(*u));