SocketExpression represents an nftables expression for querying information about the socket associated with a packet, if one exists. This is useful for making decisions based on application-layer state or configuration.
Fields
| Field Name | Description |
|---|---|
key - NftSocketKey!
|
The key specifying which socket attribute to query. |
level - Uint32!
|
The socket level for which to retrieve information only valid with cgroupsv2 key. |
register - NftRegister!
|
The register where the retrieved socket information will be stored. |
Used by
ChainExpressionunion: A union of all possible nftables chain expression types.
Example
Example
{
"key": "TRANSPARENT",
"level": "1073741824",
"register": "VERDICT"
}