VirtualBox

Changeset 27468 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Mar 18, 2010 7:27:01 AM (15 years ago)
Author:
vboxsync
Message:

NAT: clarification to byte order in ip_len check of original ip packet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r27466 r27468  
    11261126            return;
    11271127        }
    1128 #if 0
    1129         /*
    1130          * @todo ip0 seems have different byte order on different OSes, e.g. on Solaris it's required
    1131          * to N2H, but on Linux no convertaion required.
     1128        /*
     1129         * while combining buffer to send (see ip_icmp.c) we control ICMP header only,
     1130         * IP header combined by OS network stack, our local copy of IP header contians values
     1131         * in host byte order so no byte order conversion is required. IP headers fields are converting
     1132         * in ip_output0 routine only.   
    11321133         */
    11331134        if (   (ip->ip_len - hlen )
     
    11381139            return;
    11391140        }
    1140 #endif
    11411141    }
    11421142
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