summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y7
1 files changed, 1 insertions, 6 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 8eab614..88daf7a 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -66,11 +66,6 @@ static inline int test_ignore(void)
return 1;
}
-static inline int has_dynamic_elems(struct packet_dyn *p)
-{
- return (p->rlen + p->slen + p->clen);
-}
-
static inline void __init_new_packet_slot(struct packet *slot)
{
slot->payload = NULL;
@@ -230,7 +225,7 @@ static void set_csum16(size_t from, size_t to, enum csum which)
bug_on(!(from < to));
- if (has_dynamic_elems(pktd) || to >= pkt->len || is_dynamic_csum(which))
+ if (packet_dyn_has_elems(pktd) || to >= pkt->len || is_dynamic_csum(which))
__set_csum16_dynamic(from, to, which);
else
__set_csum16_static(from, to, which);