--- zzzz-none-000/linux-4.1.38/include/uapi/linux/netlink.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/uapi/linux/netlink.h 2020-11-25 10:06:48.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,6 +36,26 @@ #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 /* dpictl */ +#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_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) */ + #define MAX_LINKS 32 struct sockaddr_nl {