21 uint8_t min
, max
, inc
, val
;
42 struct randomizer
*rnd
;
48 static inline bool packet_dyn_has_elems(struct packet_dyn
*p
)
50 return (p
->clen
|| p
->rlen
|| p
->slen
);
53 static inline bool packet_dyn_has_only_csums(struct packet_dyn
*p
)
55 return (p
->clen
== 0 && p
->rlen
== 0 && p
->slen
);
58 extern void compile_packets_str(char *str
, bool verbose
, unsigned int cpu
);
59 extern void compile_packets(char *file
, bool verbose
, unsigned int cpu
,
60 bool invoke_cpp
, char *const cpp_argv
[]);
61 extern void cleanup_packets(void);
63 extern void set_fill(uint8_t val
, size_t len
);
65 extern struct packet
*current_packet(void);
67 #endif /* TRAFGEN_CONF */