net/tap: fix flow and port commands