Setting Dscp (tos, QoS) for ssh sockets

Dmytro Lytovchenko dmytro.lytovchenko@REDACTED
Mon Feb 17 11:22:16 CET 2020

As we discussed with you before, there are two options right now:

1. From SSH connection handler, using sys module, request its state
(private #data{} record) which contains the socket in its 9th field.
2. (Christofer's idea) to replace the socket transport module using
undocumented option {transport, {_, Module, _}}

Maybe someone sees other ways to do it?

On Mon, 17 Feb 2020 at 11:12, Christofer Tornkvist (ctornkvi) <
ctornkvi@REDACTED> wrote:

> Hi,
> I would like to set the quality of service flag Dscp of the Tos field in
> the IP packet
> of an Ssh socket with the function inet:setopts(Socket, [{tos, Dscp}]).
> It should be possible to set the Dscp per IP packet sent.
> How do I get hold of the Ssh socket down in my Ssh channel module ?
> Regards
> /Christofer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list