ifpps: remove unused member from struct
[netsniff.git] / src / trafgen_conf.h
blob71b8c3f852437f839361aca8b909cbd4488b6c99
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
6 */
8 #ifndef TRAFGEN_CONF
9 #define TRAFGEN_CONF
11 #include <stdint.h>
12 #include <stdio.h>
13 #include <sys/types.h>
15 #define TYPE_INC 0
16 #define TYPE_DEC 1
18 struct mode;
20 struct counter {
21 int type;
22 uint8_t min;
23 uint8_t max;
24 uint8_t inc;
25 uint8_t val;
26 off_t off;
29 struct randomizer {
30 uint8_t val;
31 off_t off;
34 struct packet {
35 uint8_t *payload;
36 size_t len;
39 struct packet_dynamics {
40 struct counter *counter;
41 size_t counter_len;
42 struct randomizer *randomizer;
43 size_t randomizer_len;
46 extern int compile_packets(char *file, int verbose);
47 extern void cleanup_packets(void);
49 #endif /* TRAFGEN_CONF */