diff options
Diffstat (limited to 'trafgen_l3.c')
-rw-r--r-- | trafgen_l3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trafgen_l3.c b/trafgen_l3.c index 1771908..5e47a36 100644 --- a/trafgen_l3.c +++ b/trafgen_l3.c @@ -35,9 +35,8 @@ static void ipv4_header_init(struct proto_hdr *hdr) { struct proto_hdr *lower; - proto_lower_default_add(PROTO_ETH); + lower = proto_lower_default_add(PROTO_ETH); - lower = proto_current_header(); if (lower->id == PROTO_ETH) proto_field_set_default_be16(lower, ETH_TYPE, ETH_P_IP); else if (lower->id == PROTO_IP4) |