---
title: ByteOrderOperation enum | Wartiva GraphQL API
description: Byte order operation type used in nftables byteorder expressions to convert between host and network byte order. Reference: nftables — Byte order expression.
url: https://wartiva.com/api-docs/types/byte-order-operation.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `ByteOrderOperation` enum

Byte order operation type used in nftables byteorder expressions to convert between host and network byte order. Reference: [nftables — Byte order expression](https://wiki.nftables.org/wiki-nftables/index.php/Expressions#Byte_order_expression)

## Values

| Enum Value | Description |
|---|---|
| `NETWORK_TO_HOST` | Convert from network byte order (big-endian) to host byte order (ntoh). |
| `HOST_TO_NETWORK` | Convert from host byte order to network byte order (big-endian) (hton). |

## Used by

- [`ByteOrderExpression`](https://wartiva.com/api-docs/types/byte-order-expression.html) type: Convert values between network byte order (big-endian) and host byte order for correct comparisons and storage.

## Example

### Example

```json
"NETWORK_TO_HOST"

```

---

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