[Tomahawk-devs] Traffic Generation Problems
Brought to you by:
bsmith1180,
dkolbly
From: Steve S. <ss...@ll...> - 2004-11-18 17:03:26
|
Hello, We're having some problems with tomahawk correctly replaying our pcap file. We have a pcap file with 9 packets in it, 6 in one direction, and 3 replies in the other, so only 2 addresses total. It's a very simple pcap we've been using for debugging. The problem is that only the primary interface spews out any packets. It's not a hardware/OS issue, since any interface works, so long as it's specified by "-i" and not "-j". In the SendPackets function, I've noticed that on/around line 1436 of tomahawk.c, we check the handler to see if it's in "attacker" mode, and if so, writes out to the primary interface. I put printf statements in each conditional branch to demarcate when each was happening, and it appears that h->attacker is always set to 1, which means that the 2nd interface never gets to fire. I see that in RecvPackets, there is code to "switch" modes, but it never seems to trigger. Also, it seems that every packet in the trace has an attacker flag, but this is never referenced for updating, at least as far as I can tell. I'm still working on understanding the code, but I was hoping someone else had run into this and may be able to shed some light on this - maybe we could work at rolling out a Tomahawk 1.1 :) Any thoughts/fixes? Thanks! Steve Suppe |