[RTnet-developers] Patch for multicast support for RTnet
Brought to you by:
bet-frogger,
kiszka
|
From: amine <am...@an...> - 2005-07-25 12:34:21
|
hi ,
Here the first realise of patch for multicast support in RTnet , This realise
support :
* IGMP V2
I have only adapt the NIC drivers for :
*RT_8139too : Tested
*RT_eepro100 : Not Tested
-HOW TO USE IT ;
1- Apply the patch to rtnet : (0.8.1 - 0.8.2 - 0.8.3)
2- Patch the NIC driver
3- Execute the autogen.sh scritp to generate a new configure file. (a new
config option will added "--enable-multicast" )
4-execute configure "./configure --with-rtai=<RTAI-DIR>
--enable-multicast "
Now in your application if you want to receive multicast packets you must use
setsockopt " RT_IP_ADD_MEMBERSHIP " , to stop the reception of multicast
packet you can use "RT_IP_DROP_MEMBERSHIP"
Don't forget when sending multicast packet to specify the local IP adress,
don't use INADDR_ANY (Only way I've fount to locate the device) .
for more detail about use of multicast in RTNET please see the sample attached
to this mail.
I hope if any body can test this patch ,and if you have any idea to improve
it.
Im working now on a new realize of this patch , I will add :
* the possiblity to modify the TLL value( new IOCTL in the socketopt).
* IGMP V1 Support.
* A random response to the query request (IGMP V1 & V2).
--
EL HEDADI Amine
R&D
phone :
Email : am...@an...
|