mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
pkg/ccn-lite: add patch for replacing GNRC_NETIF_NUMOF
This commit is contained in:
parent
aa5e6090f0
commit
9cf2da0287
@ -0,0 +1,33 @@
|
||||
From 50b6cbc4acc9715626b55e838c3b317f6a891286 Mon Sep 17 00:00:00 2001
|
||||
From: Jose Alamos <jose.alamos@haw-hamburg.de>
|
||||
Date: Wed, 25 Mar 2020 11:07:29 +0100
|
||||
Subject: [PATCH] ccnl_core: add MAX_GNRC_NETIFS macro
|
||||
|
||||
---
|
||||
src/ccnl-core/include/ccnl-defs.h | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/ccnl-core/include/ccnl-defs.h b/src/ccnl-core/include/ccnl-defs.h
|
||||
index 879bbcfb..93d5af4b 100644
|
||||
--- a/src/ccnl-core/include/ccnl-defs.h
|
||||
+++ b/src/ccnl-core/include/ccnl-defs.h
|
||||
@@ -36,10 +36,15 @@
|
||||
/* assuming that all broadcast addresses consist of a sequence of equal octets */
|
||||
#define CCNL_BROADCAST_OCTET 0xFF
|
||||
|
||||
+/* By default use only one GNRC interface */
|
||||
+#ifndef MAX_GNRC_NETIFS
|
||||
+#define MAX_GNRC_NETIFS (1)
|
||||
+#endif
|
||||
+
|
||||
#if defined(CCNL_ARDUINO) || defined(CCNL_RIOT)
|
||||
# if defined(CCNL_RIOT)
|
||||
# include "net/gnrc/netif.h"
|
||||
-# define CCNL_MAX_INTERFACES GNRC_NETIF_NUMOF
|
||||
+# define CCNL_MAX_INTERFACES MAX_GNRC_NETIFS
|
||||
# else
|
||||
# define CCNL_MAX_INTERFACES 1
|
||||
# endif
|
||||
--
|
||||
2.25.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user