Multicast join failure and socket error 59(0x3B)
I need to join 19 (or more) multicast groups, from 18.104.22.168 to 22.214.171.124, on one socket. After 10 well succeed join operations, setsockopt start to return
errors. See the small extract of the log:
11:54:28.059 Multicast Test: Multicast (itf 0)address 126.96.36.199 add operation fails. 010.000.000.231:01540 224.000.000.050:07580
11:54:28.061 Multicast Test: socket error 59 010.000.000.231:01540 224.000.000.050:07580
11:54:29.070 Multicast Test: Multicast (itf 0)address 188.8.131.52 add operation fails. 010.000.000.231:01540 224.000.000.050:07580
… and so on.
I would expect join all groups, once the driver have room to 20 for M.A.Cs, determined by MAX_MCA (on eth_mcast.c).
Some debug information:
1-) The eth_add_multicast never returns an error. Also, it is never called when setsockopt have IP_ADD_MEMBERSHIP option.
2-) The socket error for the multicast join error is 59, and there is no documentation (or I was unable to find it) on Net+OS API Reference (file ApiReference.chm).
3-) eth_del_multicast is called only once.
NETOS version 60 (lib, without sources)
NET+50 chip, on custom board
code_extract.c with test functions and log.txt with complete log.
Some one knows what is the reason? There is another documented (or not :-)) limit that I should had observed? In this case, There is a way to expand it?