VirtualBox

Changeset 50027 in vbox


Ignore:
Timestamp:
Jan 7, 2014 12:22:53 AM (11 years ago)
Author:
vboxsync
Message:

tcp_enqueue_flags: Fix overzealous alignment assertion.
https://savannah.nongnu.org/bugs/?39683

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/tcp_out.c

    r47886 r50027  
    779779    return ERR_MEM;
    780780  }
    781   LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % MEM_ALIGNMENT) == 0);
     781  LWIP_ASSERT("seg->tcphdr not aligned",
     782              ((mem_ptr_t)seg->tcphdr % (MEM_ALIGNMENT < 4 ? MEM_ALIGNMENT : 4)) == 0);
    782783  LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0);
    783784
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette