updated flag comparison to do a proper bitwise AND for promisc mode detection