--- zzzz-none-000/linux-4.1.52/include/uapi/linux/netlink.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/uapi/linux/netlink.h 2022-03-02 11:37:13.000000000 +0000 @@ -1,6 +1,12 @@ #ifndef _UAPI__LINUX_NETLINK_H #define _UAPI__LINUX_NETLINK_H +#if !defined(CONFIG_BCM_IN_KERNEL) +/* user app includes this file directly.To avoid double inclusion of this file from the toolchain + version, define the same header check definition as the one from toolchain */ +#define __LINUX_NETLINK_H +#endif + #include #include /* for __kernel_sa_family_t */ #include @@ -30,7 +36,34 @@ #define NETLINK_INET_DIAG NETLINK_SOCK_DIAG +#if defined(CONFIG_BCM_KF_NETFILTER) || !defined(CONFIG_BCM_IN_KERNEL) +#define NETLINK_BRCM_MONITOR 25 /*send events to userspace monitor task(broadcom specific)*/ +#define NETLINK_BRCM_EPON 26 +#endif + +#if defined(CONFIG_BCM_KF_DPI) && defined(CONFIG_BCM_DPI_MODULE) +#define NETLINK_DPI 27 /* dpicore driver */ +#define NETLINK_DPI_QOS 28 /* DPI QoS */ +#endif + +#if ((defined(CONFIG_BCM_MCAST) || defined(CONFIG_BCM_MCAST_MODULE)) && defined(CONFIG_BCM_KF_MCAST)) || !defined(CONFIG_BCM_IN_KERNEL) +#define NETLINK_BCM_MCAST 30 /* for multicast */ +#endif + +#if defined(CONFIG_BCM_KF_WL) || !defined(CONFIG_BCM_IN_KERNEL) +#define NETLINK_IGSC 29 /* for multicast igs sdb listing */ +#define NETLINK_WLCSM 31 /* for brcm wireless cfg[nvram]/statics/management extention */ +#endif + +#define NETLINK_AUDIO 28 /* nlaudio-port (avm-specific) */ +#define NETLINK_AUDIO_MAXPAYLOAD 3086 /* nlaudio-payload (avm-specific) */ + +#if defined(CONFIG_BCM_KF_WL) && defined(CONFIG_BCM_WLCXC_MODULE) +#define NETLINK_WLCT 32 +#define MAX_LINKS 33 +#else #define MAX_LINKS 32 +#endif struct sockaddr_nl { __kernel_sa_family_t nl_family; /* AF_NETLINK */