trafgen: simplify packet config access

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>