Ask Your Question

Bittwist packet injection interval

asked 2023-04-19 16:55:33 +0000

Hello! I've just begun to tinker around with Bittwist and analyse my packet injections through Wireshark.

Is anyone proficient with such tool? (Bittwist). I'm trying to replicate a ping sequence with only one ICMP packet, but I cannot replicate the 1s interval that ping usually uses.

I've tried playing around with the -m and -r flags, but still could not achieve such result. Anyone can help me?

Thanks a bunch in advance!

edit retag flag offensive close merge delete


Not really a Wireshark question. A bittwist forum may have more help.

grahamb gravatar imagegrahamb ( 2023-04-20 08:37:14 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2023-04-20 00:45:32 +0000

Chuckc gravatar image

Bittwist will, if not run with the -m, -r, or -p flag, inject packets from a trace file based on the captured intervals, in particular, the time- stamp difference between two adjacent packets, except for the first packet in a trace file, which is always injected immediately.

With only one packet in the capture file, there is no interval to be adjusted.

A quick look at the code doesn't show any support for a loop interval:

    if (loop > 0) {
        while (loop--) {
            for (i = optind; i < argc; i++) /* for each trace file */
                send_packets(device, argv[i]);
    /* send infinitely if loop <= 0 until user Control-C */
    else {
        while (1) {
            for (i = optind; i < argc; i++)
                send_packets(device, argv[i]);
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2023-04-19 16:55:33 +0000

Seen: 255 times

Last updated: Apr 20 '23