Merge pull request #1689 from kqorany/kqorany-esmrf

A new multicast engine called ESMRF for RPL
This commit is contained in:
George Oikonomou 2016-06-28 23:23:30 +01:00 committed by GitHub
commit a509aa7136
5 changed files with 498 additions and 0 deletions

View file

@ -63,6 +63,7 @@
#include "net/ipv6/multicast/uip-mcast6-engines.h"
#include "net/ipv6/multicast/uip-mcast6-route.h"
#include "net/ipv6/multicast/smrf.h"
#include "net/ipv6/multicast/esmrf.h"
#include "net/ipv6/multicast/roll-tm.h"
#include <string.h>
@ -154,10 +155,16 @@ struct uip_mcast6_driver {
#define UIP_CONF_IPV6_ROLL_TM 1 /* ROLL Trickle ICMP type support */
#define UIP_MCAST6 roll_tm_driver
#elif UIP_MCAST6_ENGINE == UIP_MCAST6_ENGINE_SMRF
#define RPL_WITH_MULTICAST 1
#define UIP_MCAST6 smrf_driver
#elif UIP_MCAST6_ENGINE == UIP_MCAST6_ENGINE_ESMRF
#define RPL_CONF_MULTICAST 1
#define UIP_MCAST6 esmrf_driver
#else
#error "Multicast Enabled with an Unknown Engine."
#error "Check the value of UIP_MCAST6_CONF_ENGINE in conf files."