On 10/30/11 19:04, Mike Belopuhov wrote:
...
fair enough, we should properly support -T flag.
this diff achieves that and works well in my setup.
ok?
thanks, your patch supports the -T flag for socket listings.
I think there's still an inconsistency there. According to the
netstat(1) man page, Table 0 is the default table. This is the behavior
of "netstat -anf inet" with your patch applied.
However, when a user/process is in rdomain 1 (i.e. via "route -T 1 exec
su -" or logging in via sshd running in rdomain 1), "netstat -rn" shows
the routing table of (the effectively used) rdomain 1. Although this
differs from the man page, it's the behavior I would expect for "netstat
-rn" -- and also for "netstat -anf inet".
Best Regards
Andreas