multicast mac filtering when using macraw mode.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: multicast mac filtering when using macraw mode.
by WIZnet AI AI generated ·
RE: RE: multicast mac filtering when using macraw mode.
by sambuddy200471 ·
Hello,
What i am trying to achieve is to run socket zero in macraw mode with hardware address filtering turned on and multicast filtering turned on
This is the code I am using to setup the multicast filter on the macraw socket.
//setup udp multicast receiver
unsigned char multicast_ip[4] ={224, 0,0,251};
unsigned char multicast_mac[6] = {0};
multicast_mac[0] = 0x01;
multicast_mac[1] = 0x00;
multicast_mac[2] = 0x5E;
multicast_mac[3] = multicast_ip[1] & 0x7F;
multicast_mac[4] = multicast_ip[2];
multicast_mac[5] = multicast_ip[3];
//unlock the chip so we can set the mac address
while (wiznetif_sysNetLockStatus())
{
ctlwizchip(CW_SYS_UNLOCK, &syslock);
}
//setSHAR(netif->hwaddr);
/* set Multicast-Group information */
setSn_DHAR(WIZNET_MACRAW_SOCKET, multicast_mac); /* set Multicast-Group H/W address */
setSn_DIPR(WIZNET_MACRAW_SOCKET, multicast_ip); /* set Multicast-Group IP address */
setSn_DPORTR(WIZNET_MACRAW_SOCKET, 5353); /* set Multicast-GroupPort number */
ctlwizchip(CW_SYS_LOCK, &syslock);
2: I can confirm that I am trying to receive ONLY mDNS traffic, specifically requests, Just so I can announce to other devices that i exist and where to find me
3: Using another socket for UDP mode for the mDNS would be a viable option as long as socket zero can stay in macraw mode AND socket zero can have multicast filtering enabled.
Thanks