net/ifstated: fix with new flex