Hello,

while playing with rdomains I've noticed that netstat(1) only respects the -T flag for route listings (i.e. netstat -T 1 -rn), but not for open socket listings (i.e. netstat -T 1 -anf inet).

There are no listening services in a freshly created rdomain (i.e. after "ifconfig em0 rdomain1"). However, the following commands currently ignore this and simply return a listing of all inet sockets, respectively:
# netstat -T 0 -anf inet
# netstat -T 1 -anf inet

A quick workaround would be to forbid the usage of the -T flag without an -r flag.

A much nicer solution would be to only show open sockets from the currently used rdomain or the rdomain which is explicitely specified via -T.

Best Regards
Andreas

Reply via email to