source: network-demos/mcast/README @ af6a124

4.11
Last change on this file since af6a124 was af6a124, checked in by Joel Sherrill <joel.sherrill@…>, on 05/15/12 at 21:23:55

network-demos - Remove CVS Ids (scripted)

  • Property mode set to 100644
File size: 1.5 KB
Line 
1This directory contains a very simple multicast demo program.  There
2are multiple multicast demo programs on the Internet and this program
3is a combination of those.
4
5Native Programs
6===============
7Two native programs are built as a side-effect of the RTEMS make.
8They are listener and mcast.
9
10+ listener is a pure listener
11
12+ mcast sends and receives data and is the same program run on the
13  RTEMS target
14
15
16Driver Requirements
17===================
18+ NIC must set IFF_MULTICAST bit in if_flags during attach
19
20  ifp->if_flags   = IFF_BROADCAST | IFF_MULTICAST;
21
22+ NIC must support SIOCADDMULTI and SIOCDELMULTI ioctls.
23
24    case SIOCADDMULTI:
25    case SIOCDELMULTI: {
26      struct ifreq* ifr = (struct ifreq*) data;
27      error = (command == SIOCADDMULTI)
28                  ? ether_addmulti(ifr, &sc->arpcom)
29                  : ether_delmulti(ifr, &sc->arpcom);
30       
31       if (error == ENETRESET) {
32         if (ifp->if_flags & IFF_RUNNING)
33           error = // driver specific routine to adjust filtering
34       }
35       break;
36    }
37
38  In some drivers, there is no need to adjust any driver specific
39  filtering.  In this case, set error = 0 in the above code.
40
41GNU/Linux
42=========
43You will have to have a route in place.  Something like this command should
44work if you adjust the 192.168.1.244 to match your IP address and adjust the
45239.9.8.0 to match the multicast address used in mcast_params.h:
46
47/sbin/route  add -net 239.9.8.0  netmask 255.255.255.0 gw 192.168.1.244 dev eth0
48
Note: See TracBrowser for help on using the repository browser.