[#5558] bfin mac multi-cast sending fails to work
Submitted By: Barry Song
Open Date
2009-09-26 23:04:27 Close Date
2009-09-27 02:06:50
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
Drivers Board:
N/A
Processor:
BF518 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1-09r1-rc9
App binary format:
N/A
Summary: bfin mac multi-cast sending fails to work
Details:
Let two bfin mac joins a multi-cast group
/* set multicast group for outgoing packets */
inet_aton("224.0.1.130", &iaddr); /* alternate PTP domain 1 */
addr.sin_addr = iaddr;
imr.imr_multiaddr.s_addr = iaddr.s_addr;
imr.imr_interface.s_addr =
((struct sockaddr_in *)&device.ifr_addr)->sin_addr.s_addr;
if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_IF,
&imr.imr_interface.s_addr, sizeof(struct in_addr)) < 0)
bail("set multicast");
/* join multicast group, loop our own packet */
if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP,
&imr, sizeof(struct ip_mreq)) < 0)
bail("join multicast group");
and a mac sends packet to the group, another bfin mac in the group can't receive the multi-cast.
Even using IP_MULTICAST_LOOP, the sending mac can't receive the packet loopback.
if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_LOOP,
&ip_multicast_loop, sizeof(enabled)) < 0) {
bail("loop multicast");
}
But if replaing the sending mac by PC, bfin mac in the group can receive multi-cast packet from PC.
So the muli-cast send can't work, but receive can work.
To let the full ptp protocols can work between >=3 nodes, we must fix the multi-cast sending.
Follow-ups
--- Barry Song 2009-09-27 02:06:50
Wrong report. Two mac was given same IP address. In fact, multicast can work.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found