Changeset 94977 in vbox
- Timestamp:
- May 10, 2022 9:45:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv4/ip_frag.c
r50474 r94977 100 100 #endif 101 101 102 #ifndef VBOX 102 103 #define IP_ADDRESSES_AND_ID_MATCH(iphdrA, iphdrB) \ 103 104 (ip_addr_cmp(&(iphdrA)->src, &(iphdrB)->src) && \ 104 105 ip_addr_cmp(&(iphdrA)->dest, &(iphdrB)->dest) && \ 105 106 IPH_ID(iphdrA) == IPH_ID(iphdrB)) ? 1 : 0 107 #else 108 /* 109 * Put parantheses around the whole construct so the ternary operator works 110 * as anticipated. 111 */ 112 #define IP_ADDRESSES_AND_ID_MATCH(iphdrA, iphdrB) \ 113 ((ip_addr_cmp(&(iphdrA)->src, &(iphdrB)->src) && \ 114 ip_addr_cmp(&(iphdrA)->dest, &(iphdrB)->dest) && \ 115 IPH_ID(iphdrA) == IPH_ID(iphdrB)) ? 1 : 0) 116 #endif 106 117 107 118 /* global variables */
Note:
See TracChangeset
for help on using the changeset viewer.