Yes, that's why I said "with a code change". -- Aaron Turner https://synfin.net/ Twitter: @synfinatic Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
On Fri, Jul 15, 2016 at 4:05 PM, James deCocq <dotmar...@hotmail.com> wrote: > I am using tcprewrite, but aren't you describing a programmatic solution? > "Look at it and then rewrite the MAC" is exactly what I'd like to do, but how > to accomplish that with tcprewrite? > > ________________________________________ > From: Aaron Turner <synfina...@gmail.com> > Sent: Friday, July 15, 2016 5:33:21 PM > To: Main forum for tcpreplay > Subject: Re: [Tcpreplay-users] tcprewrite recalculate multicast MAC > > I would think that after you've re-written the IP address you could > look at it and then rewrite the MAC. Unless I don't understand what > you're trying to accomplish? > -- > Aaron Turner > https://synfin.net/ Twitter: @synfinatic > Those who would give up essential Liberty, to purchase a little temporary > Safety, deserve neither Liberty nor Safety. > -- Benjamin Franklin > > > On Fri, Jul 15, 2016 at 1:47 PM, James deCocq <dotmar...@hotmail.com> wrote: >> Thanks, yes I know the calculation, but the new value of the IP is not >> known, low-order bits of the existing IP are masked in to the new IP. I >> obviously could do what you suggest with a libpcap-based post-processor, but >> otherwise I must not be understanding what you are suggesting, can you >> elaborate? >> >> ________________________________________ >> From: Aaron Turner <synfina...@gmail.com> >> Sent: Friday, July 15, 2016 3:36:30 PM >> To: Main forum for tcpreplay >> Subject: Re: [Tcpreplay-users] tcprewrite recalculate multicast MAC >> >> You definitely could do this in one pass with a code change. You just >> take the lower 23 bits of the IP address and map that onto the lower >> 23 bits of the MAC address. The upper 24 bits of the MAC are just: >> 01-00-5E and the remaining high bit of the 4th octet is zero. >> >> More info: https://technet.microsoft.com/en-us/library/cc957928.aspx >> -- >> Aaron Turner >> https://synfin.net/ Twitter: @synfinatic >> Those who would give up essential Liberty, to purchase a little temporary >> Safety, deserve neither Liberty nor Safety. >> -- Benjamin Franklin >> >> >> On Fri, Jul 15, 2016 at 1:04 PM, James deCocq <dotmar...@hotmail.com> wrote: >>> The alternative would seem to involve several tens or hundreds of passes >>> through the file, or to write a standalone post-processor I suppose. Any >>> way to submit a patch or write a hook to do this in the same pass? The rub >>> would seem to be making it dependent on the multicast address change. >>> >>> ________________________________________ >>> From: Aaron Turner <synfina...@gmail.com> >>> Sent: Friday, July 15, 2016 1:54:12 PM >>> To: Main forum for tcpreplay >>> Subject: Re: [Tcpreplay-users] tcprewrite recalculate multicast MAC >>> >>> you can change/hardcode a new MAC, but there's no way of recalculating >>> based on the IP address. >>> -- >>> Aaron Turner >>> https://synfin.net/ Twitter: @synfinatic >>> Those who would give up essential Liberty, to purchase a little temporary >>> Safety, deserve neither Liberty nor Safety. >>> -- Benjamin Franklin >>> >>> >>> On Fri, Jul 15, 2016 at 10:13 AM, James deCocq <dotmar...@hotmail.com> >>> wrote: >>>> Hi all, >>>> >>>> Using tcprewrite to modify destination multicast IP using a CIDR mask, iIs >>>> there a way to force recalculation of the multicast destination MAC >>>> address associated with the new value of the IP? Thanks! >>>> >>>> ------------------------------------------------------------------------------ >>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and >>>> traffic >>>> patterns at an interface-level. Reveals which users, apps, and protocols >>>> are >>>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>>> planning >>>> reports.http://sdm.link/zohodev2dev >>>> _______________________________________________ >>>> Tcpreplay-users mailing list >>>> Tcpreplay-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >>>> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >>> >>> ------------------------------------------------------------------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning >>> reports.http://sdm.link/zohodev2dev >>> _______________________________________________ >>> Tcpreplay-users mailing list >>> Tcpreplay-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >>> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >>> >>> ------------------------------------------------------------------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning >>> reports.http://sdm.link/zohodev2dev >>> _______________________________________________ >>> Tcpreplay-users mailing list >>> Tcpreplay-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >>> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >> >> ------------------------------------------------------------------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >> patterns at an interface-level. Reveals which users, apps, and protocols are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning >> reports.http://sdm.link/zohodev2dev >> _______________________________________________ >> Tcpreplay-users mailing list >> Tcpreplay-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >> >> ------------------------------------------------------------------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >> patterns at an interface-level. Reveals which users, apps, and protocols are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning >> reports.http://sdm.link/zohodev2dev >> _______________________________________________ >> Tcpreplay-users mailing list >> Tcpreplay-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > Tcpreplay-users mailing list > Tcpreplay-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > Tcpreplay-users mailing list > Tcpreplay-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Tcpreplay-users mailing list Tcpreplay-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support