![]() |
![]() |
PA Reassembly Engine global config structure. More...
#include <pa.h>
Data Fields | |
int | ipv4MinPktSize |
int | numCxts |
int | cxtDiscardThresh |
int | nodeDiscardThresh |
int | cxtTimeout |
int | clockRate |
int | heapRegionThresh |
uint64_t | heapBase [pa_RA_MAX_HEAP_REGIONS] |
PA Reassembly Engine global config structure.
The parameters in this structure are used to configure the Reassembly engine with PASS
Clock rate of the Reassembly engine in MHz.
Number of concurrent contexts that, once reached, causes the oldest current context to be forcibly timed out. To prevent this behavior, this value should be programmed to be equal to or greater than the Total Contexts. This value must be between 0x1 and 0x400 (1k). The default value is 0x400.
Amount of time (in ms) after a new context has been allocated until that context times out. If timeout occurs before a packet is completely reassembled and the SOP fragment has been received, a packet containing the IP header and the first 8 bytes of data is forwarded up to the host that it can respond with an ICPM Time Exceeded message as per RFC 792. If a context times out and the SOP fragment has not been received, the packet is discarded and the context freed.
uint64_t paRaConfig_t::heapBase[pa_RA_MAX_HEAP_REGIONS] |
Reassembly Heap addresses which should be 64-byte aligned
Number of contexts handled in Region 0 of the Reassembly Heap. All contexts in excess of this number are handled in Region 1. If Region 1 is not used, this value should be set equal to (or higher) than Total Contexts.
Specify the minimum packet size in bytes for a fragment of an Ipv4 packet that is not the last fragment. The deafult value is 68 byte to contain 60 bytes of IP header including options plus 8-byte of payload
Number of Nodes that, once reached, causes the oldest current context to be forcibly timed out. To prevent this behavior, this value should be programmed to be the maximum value (there are 4K total nodes). This value must be between 0x1 and 0x1000 (4K). The default value is 0xFFF.
Total number of contexts the RA handles. This value affects the amount of heap memory that needs to be allocated. This value must be between 0x1 and 0x400 (1k). If set to 0, all fragments will be discarded. The default value is 0x400.