[lkml]   [2011]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] net-proc: expose the tos values in /proc/net/[tcp|udp]
    I shall make the changes by exposing the tos values via the
    netlink as suggested. I had a doubt is I have to modify the
    inet_diag_sockid or export it via a new option. I am considering
    that adding into inet_diag_sockid is better because the latter is a
    bit of a over kill for a single value to be exposed and it also seems
    to be logical fit.
    Can you let me know your thoughts on this.


    On Thu, Sep 29, 2011 at 12:32 PM, David Miller <> wrote:
    > From: Muraliraja Muniraju <>
    > Date: Thu, 29 Sep 2011 12:22:42 -0700
    >> From: Murali Raja <>
    >> 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 <>
    > 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.


     \ /
      Last update: 2011-10-04 19:41    [W:0.023 / U:6.124 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site