summaryrefslogtreecommitdiff
path: root/trafgen_conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_conf.h')
-rw-r--r--trafgen_conf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/trafgen_conf.h b/trafgen_conf.h
index aee385e..d2df1f4 100644
--- a/trafgen_conf.h
+++ b/trafgen_conf.h
@@ -45,6 +45,11 @@ struct packet_dyn {
size_t slen;
};
+static inline bool packet_dyn_has_elems(struct packet_dyn *p)
+{
+ return (p->rlen || p->slen || p->clen);
+}
+
extern void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp);
extern void cleanup_packets(void);