Lookup represents an nftables expression for looking up a value in a set or map. This allows rules to efficiently check for membership or retrieve associated data.
Fields
| Field Name | Description |
|---|---|
sourceRegister - NftRegister!
|
The register holding the key value to look up in the set. |
destRegister - NftRegister!
|
The register where the result of the lookup (e.g., associated data for maps) will be stored. |
isDestRegSet - Boolean!
|
If true, the 'destRegister' field indicates that the lookup should populate this register with the result (e.g., the mapped value). If false, it's typically a membership check. |
setID - Uint32!
|
The internal numeric ID of the target set or map. |
setName - String!
|
The human-readable name of the target set or map. |
invert - Boolean!
|
If true, the lookup result is inverted (e.g., matches if the key is not found). |
Used by
ChainExpressionunion: A union of all possible nftables chain expression types.
Example
Example
{
"sourceRegister": "VERDICT",
"destRegister": "VERDICT",
"isDestRegSet": false,
"setID": "1073741824",
"setName": "abc123",
"invert": true
}