54 #ifdef UIP_MCAST6_ROUTE_CONF_ROUTES 55 #define UIP_MCAST6_ROUTE_ROUTES UIP_MCAST6_ROUTE_CONF_ROUTES 57 #define UIP_MCAST6_ROUTE_ROUTES 1 60 LIST(mcast_route_list);
69 for(locmcastrt =
list_head(mcast_route_list);
72 if(uip_ipaddr_cmp(&locmcastrt->
group, group)) {
85 if(locmcastrt == NULL) {
88 if(locmcastrt == NULL) {
91 list_add(mcast_route_list, locmcastrt);
105 for(locmcastrt =
list_head(mcast_route_list);
108 if(locmcastrt == route) {
void uip_mcast6_route_init()
Multicast routing table init routine.
Linked list manipulation routines.
void * list_head(list_t list)
Get a pointer to the first element of a list.
#define uip_ipaddr_copy(dest, src)
Copy an IP address from one place to another.
Header file for multicast routing table manipulation.
Memory block allocation routines.
An entry in the multicast routing table.
int uip_mcast6_route_count(void)
Retrieve the count of multicast routes.
void uip_mcast6_route_rm(uip_mcast6_route_t *route)
Remove a multicast route.
void list_add(list_t list, void *item)
Add an item at the end of a list.
void list_init(list_t list)
Initialize a list.
Header file for the uIP TCP/IP stack.
#define LIST(name)
Declare a linked list.
void * memb_alloc(struct memb *m)
Allocate a memory block from a block of memory declared with MEMB().
void memb_init(struct memb *m)
Initialize a memory block that was declared with MEMB().
char memb_free(struct memb *m, void *ptr)
Deallocate a memory block from a memory block previously declared with MEMB().
uip_mcast6_route_t * uip_mcast6_route_lookup(uip_ipaddr_t *group)
Lookup a multicast route.
uip_mcast6_route_t * uip_mcast6_route_add(uip_ipaddr_t *group)
Add a multicast route.
void list_remove(list_t list, void *item)
Remove a specific element from a list.
uip_ipaddr_t group
The multicast group.
void * list_item_next(void *item)
Get the next item following this item.
uip_mcast6_route_t * uip_mcast6_route_list_head(void)
Retrieve a pointer to the start of the multicast routes list.
#define MEMB(name, structure, num)
Declare a memory block.
int list_length(list_t list)
Get the length of a list.