mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
tools/nxstyle.c: Fix logic error that prevent detecion of '/' and '/=' as operators. net/: Minor updates resulting from testing tools/nxstyle.
This commit is contained in:
@@ -223,7 +223,6 @@ static uint8_t devif_reassembly(FAR struct net_driver_s *dev)
|
||||
g_reassembly_bitmap[offset / (8 * 8)] |=
|
||||
g_bitmap_bits[(offset / 8) & 7] &
|
||||
~g_bitmap_bits[((offset + len) / 8) & 7];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -342,8 +341,10 @@ int ipv4_input(FAR struct net_driver_s *dev)
|
||||
g_netstats.ipv4.recv++;
|
||||
#endif
|
||||
|
||||
/* Start of IP input header processing code. */
|
||||
/* Check validity of the IP header. */
|
||||
/* Start of IP input header processing code.
|
||||
*
|
||||
* Check validity of the IP header.
|
||||
*/
|
||||
|
||||
if (ipv4->vhl != 0x45)
|
||||
{
|
||||
|
||||
@@ -289,8 +289,10 @@ int ipv6_input(FAR struct net_driver_s *dev)
|
||||
g_netstats.ipv6.recv++;
|
||||
#endif
|
||||
|
||||
/* Start of IP input header processing code. */
|
||||
/* Check validity of the IP header. */
|
||||
/* Start of IP input header processing code.
|
||||
*
|
||||
* Check validity of the IP header.
|
||||
*/
|
||||
|
||||
if ((ipv6->vtc & 0xf0) != 0x60)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user