First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Bittwist packet injection interval

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!

iPodClassic's avatar
1
iPodClassic
asked 2023-04-19 16:55:33 +0000
edit flag offensive 0 remove flag close merge delete

Comments

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

grahamb's avatar grahamb (2023-04-20 08:37:14 +0000) edit
add a comment see more comments

1 Answer

0

https://bittwist.sourceforge.net/doc/...

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]);
        }
    }
Chuckc's avatar
3k
Chuckc
answered 2023-04-20 00:45:32 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer