---
title: TcpInformation type | Wartiva GraphQL API
description: TcpInformation represents the xt_tcp iptables match structure. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/tcp-information.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `TcpInformation` type

TcpInformation represents the `xt_tcp` iptables match structure. It allows matching TCP packets based on source/destination port ranges, TCP options, and specific TCP flag combinations.

## Fields

| Field Name | Description |
|---|---|
| `sourcePortMin` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The minimum value of the source port range to match, returned as an unsigned 16-bit integer. |
| `sourcePortMax` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The maximum value of the source port range to match, returned as an unsigned 16-bit integer. |
| `destPortMin` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The minimum value of the destination port range to match, returned as an unsigned 16-bit integer. |
| `destPortMax` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The maximum value of the destination port range to match, returned as an unsigned 16-bit integer. |
| `option` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The TCP option number to match, returned as an unsigned 8-bit integer. If non-zero, a packet must have this TCP option. |
| `flagsMask` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | A bitmask of TCP flags to check, returned as an unsigned 8-bit integer. Only flags set in this mask will be considered. |
| `flagsCmp` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The specific TCP flag combination to compare against 'flagsMask', returned as an unsigned 8-bit integer. A packet matches if (packet_flags & flagsMask) == flagsCmp. |
| `invFlags` - [`[XtablesTransportInvFlag!]`](https://wartiva.com/api-docs/types/xtables-transport-inv-flag.html) | A bitmask of inversion flags that modify the matching behavior. |

## Used by

- [`XtablesInfo`](https://wartiva.com/api-docs/types/xtables-info.html) union: Xtables information union type.

## Example

### Example

```json
{
  "sourcePortMin": 123,
  "sourcePortMax": 123,
  "destPortMin": 987,
  "destPortMax": 987,
  "option": 987,
  "flagsMask": 123,
  "flagsCmp": 123,
  "invFlags": ["INV_SRC_PORTS"]
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
