pktgen: function add dev_set_flag()

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>