ipdb: correctly check interface flags