A method for generating a modified packet for output from a router. First,
a received packet is stored in one memory location. Modified bytes
corresponding to the received packet are computed and stored in a
separate memory location. The modified packet is generated by
multiplexing between select unmodified bytes of the received packet with
the modified bytes.