diff options
Diffstat (limited to 'trafgen_l4.c')
-rw-r--r-- | trafgen_l4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/trafgen_l4.c b/trafgen_l4.c index 7f80e74..f3d8542 100644 --- a/trafgen_l4.c +++ b/trafgen_l4.c @@ -45,9 +45,7 @@ static void udp_header_init(struct proto_hdr *hdr) { struct proto_hdr *lower; - proto_lower_default_add(PROTO_IP4); - - lower = proto_current_header(); + lower = proto_lower_default_add(PROTO_IP4); if (lower->id == PROTO_IP4) proto_field_set_default_u8(lower, IP4_PROTO, IPPROTO_UDP); |