et/devif/devif_callback.c: devif_event_trigger shouldn't return true if triggers & DEVPOLL_MASK equal zero()
This commit is contained in:
parent
9efadaefc1
commit
cf9f2c56cb
|
@ -533,7 +533,8 @@
|
||||||
# define MIN_TCP_MSS __MIN_TCP_MSS(__IPv6_HDRLEN)
|
# define MIN_TCP_MSS __MIN_TCP_MSS(__IPv6_HDRLEN)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* How long a connection should stay in the TIME_WAIT state.
|
/* How long a connection should stay in the TIME_WAIT state (in units of
|
||||||
|
* seconds).
|
||||||
*
|
*
|
||||||
* TIME_WAIT is often also known as the 2MSL wait state. This is because
|
* TIME_WAIT is often also known as the 2MSL wait state. This is because
|
||||||
* the socket that transitions to TIME_WAIT stays there for a period that
|
* the socket that transitions to TIME_WAIT stays there for a period that
|
||||||
|
@ -542,7 +543,8 @@
|
||||||
* being discarded. This time limit is ultimately bounded by the TTL field
|
* being discarded. This time limit is ultimately bounded by the TTL field
|
||||||
* in the IP datagram that is used to transmit the TCP segment. RFC 793
|
* in the IP datagram that is used to transmit the TCP segment. RFC 793
|
||||||
* specifies MSL as 2 minutes but most systems permit this value to be tuned.
|
* specifies MSL as 2 minutes but most systems permit this value to be tuned.
|
||||||
* Here a default of 2 minutes is used, half the value specified by RFC 793.
|
* Here a default TIME_WAIT (2MSL) 2 minutes is used, half the value
|
||||||
|
* specified by RFC 793.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_TCP_WAIT_TIMEOUT
|
#ifdef CONFIG_NET_TCP_WAIT_TIMEOUT
|
||||||
|
|
|
@ -194,7 +194,7 @@ static bool devif_event_trigger(uint16_t events, uint16_t triggers)
|
||||||
|
|
||||||
if ((events & DEVPOLL_MASK) == (triggers & DEVPOLL_MASK))
|
if ((events & DEVPOLL_MASK) == (triggers & DEVPOLL_MASK))
|
||||||
{
|
{
|
||||||
return true;
|
return (triggers & DEVPOLL_MASK) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No.. this event set will not generate the callback */
|
/* No.. this event set will not generate the callback */
|
||||||
|
|
Loading…
Reference in New Issue