summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0899147)
raw | patch | inline | side by side (parent: 0899147)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 26 Oct 2010 13:17:10 +0000 (15:17 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 26 Oct 2010 13:17:10 +0000 (15:17 +0200) |
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index d5e1ffc255e8a53440a524ca65264bb00e922ff8..96a54cc663254ef66ef2c6344137d9f1b5326023 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
if (ph->addrfamily == AF_INET)
{
- dprintf ("Setting TP_TOS to %i\n", ttl);
+ dprintf ("Setting TP_TOS to %#04"PRIx8"\n", tos);
ret = setsockopt (ph->fd, IPPROTO_IP, IP_TOS,
&tos, sizeof (tos));
}
else if (ph->addrfamily == AF_INET6)
{
- dprintf ("Setting IPV6_TCLASS to %i\n", ttl);
+ dprintf ("Setting IPV6_TCLASS to %#04"PRIx8"\n", tos);
ret = setsockopt (ph->fd, IPPROTO_IPV6, IPV6_TCLASS,
&tos, sizeof (tos));
}