mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-06 05:42:11 +08:00
Enable multi-cast routing support
This commit is contained in:
parent
95a3ba8284
commit
46f0b8bd51
@ -420,10 +420,12 @@ mrt_stats()
|
||||
|
||||
mstaddr = nl[N_MRTSTAT].n_value;
|
||||
|
||||
#ifndef __rtems__
|
||||
if (mstaddr == 0) {
|
||||
fprintf(stderr, "No IPv4 MROUTING kernel support.\n");
|
||||
return;
|
||||
}
|
||||
#endif /* __rtems__ */
|
||||
|
||||
if (fetch_stats("net.inet.ip.mrtstat", mstaddr, &mrtstat,
|
||||
sizeof(mrtstat), kread_counters) != 0)
|
||||
|
@ -98,6 +98,18 @@ extern "C" {
|
||||
#define RTEMS_BSD_CFGDECL_NET_PF_UNIX
|
||||
#endif /* RTEMS_BSD_CONFIG_NET_PF_UNIX */
|
||||
|
||||
#if defined(RTEMS_BSD_CONFIG_NET_IP_MROUTE)
|
||||
#define RTEMS_BSD_CFGDECL_NET_IP_MROUTE SYSINIT_NEED_NET_IP_MROUTE
|
||||
#else
|
||||
#define RTEMS_BSD_CFGDECL_NET_IP_MROUTE
|
||||
#endif /* RTEMS_BSD_CONFIG_NET_IP_MROUTE */
|
||||
|
||||
#if defined(RTEMS_BSD_CONFIG_NET_IP6_MROUTE)
|
||||
#define RTEMS_BSD_CFGDECL_NET_IP6_MROUTE SYSINIT_NEED_NET_IP6_MROUTE
|
||||
#else
|
||||
#define RTEMS_BSD_CFGDECL_NET_IP6_MROUTE
|
||||
#endif /* RTEMS_BSD_CONFIG_NET_IP6_MROUTE */
|
||||
|
||||
/*
|
||||
* Bridging.
|
||||
* https://www.freebsd.org/doc/handbook/network-bridging.html
|
||||
@ -198,6 +210,8 @@ extern "C" {
|
||||
* Create the networking modules and interfaces.
|
||||
*/
|
||||
RTEMS_BSD_CFGDECL_NET_PF_UNIX;
|
||||
RTEMS_BSD_CFGDECL_NET_IP_MROUTE;
|
||||
RTEMS_BSD_CFGDECL_NET_IP6_MROUTE;
|
||||
RTEMS_BSD_CFGDECL_NET_IF_BRIDGE;
|
||||
RTEMS_BSD_CFGDECL_NET_IF_LAGG;
|
||||
RTEMS_BSD_CFGDECL_NET_IF_VLAN;
|
||||
|
@ -84,6 +84,12 @@
|
||||
#define SYSINIT_NEED_NET_PF_UNIX \
|
||||
SYSINIT_DOMAIN_REFERENCE(local)
|
||||
|
||||
#define SYSINIT_NEED_NET_IP_MROUTE \
|
||||
SYSINIT_MODULE_REFERENCE(ip_mroute)
|
||||
|
||||
#define SYSINIT_NEED_NET_IP6_MROUTE \
|
||||
SYSINIT_MODULE_REFERENCE(ip6_mroute)
|
||||
|
||||
#define SYSINIT_NEED_NET_IF_BFE \
|
||||
SYSINIT_DRIVER_REFERENCE(bfe, pci)
|
||||
|
||||
|
@ -306,6 +306,8 @@ Init(rtems_task_argument arg)
|
||||
#endif
|
||||
|
||||
#define RTEMS_BSD_CONFIG_NET_PF_UNIX
|
||||
#define RTEMS_BSD_CONFIG_NET_IP_MROUTE
|
||||
#define RTEMS_BSD_CONFIG_NET_IP6_MROUTE
|
||||
#define RTEMS_BSD_CONFIG_NET_IF_LAGG
|
||||
#define RTEMS_BSD_CONFIG_NET_IF_VLAN
|
||||
#define RTEMS_BSD_CONFIG_BSP_CONFIG
|
||||
|
Loading…
x
Reference in New Issue
Block a user