Well tonight, my allergies were going bonkers and I knew I wouldn’t be able to get any sleep until the drugs kicked in. Hence I not only found time to continue working on the new tcpreplay website, but also to make huge strides on moving all the packet editing functionality into a library which will end up shipping with tcpreplay 3.0.
As it turns out, one of the nice advantages of using Bruce Korb’s excellent AutoOpts package, is that you can make argument processing part of your library too, so people have the option of filling out the tcpedit_t data structure manually or let the library do all the work.