Adapted to pkt/dev interface