You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Checks if the IP address matches the global 255.255.255.255 broadcast address or
215
+
* the broadcast address for any of our IPv4 endpoints.
216
+
*
217
+
* @param[in] ulIPAddress The IP address being checked.
218
+
*
219
+
* @param[out] ppxEndPoint Pointer to an end-point where we store the endpoint whose broadcast address we matched. Or NULL if no IPv4 endpoints were found.
220
+
*
221
+
* @return pdTRUE if the IP address is a broadcast address or else, pdFALSE.
222
+
*/
223
+
BaseType_txIsIPv4Broadcast( uint32_tulIPAddress,
224
+
structxNetworkEndPoint**ppxEndPoint )
225
+
{
226
+
BaseType_txIsBroadcast;
227
+
NetworkEndPoint_t*pxEndPoint;
228
+
229
+
/* Assign a default answer based on the "global" broadcast. This way
230
+
* we can still return the correct result even if there are no endpoints. */
Copy file name to clipboardExpand all lines: source/include/FreeRTOS_Sockets.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -150,9 +150,10 @@
150
150
#if ( ipconfigUSE_TCP==1 )
151
151
#defineFREERTOS_SO_SET_LOW_HIGH_WATER ( 18 )
152
152
#endif
153
-
#defineFREERTOS_INADDR_ANY ( 0U ) /* The 0.0.0.0 IPv4 address. */
153
+
#defineFREERTOS_INADDR_ANY ( 0U ) /* The 0.0.0.0 IPv4 address. */
154
+
#defineFREERTOS_INADDR_BROADCAST ( 0xffffffffUL ) /* 255.255.255.255 is a special broadcast address that represents all host attached to the physical network. */
0 commit comments