---
title: SetDatatype enum | Wartiva GraphQL API
description: NFTables set data type. Specifies the type of elements stored in an nftables set or map, determining how values are matched, stored, and compared.
url: https://wartiva.com/api-docs/types/set-datatype.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `SetDatatype` enum

NFTables set data type. Specifies the type of elements stored in an nftables set or map, determining how values are matched, stored, and compared. Reference: [nftables — Sets](https://wiki.nftables.org/wiki-nftables/index.php/Sets)

## Values

| Enum Value | Description |
|---|---|
| `INVALID` | Invalid/unrecognized datatype. |
| `VERDICT` | Verdict (accept, drop, continue, return). |
| `NF_PROTO` | Netfilter protocol number. |
| `BITMASK` | Bitmask value. |
| `INTEGER` | Integer value. |
| `STRING` | String value. |
| `LL_ADDR` | Link-layer (MAC) address. |
| `IPV4_ADDR` | IPv4 address. |
| `IPV6_ADDR` | IPv6 address. |
| `ETHER_ADDR` | Ethernet MAC address. |
| `ETHER_TYPE` | Ethernet frame type (ethertype). |
| `ARP_OP` | ARP operation code. |
| `INET_PROTO` | IP protocol number. |
| `INET_SERVICE` | Transport-layer service (port number). |
| `ICMP_TYPE` | ICMP message type. |
| `TCP_FLAG` | TCP flag bitmask. |
| `DCCP_PKTTYPE` | DCCP packet type. |
| `MH_TYPE` | IPv6 mobility header type. |
| `TIME` | Timestamp (milliseconds since epoch). |
| `MARK` | Packet mark value. |
| `IFACE_INDEX` | Network interface index. |
| `IFACE_TYPE` | Network interface type. |
| `REALM` | Routing realm. |
| `CLASSID` | Traffic control class ID. |
| `UID` | User ID. |
| `GID` | Group ID. |
| `CT_STATE` | Connection tracking state bitmask. |
| `CT_DIR` | Connection tracking direction (original/reply). |
| `CT_STATUS` | Connection tracking status bitmask. |
| `ICMPV6_TYPE` | ICMPv6 message type. |
| `CT_LABEL` | Connection tracking label bitmask. |
| `PKT_TYPE` | Packet type (unicast, broadcast, multicast). |
| `ICMP_CODE` | ICMP error code. |
| `ICMPV6_CODE` | ICMPv6 error code. |
| `ICMPX_CODE` | ICMPvX generic code. |
| `DEVGROUP` | Network device group. |
| `DSCP` | DSCP differentiated services code point. |
| `ECN` | ECN explicit congestion notification bits. |
| `FIB_ADDRTYPE` | FIB address type. |
| `BOOLEAN` | Boolean true/false. |
| `CT_EVENT` | Connection tracking event bitmask. |
| `IFNAME` | Interface name string. |
| `IGMP_TYPE` | IGMP message type. |
| `TIME_DATE` | Date (ISO 8601). |
| `TIME_HOUR` | Hour of day. |
| `TIME_DAY` | Day of week. |
| `CGROUPSV2` | Control group v2 ID. |

## Used by

- [`Set`](https://wartiva.com/api-docs/types/set.html) type: Set represents an nftables set object.

## Example

### Example

```json
"INVALID"

```

---

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