VirtualBox

Changeset 50020 in vbox


Ignore:
Timestamp:
Jan 4, 2014 5:12:12 AM (11 years ago)
Author:
vboxsync
Message:

ip6_input: When testing fragment offset use bit masks in network byte order.

File:
1 edited

Legend:

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

    r49854 r50020  
    711711
    712712      /* Offset == 0 and more_fragments == 0? */
    713       if (((frag_hdr->_fragment_offset & IP6_FRAG_OFFSET_MASK) == 0) &&
    714           ((frag_hdr->_fragment_offset & IP6_FRAG_MORE_FLAG) == 0)) {
    715 
     713      if ((frag_hdr->_fragment_offset
     714           & PP_HTONS(IP6_FRAG_OFFSET_MASK | IP6_FRAG_MORE_FLAG)) == 0)
     715      {
    716716        /* This is a 1-fragment packet, usually a packet that we have
    717717         * already reassembled. Skip this header anc continue. */
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