public inbox for netfilter-devel@vger.kernel.org
 help / color / mirror / Atom feed
* [nft PATCH] doc: nft.8: Describe iface_type data type
@ 2026-01-27 22:12 Phil Sutter
  2026-01-27 22:17 ` Florian Westphal
  2026-02-05 15:21 ` Phil Sutter
  0 siblings, 2 replies; 8+ messages in thread
From: Phil Sutter @ 2026-01-27 22:12 UTC (permalink / raw)
  To: netfilter-devel

An entry in data-types.txt offers space for a name-value table. Even if
one would refer to ARPHRD_*, some names are not derived from the
respective macro name and thus not intuitive.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 doc/data-types.txt         | 27 +++++++++++++++++++++++++++
 doc/primary-expression.txt |  2 --
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/doc/data-types.txt b/doc/data-types.txt
index e44308b5322cb..0b350effbea68 100644
--- a/doc/data-types.txt
+++ b/doc/data-types.txt
@@ -83,6 +83,33 @@ filter input iifname eth0
 filter input iifname "(eth0)"
 ----------------------------
 
+INTERFACE TYPE TYPE
+~~~~~~~~~~~~~~~~~~~
+[options="header"]
+|==================
+|Name | Keyword | Size | Base type
+|Interface type |
+iface_type|
+16 bit |
+integer
+|===================
+
+The interface type type is used with *meta iiftype/oiftype* expression. Its values correspond with respective ARPHRD_* defines in <linux/if_arp.h>.
+
+.The following keywords will automatically resolve into an interface type type with given value
+
+[options="header"]
+|==================
+|Keyword | Value
+| ether | 1
+| ppp | 512
+| ipip | 768
+| ipip6 | 769
+| loopback | 772
+| sit | 776
+| ipgre | 778
+|===================
+
 LINK LAYER ADDRESS TYPE
 ~~~~~~~~~~~~~~~~~~~~~~~
 [options="header"]
diff --git a/doc/primary-expression.txt b/doc/primary-expression.txt
index d5495e2c86291..bd80cd7f92fda 100644
--- a/doc/primary-expression.txt
+++ b/doc/primary-expression.txt
@@ -149,8 +149,6 @@ String value in the form HH:MM or HH:MM:SS. Values are expected to be less than
 Interface index (32 bit number). Can be specified numerically or as name of an existing interface.
 |ifname|
 Interface name (16 byte string). Does not have to exist.
-|iface_type|
-Interface type (16 bit number).
 |uid|
 User ID (32 bit number). Can be specified numerically or as user name.
 |gid|
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-02-05 15:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 22:12 [nft PATCH] doc: nft.8: Describe iface_type data type Phil Sutter
2026-01-27 22:17 ` Florian Westphal
2026-01-27 22:38   ` Phil Sutter
2026-01-27 22:47     ` Florian Westphal
2026-01-27 22:59       ` Phil Sutter
2026-01-27 23:18         ` Florian Westphal
2026-01-27 23:30           ` Phil Sutter
2026-02-05 15:21 ` Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox