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 data packet;
determining whether a script entry of the one or more script entries is a first script entry for the modified data packet;
in response to determining that the given script entry is a first script entry for the modified data packet, reserving a packet buffer for the modified data 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 the packet buffer; and
generating, by the packet editor, a modified data packet with the data in the packet buffer.
1 Assignment
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.
394 Citations
24 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 data packet; determining whether a script entry of the one or more script entries is a first script entry for the modified data packet; in response to determining that the given script entry is a first script entry for the modified data packet, reserving a packet buffer for the modified data 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 the packet buffer; and generating, by the packet editor, a modified data packet with the data in the packet buffer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. 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 data 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 by 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, 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; and generates the modified data packet with the data in the packet buffer. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. 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:
-
a computer readable memory device having computer readable program code embodied therewith, the computer readable program code configured to; 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 data packet; determining whether a script entry of the one or more script entries is a first script entry for the modified data packet; in response to determining that the given script entry is a first script entry for the modified data packet, reserving a packet buffer for the modified data 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. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification