Merge pull request #14886 from miri64/gnrc/fix/circ-deps
gnrc: remove circular module dependencies
This commit is contained in:
commit
cb6b65e7ff
22
Makefile.dep
22
Makefile.dep
@ -221,9 +221,6 @@ ifneq (,$(filter ieee802154 nrfmin esp_now cc110x gnrc_sixloenc,$(USEMODULE)))
|
|||||||
ifneq (,$(filter gnrc_ipv6, $(USEMODULE)))
|
ifneq (,$(filter gnrc_ipv6, $(USEMODULE)))
|
||||||
USEMODULE += gnrc_sixlowpan
|
USEMODULE += gnrc_sixlowpan
|
||||||
endif
|
endif
|
||||||
ifneq (,$(filter gnrc_ipv6_router, $(USEMODULE)))
|
|
||||||
USEMODULE += gnrc_sixlowpan_router
|
|
||||||
endif
|
|
||||||
ifneq (,$(filter gnrc_ipv6_default, $(USEMODULE)))
|
ifneq (,$(filter gnrc_ipv6_default, $(USEMODULE)))
|
||||||
USEMODULE += gnrc_sixlowpan_default
|
USEMODULE += gnrc_sixlowpan_default
|
||||||
endif
|
endif
|
||||||
@ -236,7 +233,6 @@ ifneq (,$(filter ieee802154 nrfmin esp_now cc110x gnrc_sixloenc,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_sixlowpan_default,$(USEMODULE)))
|
ifneq (,$(filter gnrc_sixlowpan_default,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_ipv6_default
|
|
||||||
USEMODULE += gnrc_ipv6_nib_6ln
|
USEMODULE += gnrc_ipv6_nib_6ln
|
||||||
USEMODULE += gnrc_sixlowpan
|
USEMODULE += gnrc_sixlowpan
|
||||||
USEMODULE += gnrc_sixlowpan_frag
|
USEMODULE += gnrc_sixlowpan_frag
|
||||||
@ -244,9 +240,7 @@ ifneq (,$(filter gnrc_sixlowpan_default,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_sixlowpan_router_default,$(USEMODULE)))
|
ifneq (,$(filter gnrc_sixlowpan_router_default,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_ipv6_router_default
|
|
||||||
USEMODULE += gnrc_ipv6_nib_6lr
|
USEMODULE += gnrc_ipv6_nib_6lr
|
||||||
USEMODULE += gnrc_sixlowpan_router
|
|
||||||
USEMODULE += gnrc_sixlowpan_frag
|
USEMODULE += gnrc_sixlowpan_frag
|
||||||
USEMODULE += gnrc_sixlowpan_iphc
|
USEMODULE += gnrc_sixlowpan_iphc
|
||||||
endif
|
endif
|
||||||
@ -254,15 +248,10 @@ endif
|
|||||||
ifneq (,$(filter gnrc_sixlowpan_border_router_default,$(USEMODULE)))
|
ifneq (,$(filter gnrc_sixlowpan_border_router_default,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_ipv6_nib_6lbr
|
USEMODULE += gnrc_ipv6_nib_6lbr
|
||||||
USEMODULE += gnrc_ipv6_router_default
|
USEMODULE += gnrc_ipv6_router_default
|
||||||
USEMODULE += gnrc_sixlowpan_router
|
|
||||||
USEMODULE += gnrc_sixlowpan_frag
|
USEMODULE += gnrc_sixlowpan_frag
|
||||||
USEMODULE += gnrc_sixlowpan_iphc
|
USEMODULE += gnrc_sixlowpan_iphc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_sixlowpan_router,$(USEMODULE)))
|
|
||||||
USEMODULE += gnrc_ipv6_router
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_sixlowpan_frag,$(USEMODULE)))
|
ifneq (,$(filter gnrc_sixlowpan_frag,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_sixlowpan
|
USEMODULE += gnrc_sixlowpan
|
||||||
USEMODULE += gnrc_sixlowpan_frag_fb
|
USEMODULE += gnrc_sixlowpan_frag_fb
|
||||||
@ -315,21 +304,27 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(filter gnrc_ndp,$(USEMODULE)))
|
ifneq (,$(filter gnrc_ndp,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_icmpv6
|
USEMODULE += gnrc_icmpv6
|
||||||
|
USEMODULE += gnrc_ipv6_hdr
|
||||||
USEMODULE += gnrc_netif
|
USEMODULE += gnrc_netif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
|
ifneq (,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_icmpv6
|
USEMODULE += gnrc_icmpv6
|
||||||
|
USEMODULE += gnrc_ipv6_hdr
|
||||||
|
USEMODULE += gnrc_netif_hdr
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_icmpv6_error,$(USEMODULE)))
|
ifneq (,$(filter gnrc_icmpv6_error,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_icmpv6
|
USEMODULE += gnrc_icmpv6
|
||||||
|
USEMODULE += gnrc_ipv6_hdr
|
||||||
|
USEMODULE += gnrc_netif_hdr
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_icmpv6,$(USEMODULE)))
|
ifneq (,$(filter gnrc_icmpv6,$(USEMODULE)))
|
||||||
USEMODULE += inet_csum
|
USEMODULE += inet_csum
|
||||||
USEMODULE += gnrc_ipv6
|
USEMODULE += ipv6_hdr
|
||||||
USEMODULE += gnrc_nettype_icmpv6
|
USEMODULE += gnrc_nettype_icmpv6
|
||||||
|
USEMODULE += gnrc_nettype_ipv6
|
||||||
USEMODULE += icmpv6
|
USEMODULE += icmpv6
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -351,7 +346,7 @@ ifneq (,$(filter gnrc_ipv6_ext_rh,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_ipv6_ext,$(USEMODULE)))
|
ifneq (,$(filter gnrc_ipv6_ext,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_ipv6
|
USEMODULE += gnrc_nettype_ipv6
|
||||||
USEMODULE += gnrc_nettype_ipv6_ext
|
USEMODULE += gnrc_nettype_ipv6_ext
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -420,6 +415,7 @@ ifneq (,$(filter gnrc_ipv6_nib,$(USEMODULE)))
|
|||||||
USEMODULE += evtimer
|
USEMODULE += evtimer
|
||||||
USEMODULE += gnrc_ndp
|
USEMODULE += gnrc_ndp
|
||||||
USEMODULE += gnrc_netif
|
USEMODULE += gnrc_netif
|
||||||
|
USEMODULE += gnrc_netif_ipv6
|
||||||
USEMODULE += ipv6_addr
|
USEMODULE += ipv6_addr
|
||||||
USEMODULE += random
|
USEMODULE += random
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -52,7 +52,6 @@ PSEUDOMODULES += gnrc_sixlowpan_default
|
|||||||
PSEUDOMODULES += gnrc_sixlowpan_frag_hint
|
PSEUDOMODULES += gnrc_sixlowpan_frag_hint
|
||||||
PSEUDOMODULES += gnrc_sixlowpan_iphc_nhc
|
PSEUDOMODULES += gnrc_sixlowpan_iphc_nhc
|
||||||
PSEUDOMODULES += gnrc_sixlowpan_nd_border_router
|
PSEUDOMODULES += gnrc_sixlowpan_nd_border_router
|
||||||
PSEUDOMODULES += gnrc_sixlowpan_router
|
|
||||||
PSEUDOMODULES += gnrc_sixlowpan_router_default
|
PSEUDOMODULES += gnrc_sixlowpan_router_default
|
||||||
PSEUDOMODULES += gnrc_sock_async
|
PSEUDOMODULES += gnrc_sock_async
|
||||||
PSEUDOMODULES += gnrc_sock_check_reuse
|
PSEUDOMODULES += gnrc_sock_check_reuse
|
||||||
|
|||||||
@ -589,8 +589,9 @@ int gnrc_netif_ipv6_addr_add_internal(gnrc_netif_t *netif,
|
|||||||
|
|
||||||
gnrc_netif_ipv6_bus_post(netif, GNRC_IPV6_EVENT_ADDR_VALID, &netif->ipv6.addrs[idx]);
|
gnrc_netif_ipv6_bus_post(netif, GNRC_IPV6_EVENT_ADDR_VALID, &netif->ipv6.addrs[idx]);
|
||||||
}
|
}
|
||||||
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_SLAAC)
|
else if (IS_USED(MODULE_GNRC_IPV6) &&
|
||||||
else if (!gnrc_netif_is_6ln(netif)) {
|
IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_SLAAC) &&
|
||||||
|
!gnrc_netif_is_6ln(netif)) {
|
||||||
/* cast to remove const qualifier (will still be used NIB internally as
|
/* cast to remove const qualifier (will still be used NIB internally as
|
||||||
* const) */
|
* const) */
|
||||||
msg_t msg = { .type = GNRC_IPV6_NIB_DAD,
|
msg_t msg = { .type = GNRC_IPV6_NIB_DAD,
|
||||||
@ -598,7 +599,6 @@ int gnrc_netif_ipv6_addr_add_internal(gnrc_netif_t *netif,
|
|||||||
|
|
||||||
msg_send(&msg, gnrc_ipv6_pid);
|
msg_send(&msg, gnrc_ipv6_pid);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
(void)pfx_len;
|
(void)pfx_len;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -26,7 +26,7 @@ static char addr_str[IPV6_ADDR_MAX_STR_LEN];
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For independent testing */
|
/* For independent testing */
|
||||||
#ifdef MODULE_GNRC_IPV6
|
#ifdef MODULE_GNRC_NETTYPE_IPV6
|
||||||
#define HDR_NETTYPE (GNRC_NETTYPE_IPV6)
|
#define HDR_NETTYPE (GNRC_NETTYPE_IPV6)
|
||||||
#else
|
#else
|
||||||
#define HDR_NETTYPE (GNRC_NETTYPE_UNDEF)
|
#define HDR_NETTYPE (GNRC_NETTYPE_UNDEF)
|
||||||
|
|||||||
@ -28,6 +28,7 @@
|
|||||||
#include "net/gnrc/netif.h"
|
#include "net/gnrc/netif.h"
|
||||||
#include "net/ndp.h"
|
#include "net/ndp.h"
|
||||||
#include "net/icmpv6.h"
|
#include "net/icmpv6.h"
|
||||||
|
#include "net/ipv6/hdr.h"
|
||||||
|
|
||||||
#include "_nib-internal.h"
|
#include "_nib-internal.h"
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "luid.h"
|
#include "luid.h"
|
||||||
|
#include "net/gnrc/ipv6/nib.h"
|
||||||
#include "net/gnrc/netif/internal.h"
|
#include "net/gnrc/netif/internal.h"
|
||||||
|
|
||||||
#include "_nib-6ln.h"
|
#include "_nib-6ln.h"
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "_nib-internal.h"
|
#include "_nib-internal.h"
|
||||||
|
|
||||||
|
#include "net/gnrc/ipv6/nib.h"
|
||||||
#include "net/gnrc/ipv6/nib/ft.h"
|
#include "net/gnrc/ipv6/nib/ft.h"
|
||||||
|
|
||||||
int gnrc_ipv6_nib_ft_get(const ipv6_addr_t *dst, gnrc_pktsnip_t *pkt,
|
int gnrc_ipv6_nib_ft_get(const ipv6_addr_t *dst, gnrc_pktsnip_t *pkt,
|
||||||
|
|||||||
@ -3,6 +3,7 @@ include ../Makefile.tests_common
|
|||||||
USEMODULE += gnrc_ipv6_nib_router
|
USEMODULE += gnrc_ipv6_nib_router
|
||||||
USEMODULE += gnrc_ndp
|
USEMODULE += gnrc_ndp
|
||||||
USEMODULE += gnrc_netif
|
USEMODULE += gnrc_netif
|
||||||
|
USEMODULE += gnrc_nettype_ipv6
|
||||||
USEMODULE += embunit
|
USEMODULE += embunit
|
||||||
USEMODULE += netdev_ieee802154
|
USEMODULE += netdev_ieee802154
|
||||||
USEMODULE += netdev_test
|
USEMODULE += netdev_test
|
||||||
|
|||||||
@ -6,6 +6,8 @@ USEMODULE += netdev_ieee802154
|
|||||||
USEMODULE += netdev_test
|
USEMODULE += netdev_test
|
||||||
# 6LoWPAN and its extensions
|
# 6LoWPAN and its extensions
|
||||||
USEMODULE += gnrc_sixlowpan_default
|
USEMODULE += gnrc_sixlowpan_default
|
||||||
|
# IPv6 host support
|
||||||
|
USEMODULE += gnrc_ipv6_default
|
||||||
# UDP
|
# UDP
|
||||||
USEMODULE += gnrc_udp
|
USEMODULE += gnrc_udp
|
||||||
# Dumps packets
|
# Dumps packets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user