lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1261925852.8193.9.camel@ragnarok>
Date:	Sun, 27 Dec 2009 09:57:32 -0500
From:	Jeremy Jackson <jerj@...lanar.net>
To:	netdev@...r.kernel.org
Subject: querying TOS/DSCP at accept() time?

I would like to allow clients connecting to webserver to choose TOS/DSCP
value they want in reply packets, based on TOS setting received by
webserver in initial SYN-SYN/ACK-ACK exchange.  Linux samples the TOS
byte of the ACK that moves the state to CONNECTED, presumably to use for
later ECN processing, but I cannot find a way to get this from
userspace.

net/ipv4/tcp_ipv4.c:1645
    TCP_SKB_CB(skb)->flags   = iph->tos;


Am I missing something in getsockopt(TCP_INFO perhaps?) or accept(), or
is this currently not possible?



-- 
Jeremy Jackson
Coplanar Networks
(519)489-4903
http://www.coplanar.net
jerj@...lanar.net

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ