From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yi0-f43.google.com (mail-yi0-f43.google.com [209.85.218.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 8E76E200251 for ; Tue, 9 Aug 2011 07:26:02 -0700 (PDT) Received: by yia27 with SMTP id 27so96269yia.16 for ; Tue, 09 Aug 2011 08:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=5zFo7Ti0YLXITa3BVFM6wVvAOgzrlOPP2CYSIkg6GhM=; b=O9ElEyStwVUDR1eoQidrrKLQa6o6oJ9lxK2zCQR6rfieqhTdZBX8RqjjunFFBb1cla GkWc2jMQqucK2yFDRaRc3HgSqZ+FlhR6I2tgOekiaN3rYfPxZ+04goJ0jXSaKWiuN9UV 95wmCttMLZHXujZq7hzujsbipAdHKwOlizYv8= MIME-Version: 1.0 Received: by 10.42.145.132 with SMTP id f4mr6363366icv.95.1312902941841; Tue, 09 Aug 2011 08:15:41 -0700 (PDT) Received: by 10.42.71.83 with HTTP; Tue, 9 Aug 2011 08:15:41 -0700 (PDT) Date: Tue, 9 Aug 2011 09:15:41 -0600 Message-ID: Subject: openssh over ipv6 breakage From: Dave Taht To: bloat-devel Content-Type: multipart/alternative; boundary=90e6ba21238179190804aa1409d0 X-BeenThere: bloat-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Developers working on AQM, device drivers, and networking stacks" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2011 14:26:03 -0000 --90e6ba21238179190804aa1409d0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I was wondering why interactive openssh was odd over ipv6. Now I need not know any longer. From openssh/packet.c: static void packet_set_tos(int tos) { #if defined(IP_TOS) && !defined(IP_TOS_IS_BROKEN) if (!packet_connection_is_on_socket() || !packet_connection_is_ipv4()) return; debug3("%s: set IP_TOS 0x%02x", __func__, tos); if (setsockopt(active_state->connection_in, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)) < 0) error("setsockopt IP_TOS %d: %.100s:", tos, strerror(errno)); #endif } -- void packet_set_interactive(int interactive, int qos_interactive, int qos_bulk) { if (active_state->set_interactive_called) return; active_state->set_interactive_called =3D 1; /* Record that we are in interactive mode. */ active_state->interactive_mode =3D interactive; /* Only set socket options if using a socket. */ if (!packet_connection_is_on_socket()) return; set_nodelay(active_state->connection_in); packet_set_tos(interactive ? qos_interactive : qos_bulk); } Dave T=E4ht SKYPE: davetaht US Tel: 1-239-829-5608 http://the-edge.blogspot.com --90e6ba21238179190804aa1409d0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I was wondering why interactive openssh was odd over ipv6.

Now I nee= d not know any longer. From openssh/packet.c:

static void
packet_= set_tos(int tos)
{
#if defined(IP_TOS) && !defined(IP_TOS_IS_= BROKEN)
=A0=A0=A0=A0=A0=A0=A0 if (!packet_connection_is_on_socket() ||
=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 !packet_connection_is_ipv4())
=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return;
=A0=A0=A0=A0=A0=A0=A0 debug3(&quo= t;%s: set IP_TOS 0x%02x", __func__, tos);
=A0=A0=A0=A0=A0=A0=A0 if = (setsockopt(active_state->connection_in, IPPROTO_IP, IP_TOS, &tos, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 sizeof(tos)) < 0)
=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 error("setsockopt IP_TOS %d: %.100s:&qu= ot;,
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 tos, stre= rror(errno));
#endif
}


-- void
packet_set= _interactive(int interactive, int qos_interactive, int qos_bulk)
{
=A0=A0=A0=A0=A0=A0=A0 if (active_state->set_interactive_called)
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return;
=A0=A0=A0=A0=A0=A0= =A0 active_state->set_interactive_called =3D 1;

=A0=A0=A0=A0=A0= =A0=A0 /* Record that we are in interactive mode. */
=A0=A0=A0=A0=A0=A0= =A0 active_state->interactive_mode =3D interactive;

=A0=A0=A0=A0=A0=A0=A0 /* Only set socket options if using a socket.=A0 = */
=A0=A0=A0=A0=A0=A0=A0 if (!packet_connection_is_on_socket())
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return;
=A0=A0=A0=A0=A0=A0=A0= set_nodelay(active_state->connection_in);
=A0=A0=A0=A0=A0=A0=A0 pack= et_set_tos(interactive ? qos_interactive : qos_bulk);
}


Dave T=E4ht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://the-edge.bl= ogspot.com
--90e6ba21238179190804aa1409d0--