Skip to content

Commit

Permalink
Adds support for receiving Multicast Group addresses + IGMP ( IPv4 on…
Browse files Browse the repository at this point in the history
…ly )

Adds 2 function pointers to the network interface struct that handle adding and removing  multicast MAC addresses.
Updates IGMP to use function pointers through the network interface.
Makes the Add/Remove Multicast functions private to NetworkInterface.c They are now used through pointers in the NetworkInterface_t struct.
Improves the SAME70 driver to handle adding/removing muticast MAC addresses
  • Loading branch information
Emil Popov committed Sep 5, 2023
1 parent 0c59e71 commit bd86c17
Show file tree
Hide file tree
Showing 14 changed files with 1,230 additions and 19 deletions.
5 changes: 5 additions & 0 deletions source/FreeRTOS_DNS_Networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
* going to be '0' i.e. success. Thus, return value is discarded */
( void ) FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_SNDTIMEO, &( uxWriteTimeOut_ticks ), sizeof( TickType_t ) );
( void ) FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_RCVTIMEO, &( uxReadTimeOut_ticks ), sizeof( TickType_t ) );
#if ( ipconfigSUPPORT_IP_MULTICAST != 0 )
/* Since this socket may be used for LLMNR or mDNS, set the multicast TTL to 1. */
uint8_t ucMulticastTTL = 1;
( void ) FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_IP_MULTICAST_TTL, &( ucMulticastTTL ), sizeof( uint8_t ) );
#endif
}

return xSocket;
Expand Down
Loading

0 comments on commit bd86c17

Please sign in to comment.