X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=VNFs%2FDPPD-PROX%2Ftask_init.h;h=82a58259ac60908c2fff20cfc2d6573e6047a73b;hb=00f5630bf8a9a625a6ff4b35169a2f1f6ff23703;hp=54c30304d6174dfdbad92b4f2d196dd2dd62d87a;hpb=b7541865102edde8377d3965df658da8bd638a62;p=samplevnf.git diff --git a/VNFs/DPPD-PROX/task_init.h b/VNFs/DPPD-PROX/task_init.h index 54c30304..82a58259 100644 --- a/VNFs/DPPD-PROX/task_init.h +++ b/VNFs/DPPD-PROX/task_init.h @@ -100,6 +100,14 @@ enum police_action { ACT_INVALID = 4 }; +struct range { + uint32_t min; + uint32_t value; + uint32_t max; + uint32_t offset; + uint8_t range_len; +}; + /* Configuration for task that is only used during startup. */ struct task_args { struct task_base *tbase; @@ -191,8 +199,10 @@ struct task_args { /* gen related*/ uint64_t rate_bps; uint32_t n_rand_str; - char rand_str[64][64]; + uint32_t n_ranges; uint32_t rand_offset[64]; + char rand_str[64][64]; + struct range range[64]; char pcap_file[256]; uint32_t accur_pos; uint32_t sig_pos; @@ -248,6 +258,8 @@ struct task_args { uint32_t imix_pkt_sizes[MAX_IMIX_PKTS]; uint32_t multiplier; uint32_t mirror_size; + uint32_t store_max; + uint32_t loss_buffer_size; }; /* Return the first port that is reachable through the task. If the