(tn): only set tos for AF_INET. From itojun@iijlab.net

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7918 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-12 16:00:07 +00:00
parent b373e08930
commit d2881b4b56

View File

@@ -2201,7 +2201,7 @@ tn(int argc, char **argv)
perror("setsockopt (IP_OPTIONS)");
#endif
#if defined(IPPROTO_IP) && defined(IP_TOS)
{
if (a->ai_family == AF_INET) {
# if defined(HAVE_GETTOSBYNAME)
struct tosent *tp;
if (tos < 0 && (tp = gettosbyname("telnet", "tcp")))