Commit 431129b7 authored by roel0's avatar roel0

ipv6 multicast support BETA

parent 63543643
......@@ -68,6 +68,9 @@ struct pico_socket {
#endif
#ifdef PICO_SUPPORT_MCAST
struct pico_tree *MCASTListen;
#ifdef PICO_SUPPORT_IPV6
struct pico_tree *MCASTListen_ipv6;
#endif
#endif
uint16_t ev_pending;
......@@ -113,6 +116,14 @@ struct pico_ipv6_mreq_source {
struct pico_ip6 mcast_link_addr;
};
union pico_mreq {
struct pico_ipv6_mreq ipv6;
struct pico_ip_mreq ipv4;
};
union pico_mreq_source {
struct pico_ipv6_mreq_source ipv6;
struct pico_ip_mreq_source ipv4;
};
#endif
#define PICO_SOCKET_STATE_UNDEFINED 0x0000u
......
......@@ -9,7 +9,7 @@
#define _INCLUDE_PICO_IPV6
#include "pico_addressing.h"
#include "pico_protocol.h"
#include "pico_ipv4.h"
#define PICO_SIZE_IP6HDR ((uint32_t)(sizeof(struct pico_ipv6_hdr)))
#define PICO_IPV6_DEFAULT_HOP 64
#define PICO_IPV6_MIN_MTU 1280
......@@ -47,6 +47,10 @@ struct pico_ipv6_link
struct pico_timer *dad_timer;
pico_time expire_time;
};
union pico_link {
struct pico_ipv4_link ipv4;
struct pico_ipv6_link ipv6;
};
struct pico_ipv6_hbhoption {
uint8_t type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment