Hi,
Like Zach said, you can do with mld_mac_filter set to NULL and making
sure your MAC implementation lets those packets through. Link-local
all-nodes address is accepted by default so you can receive those RA
packets.
The easiest way to do it is to set up your MAC to accept all multicast
packets. In most networks this works well.
In really large networks with lots of multicast packets, it can become
inefficient as TCP/IP stack needs to process and drop lots of packets.
In that case, you can implement mld_mac_filter to tell your MAC which
packets to let through and which ones to ignore.
What I do is something in between: I know in advance which Multicast
addresses my application uses and I hard code into the MAC code which
ones to let through. Implementing mld_mac_filter would be better but
this works for me.
Cheers
IVan
Date: Fri, 10 Jan 2014 15:59:47 +0000
From: Zach Smith <[email protected]>
To: Mailing list for lwIP users <[email protected]>
Subject: Re: [lwip-users] IPv6 porting, need help in
netif->mld_mac_filter
Message-ID:
<750fdcd64e0e4c70b279a3968101b...@by2pr04mb256.namprd04.prod.outlook.com>
Content-Type: text/plain; charset="us-ascii"
In my IP6 implementation I did not do anything with the
mld_mac_filter parameter. It is just set to null in netif_add. FF02::1
is the all nodes multicast group so I think by default you are already
joined to that group.
The only thing I can think of that you haven't mentioned is to make
sure your MAC is set up to accept multicast packets. It may be set to
receive broadcast already but IP6 won't work if it is not set to
receive multicast.
-Zach
From: [email protected]
[mailto:[email protected]] On
Behalf Of [email protected]
Sent: Thursday, January 09, 2014 10:05 PM
To: [email protected]
Subject: [lwip-users] IPv6 porting, need help in netif->mld_mac_filter
Hi,
I am new to LWIP IPv6 implementation.
I am trying to port it for my device, I have set below netif param
and #define to respective values
#define LWIP_IPV6 1
#define LWIP_IPV6_DHCP6 1
#define LWIP_ICMP6 1
#define LWIP_IPV6_AUTOCONFIG 1
#define LWIP_IPV6_NUM_ADDRESSES 6
netif->ip6_autoconfig_enabled = 1;
netif->output_ip6 = ethip6_output;
With this setting I could see LWIP is sending
a> "Multicast Listner Report"
b> Neighbour solicitation
c> Router Solicitation (to ff02::2)
Also I can see my router is sending me Router advertisement (to
ff02::1) which I am not able to receive. I feel this is because I
haven't set below parameter in netif
netif->mld_mac_filter = ?????;
I am not sure what this function should be, As I know I have to join
this multicast group to receive the advertisement packet.
Can someone help me in what this function should point to and is some
example already available?
Thanks and Regards,
Manoj
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any
attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any
virus transmitted by this email.
www.wipro.com<http://www.wipro.com>
________________________________
This email may contain information that is confidential and/or
legally privileged in nature. The message is intended for the use of
the individual(s) or entity listed above. If you are not the intended
recipient, please do not read, copy, publish or distribute the
communication; and notify the sender by replying to this message and
deleting this copy and any copies that may be in your electronic
system. Thank you for your compliance.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users