[RFC PATCH 1/6] rust: bindings: expose networking headers needed by nlmon

From: Wenzhao Liao

Date: Thu Apr 02 2026 - 13:53:04 EST


Expose the networking declarations consumed by the minimal Rust nlmon
reference driver before higher level wrappers are introduced.

This includes the core net_device, rtnl_link_ops, statistics, sk_buff,
and netlink tap declarations needed by the planned abstractions.

Signed-off-by: Wenzhao Liao <wenzhaoliao@xxxxxxxxxx>
---
rust/bindings/bindings_helper.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
index 083cc44aa952..ee56505e03f9 100644
--- a/rust/bindings/bindings_helper.h
+++ b/rust/bindings/bindings_helper.h
@@ -57,6 +57,7 @@
#include <linux/file.h>
#include <linux/firmware.h>
#include <linux/fs.h>
+#include <linux/if_arp.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/io-pgtable.h>
@@ -66,6 +67,8 @@
#include <linux/mdio.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
+#include <linux/netdevice.h>
+#include <linux/netlink.h>
#include <linux/of_device.h>
#include <linux/pci.h>
#include <linux/phy.h>
@@ -88,6 +91,7 @@
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/xarray.h>
+#include <net/rtnetlink.h>
#include <trace/events/rust_sample.h>

/*
--
2.34.1