This repo is forked from https://github.com/rg3/multicast_test. New features includes:
- ssm support
- add log file multicast_receive.log
How to Use
-
run 'make' in source folder, it will gerenate 2 executable file: multicast_receive, multicast_send
-
to send multicast: ./multicast_send 239.1.1.1 1234 192.168.1.132 4000 100 2000
239.1.1.1 is multicast group as destination ip, 1234 is udp port
192.168.1.132 is interface ip where this multicast packet is sent
4000 is packet size, 100 is packet number, 2000 is send interval in usecond
-
to receive ssm multicast:
./multicast_receive 239.1.1.1 : 1234 : 192.168.1.132 : 192.168.2.100
239.1.1.1 is multicast group as destination ip, 1234 is udp port
192.168.1.132 is source ip where this multicast packet is originated
192.168.2.100 is interface ip where this multicast packet is incoming