mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
Move the NETLINK define into opt_global.h so we can rely on it being
set correctly, without having to remember to include opt_netlink.h.
This ensures that the NETLINK define is correctly set. If not we
may end up with unloadable modules, due to missing symbols (such as
nlmsg_get_group_writer).
PR: 274306
Reviewed by: imp, markj
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D42179
(cherry picked from commit ab393e9548)
20 lines
490 B
Makefile
20 lines
490 B
Makefile
.PATH: ${SRCTOP}/sys/netlink
|
|
KMOD= netlink
|
|
|
|
SRCS = netlink_module.c netlink_domain.c netlink_io.c \
|
|
netlink_message_writer.c netlink_generic.c \
|
|
netlink_route.c route/iface.c route/iface_drivers.c route/neigh.c \
|
|
route/nexthop.c route/rt.c
|
|
SRCS+= opt_inet.h opt_inet6.h opt_route.h
|
|
|
|
CFLAGS+= -DNETLINK_MODULE
|
|
|
|
EXPORT_SYMS=
|
|
EXPORT_SYMS+= nlmsg_get_chain_writer
|
|
EXPORT_SYMS+= nlmsg_refill_buffer
|
|
EXPORT_SYMS+= nlmsg_end
|
|
EXPORT_SYMS+= nlmsg_flush
|
|
|
|
EXPORT_SYMS= YES
|
|
|
|
.include <bsd.kmod.mk>
|