# Re: \[PATCH\] net-proc: expose the tos values in /proc/net/\[tcp\|udp\]

- From: David Miller \<davem@davemloft.net\>
- Date: 2011-09-29 19:35:50 
- List: netdev
- Page: https://ratatoskr.run/netdev/2011/09/3769320
- Thread: https://ratatoskr.run/netdev/2011/09/3769316/t.md

```text
From: Muraliraja Muniraju <redacted>
Date: Thu, 29 Sep 2011 12:22:42 -0700

> From: Murali Raja <redacted>
> 
> This patch exports the tos values from the inet_sock struct
> for tcp and udp into the /proc/net/tcp or /proc/net/udp respectively.
> This will not pickup per packet tos changes but it will address most
> of the cases. This is mainly useful as it would decrease reliance on
> tcpdump and also people without root access will be able to read
> the values.
> 
> Signed-off-by: Murali Raja <redacted>

You cannot change the layout of these files, they are parsed by userland
problems and therefore have a fixed API.

Netlink based socket dumping provides a proper, backwards compatible,
way to extend what is reported, so please consider adding your changes
there.
```
