174
| Command Line Reference | SmartNA-X 1G/10G Modular
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
set packetprocessor transform action
Use the
set packetprocessor transform action
command to set up one or more actions to modify the packet. The
command accepts a starting-byte and a decimal or hex value for XOR, AND, OR, replace, delete and obfuscate. Each byte
may be the subject of a maximum of one action. Optionally, the Transform may truncate (delete to end) or pass the rest of
the packet.
Limits
The following limits apply to IPP actions:
• Only the first 120 bytes of a packet support an action.
• The first 119 bytes may have any action associated with them.
• The 120th byte only supports truncate or pass.
• The start-bit of a delete or truncate action must begin after the MAC addresses; that is, no less than the 12th byte.
• The value associated with XOR, AND, OR, replace and obfuscate is limited to 0-255.
• The value associated with delete is limited to affecting no further than the first 119 bytes.
For more information about IPP actions, see
Detailed operation of the IPP module
on page 69.
Syntax
set packetprocessor transform
transform-name
action
start-byte
{ {
XOR
|
AND
|
OR
|
Replace
|
Delete
|
Obfuscate
}
value
|
{
Truncate
|
Pass
} }
Parameters
transform-name
The name of the packet processor Transform to add the action to.
start-byte
The position of the field to be acted on, specified in bytes starting from the first transmitted/received byte of the MAC
destination address in the Ethernet header. The first byte is numbered zero.
XOR
Invert any bit(s) within a byte. That is, change any or all bits within a byte to the opposite value.
AND
Clear any bit(s) within a byte. That is, change any or all bits within a byte to have the value 0.
OR
Set any bit(s) within a byte. That is, change any or all bits within a byte to have the value 1.
Replace
Change the specified byte in the packet header to a different value.
Obfuscate
Obfuscate all bytes from the specified byte. That is, change the specified bytes and all bytes beyond it to a new value.
Delete
Remove the specified byte from the packet.
value
The action value, entered as a decimal or hex value. When entered in hex, a prefix of '0x' is required. Note the
following when specifying a value:
• The value associated with XOR, AND, OR, Replace and Obfuscate is limited to 0-255.
• The value associated with Obfuscate is the value with which to replace the remainder of the payload.
• The value associated with Delete is the number of bytes to delete.
Pass
Pass the specified byte and all bytes beyond it without processing further.