From d2881b4b56b341931ab61737b99793168ab85b52 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 12 Feb 2000 16:00:07 +0000 Subject: [PATCH] (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 --- appl/telnet/telnet/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/telnet/telnet/commands.c b/appl/telnet/telnet/commands.c index 1a16e0f4b..60d0825c1 100644 --- a/appl/telnet/telnet/commands.c +++ b/appl/telnet/telnet/commands.c @@ -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")))