Patent ID: 8170024
Filing Date: 2012-05-01
Classification: H04L

Abstract:
1. A method for implementing a pointer and stake model for frame alteration code in a network processor comprising the steps of: providing a current pointer and a stake for a packet selected for transmit; setting said current pointer to a start of said packet selected for transmit and setting the stake to a start of a current header of said packet selected for transmit; defining frame alteration code sequences to start at offset zero; maintaining said current pointer for tracking a current position for frame alteration operations in the packet; said current pointer being advanced an arbitrary number of bytes into said packet selected for transmit; providing a frame alteration code sequence defined by an offset from said current pointer for said frame alteration operations in the packet; using said current pointer and stake with an order in which bytes of said packet selected for transmit are processed to minimize size of the frame alteration code sequence, and combine the frame alteration code sequence for multiple protocol layers to modify packet headers; and maintaining said stake for tracking said start of said current header for frame alteration operations in the packet.