have a problem, that when we want to generate following PCAP that is attached, the IPG is not followed exactly what is generated in the PCAP. I have only tested with UDP, not sure how TCP will work.
Used T-rex in ASTF-mode, and set parameter cps=1, limit=1 and cont=True, see snippet:
"""
prog_s = astf.ASTFProgram(side='s', stream=False)
prog_c = astf.ASTFProgram(side='c', stream=False)
temp_c = astf.ASTFTCPClientTemplate(port=port, program=prog_c, ip_gen=ip_gen, cps=1, limit=1, cont=True)
temp_s = astf.ASTFTCPServerTemplate(program=prog_s,
assoc=astf.ASTFAssociationRule(port=port, l7_map={"offset": list(range(0, hashlib.md5().digest_size))}))
profile = astf.ASTFProfile(default_ip_gen=ip_gen, templates=astf_templates, cap_list=[astf.ASTFCapInfo(file=file, cps=1, limit=1, cont=True)], default_c_glob_info=ginfo, default_s_glob_info=ginfo)
"""