All of lore.kernel.org
 help / color / mirror / Atom feed
* network-namespace and NETLINK_INET_DIAG - kernel v3.2.39-longterm
@ 2013-03-05 18:20 Dilip Daya
  2013-03-05 21:01 ` Eric W. Biederman
  0 siblings, 1 reply; 2+ messages in thread
From: Dilip Daya @ 2013-03-05 18:20 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-05 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 18:20 network-namespace and NETLINK_INET_DIAG - kernel v3.2.39-longterm Dilip Daya
2013-03-05 21:01 ` Eric W. Biederman

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.