This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 14cc6eebe5cce0d18e1e6de3ce5c4d5180028f4a Author: zhanghongyu <[email protected]> AuthorDate: Fri Nov 27 16:48:37 2026 +0800 netutils, system: include the protocol-specific netlink headers. include/netpacket/netlink.h in nuttx is being split, so that each netlink protocol has its own header and a user includes only what it speaks: the rtnetlink definitions move to netpacket/rtnetlink.h and the netfilter ones to netpacket/nfnetlink.h. Include the header that each file actually needs. No functional change. Assisted-by: Kiro:claude-opus-4 Signed-off-by: daichuan <[email protected]> --- netutils/netlib/netlib_conntrack.c | 2 +- netutils/netlib/netlib_getarptab.c | 2 +- netutils/netlib/netlib_getdevs.c | 2 +- netutils/netlib/netlib_getnbtab.c | 2 +- netutils/netlib/netlib_getroute.c | 2 +- system/conntrack/conntrack.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/netutils/netlib/netlib_conntrack.c b/netutils/netlib/netlib_conntrack.c index 359250a7f..db0d22582 100644 --- a/netutils/netlib/netlib_conntrack.c +++ b/netutils/netlib/netlib_conntrack.c @@ -26,7 +26,7 @@ #include <nuttx/config.h> -#include <netpacket/netlink.h> +#include <netpacket/nfnetlink.h> #include <nuttx/net/ip.h> diff --git a/netutils/netlib/netlib_getarptab.c b/netutils/netlib/netlib_getarptab.c index 8efb5e891..1819a9955 100644 --- a/netutils/netlib/netlib_getarptab.c +++ b/netutils/netlib/netlib_getarptab.c @@ -33,7 +33,7 @@ #include <errno.h> #include <netinet/arp.h> -#include <netpacket/netlink.h> +#include <netpacket/rtnetlink.h> #include "netutils/netlib.h" diff --git a/netutils/netlib/netlib_getdevs.c b/netutils/netlib/netlib_getdevs.c index 0e56fe5c5..489c05bda 100644 --- a/netutils/netlib/netlib_getdevs.c +++ b/netutils/netlib/netlib_getdevs.c @@ -33,7 +33,7 @@ #include <string.h> #include <errno.h> -#include <netpacket/netlink.h> +#include <netpacket/rtnetlink.h> #include "netutils/netlib.h" diff --git a/netutils/netlib/netlib_getnbtab.c b/netutils/netlib/netlib_getnbtab.c index 521746f21..1a6ab0831 100644 --- a/netutils/netlib/netlib_getnbtab.c +++ b/netutils/netlib/netlib_getnbtab.c @@ -32,7 +32,7 @@ #include <string.h> #include <errno.h> -#include <netpacket/netlink.h> +#include <netpacket/rtnetlink.h> #include <nuttx/net/neighbor.h> diff --git a/netutils/netlib/netlib_getroute.c b/netutils/netlib/netlib_getroute.c index ff7c318bc..6bf088b60 100644 --- a/netutils/netlib/netlib_getroute.c +++ b/netutils/netlib/netlib_getroute.c @@ -35,7 +35,7 @@ #include <errno.h> #include <net/route.h> -#include <netpacket/netlink.h> +#include <netpacket/rtnetlink.h> #include "netutils/netlib.h" diff --git a/system/conntrack/conntrack.c b/system/conntrack/conntrack.c index f8a48302a..ea3604647 100644 --- a/system/conntrack/conntrack.c +++ b/system/conntrack/conntrack.c @@ -26,7 +26,7 @@ #include <nuttx/config.h> -#include <netpacket/netlink.h> +#include <netpacket/nfnetlink.h> #include <nuttx/net/ip.h>
