-/* $OpenBSD: traceroute.c,v 1.124 2014/04/23 09:21:41 florian Exp $ */
+/* $OpenBSD: traceroute.c,v 1.125 2014/04/23 09:22:34 florian Exp $ */
/* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */
/*-
if ((error = getaddrinfo(dest, NULL, &hints, &res)))
errx(1, "%s", gai_strerror(error));
- switch(res->ai_family) {
+ switch (res->ai_family) {
case AF_INET:
if (res->ai_addrlen != sizeof(to4))
errx(1, "size of sockaddr mismatch");
datalen = (int)l;
}
- switch(to->sa_family) {
+ switch (to->sa_family) {
case AF_INET:
switch (proto) {
case IPPROTO_UDP:
int i;
switch (to->sa_family) {
- case AF_INET:
- build_probe4(seq, ttl, iflag);
- break;
- default:
- errx(1, "unsupported AF: %d", to->sa_family);
- break;
+ case AF_INET:
+ build_probe4(seq, ttl, iflag);
+ break;
+ default:
+ errx(1, "unsupported AF: %d", to->sa_family);
+ break;
}
if (dump)
-/* $OpenBSD: traceroute6.c,v 1.96 2014/04/23 09:20:15 florian Exp $ */
+/* $OpenBSD: traceroute6.c,v 1.97 2014/04/23 09:22:34 florian Exp $ */
/* $KAME: traceroute6.c,v 1.63 2002/10/24 12:53:25 itojun Exp $ */
/*
if ((error = getaddrinfo(*argv, NULL, &hints, &res)))
errx(1, "%s", gai_strerror(error));
- switch(res->ai_family) {
+ switch (res->ai_family) {
case AF_INET6:
if (res->ai_addrlen != sizeof(to6))
errx(1, "size of sockaddr mismatch");
datalen = (int)l;
}
- switch(to->sa_family) {
+ switch (to->sa_family) {
case AF_INET6:
if (useicmp)
minlen = ICMP6ECHOLEN + sizeof(struct packetdata);
int i;
switch (to->sa_family) {
- case AF_INET6:
- build_probe6(seq, hops, iflag, to);
- break;
- default:
- errx(1, "unsupported AF: %d", to->sa_family);
- break;
+ case AF_INET6:
+ build_probe6(seq, hops, iflag, to);
+ break;
+ default:
+ errx(1, "unsupported AF: %d", to->sa_family);
+ break;
}
if (dump)