Hardware-based packet editor
First Claim
1. A method for modifying a data packet by a hardware-based packet editor comprising:
- receiving, by the packet editor, a packet editing script comprising one or more script entries indicating modifications to be applied to the data packet and a data block comprising data for the modified packet;
for each given script entry in the packet editing script, copying, by the packet editor, data in the data block at a location and a size identified in the given script entry into a packet buffer;
generating, by the packet editor, a modified data packet with the data in the packet buffer,wherein the copying comprises;
retrieving the given script entry of the packet editing script;
determining whether the given script entry is a first script entry for the modified data packet;
in response to determining that the given script entry is the first script entry for the modified data packet, reserving the packet buffer for the modified data packet;
copying the data in the data block at a block location and with a block length identified in the given script entry into the packet buffer;
determining whether the given script entry is a last script entry for the modified data packet; and
in response to determining that the given script entry is not the last script entry for the modified data packet, performing the copying the data in the data block at a block location and with a block length identified in the given script entry into the packet buffer and the determining whether the given script entry is a last script entry for the next given script entry of the packet editing script.
2 Assignments
0 Petitions
Accused Products
Abstract
Hardware-based packet editor receives a packet editing script which includes script entries indicating modifications to a data packet and a data block with data for the modified data packet. For a script entry in the packet editing script, the packet editor copies data in the data block at a block location and with a block length identified in the script entry into a packet buffer. The packet editor repeats the copying for the remaining script entries for the modified data packet. The packet editor then generates the modified data packet with the data in the packet buffer. The packet editing script is generated such that a script entry is created for data to be included in the modified data packet and data to be inserted into the modified data packet. Creation of a script entry is omitted for data to be removed.
127 Citations
21 Claims
-
1. A method for modifying a data packet by a hardware-based packet editor comprising:
-
receiving, by the packet editor, a packet editing script comprising one or more script entries indicating modifications to be applied to the data packet and a data block comprising data for the modified packet; for each given script entry in the packet editing script, copying, by the packet editor, data in the data block at a location and a size identified in the given script entry into a packet buffer; generating, by the packet editor, a modified data packet with the data in the packet buffer, wherein the copying comprises; retrieving the given script entry of the packet editing script; determining whether the given script entry is a first script entry for the modified data packet; in response to determining that the given script entry is the first script entry for the modified data packet, reserving the packet buffer for the modified data packet; copying the data in the data block at a block location and with a block length identified in the given script entry into the packet buffer; determining whether the given script entry is a last script entry for the modified data packet; and in response to determining that the given script entry is not the last script entry for the modified data packet, performing the copying the data in the data block at a block location and with a block length identified in the given script entry into the packet buffer and the determining whether the given script entry is a last script entry for the next given script entry of the packet editing script. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system, comprising:
-
a packet buffer; and a hardware-based packet editor comprising a control memory and a control module, wherein the packet editor; receives a packet editing script comprising one or more script entries indicating modifications to be applied to a data packet and a data block comprising data for the modified packet; and stores the packet editing script in the control memory, wherein the control module; retrieves each given script entry stored in the control memory; copies data in the data block at a location and a size identified in the given script entry into the packet buffer; and generates a modified data packet with the data in the packet buffer, wherein copying (4) the data in the data block at the location and the size identified in the given script entry into the packet buffer, the control module; determines whether the given script entry is a first script entry for the modified data packet; and in response to determining that the given script entry is the first script entry for the modified data packet, reserves the packet buffer for the modified data packet; copies the data in the data block at a block location and with a block length identified in the given script entry into the packet buffer; determines whether the given script entry is a last script entry for the modified data packet; and in response to determining that the given script entry is not the last script entry for the modified data packet, performs, for the next given script entry of the packet editing script, the copying of the data in the data block at the block location and with the block length identified in the given script entry into the packet buffer and the determining whether the given script entry is a last script entry for the modified data packet for the next given script entry of the packet editing script. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable storage medium having embodied thereon a program, the program being executable by a processor to perform a method, the method comprising:
-
receiving a packet editing script comprising one or more script entries indicating modifications to be applied to a data packet and a data block comprising data for the modified packet; for each given script entry in the packet editing script, copying data in the data block at a location and a size identified in the given script entry into a packet buffer; and generating a modified data packet with the data in the packet buffer, wherein copying data in the data block at a location and a size identified in the given script entry into a packet buffer comprises; retrieving the given script entry of the packet editing script; determining whether the given script entry is a first script entry for the modified data packet; in response to determining that the given script entry is the first script entry for the modified data packet, reserving the packet buffer for the modified data packet; copying the data in the data block at a block location and with a block length identified in the given editing script into the packet buffer; determining whether the given script entry is a last script entry for the modified data packet; and in response to determining that the given script entry is not the last script entry for the modified data packet, performing the copy of the data in the data block at a block location and with a block length identified in the given editing script into the packet buffer and the determining whether the given script entry is a last script entry for the modified data packet for the next given script entry of the packet editing script. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification