All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dilip Daya <dilip.daya@hp.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: netdev@vger.kernel.org
Subject: network-namespace and NETLINK_INET_DIAG - kernel v3.2.39-longterm
Date: Tue, 05 Mar 2013 13:20:49 -0500	[thread overview]
Message-ID: <1362507649.2840.55.camel@pro6455b.example.com> (raw)

Hi Eric et al,

Re: Network-namespace and NETLINK_INET_DIAG

=> Kernel v3.2.39-longterm

Within a default/host namespace:
--------------------------------

# strace /bin/ss -pim 
execve("/bin/ss", ["/bin/ss", "-pim"], [/* 28 vars */]) = 0
...
...
socket(PF_NETLINK, SOCK_RAW, 4)         = 3  
sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
            msg_iov(1)=[{"L\0\0\0\22\0\1\3@\342\1\0\0\0\0\0\2\0\0\17\0\0
                          \0\0\0\0\0\0\0\0\0\0"..., 76}],
            msg_controllen=0,
            msg_flags=0}, 0) = 76
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
            msg_iov(1)=[{"\344\0\0\0\22\0\2\0@\342\1\0\31|\0\0\2\1\2\0\0
                          \26\353;\300\250\2=088 "..., 8192}],
            msg_controllen=0, msg_flags=0}, 0) = 684
...


# /bin/ss -pim
State       Recv-Q Send-Q   Local Address:Port       Peer Address:Port 
ESTAB       0      0        192.168.2.61:ssh         192.168.2.62:60220
users:(("sshd",7491,3))
mem:(r0,w0,f0,t0) cubic wscale:5,5 rto:216 rtt:18.5/19 ato:40 cwnd:10
 send 6.3Mbps rcv_rtt:4 rcv_space:14480


Within a network-namespace:
---------------------------

# strace /bin/ss -pim 
execve("/bin/ss", ["/bin/ss", "-pim"], [/* 28 vars */]) = 0
...
...
socket(PF_NETLINK, SOCK_RAW, 4)         = 5  
sendmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
            msg_iov(1)=[{"L\0\0\0\22\0\1\3@\342\1\0\0\0\0\0\2\0\0\17\0\0
                          \0\0\0\0\0\0\0\0\0\0"..., 76}],
            msg_controllen=0,
            msg_flags=0}, 0) = -1 ECONNREFUSED (Connection refused)
...


# /bin/ss -pim
State       Recv-Q Send-Q   Local Address:Port     Peer Address:Port   
ESTAB       0      0        192.168.2.61:ssh       192.168.2.62:60220
rto:0.21 ato:0.04 cwnd:10 bidir
users:(("sshd",7491,3))


=> Network namespace (kernel v3.2.39-longterm) not allowing /bin/ss
   missing information from structs tcp_info  and  inet_diag_meminfo.
   This is fixed in kernel v3.6-rc1. Are there identifiable patchsets
   from kernel v3.6-rc1 that can be easily backported to
   kernel v3.2.x-longterm ??


Thanks.
-- 
-DilipD.

             reply	other threads:[~2013-03-05 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 18:20 Dilip Daya [this message]
2013-03-05 21:01 ` network-namespace and NETLINK_INET_DIAG - kernel v3.2.39-longterm Eric W. Biederman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1362507649.2840.55.camel@pro6455b.example.com \
    --to=dilip.daya@hp.com \
    --cc=ebiederm@xmission.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.