Changeset 14228 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Nov 16, 2008 6:36:37 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip.h
r14227 r14228 261 261 }; 262 262 263 #ifdef VBOX_WITH_BSD_REASS 264 /* 265 * IP datagram reassembly. 266 */ 267 #define IPREASS_NHASH_LOG2 6 268 #define IPREASS_NHASH (1 << IPREASS_NHASH_LOG2) 269 #define IPREASS_HMASK (IPREASS_NHASH - 1) 270 #define IPREASS_HASH(x,y) \ 271 (((((x) & 0xF) | ((((x) >> 8) & 0xF) << 4)) ^ (y)) & IPREASS_HMASK) 272 TAILQ_HEAD(ipqhead,ipq_t); 273 #endif /* VBOX_WITH_BSD_REASS */ 274 263 275 /* 264 276 * Ip header, when holding a fragment. -
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r14227 r14228 57 57 ipq.next = ipq.prev = ptr_to_u32(pData, &ipq); 58 58 #else /* !VBOX_WITH_BSD_REASS */ 59 int i = 0; 60 for (i = 0; i < IPREASS_NHASH; ++i) 61 TAILQ_INIT(&ipq[i]); 59 62 #endif /* VBOX_WITH_BSD_REASS */ 60 63 ip_currid = tt.tv_sec & 0xffff; -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r14204 r14228 69 69 /* Stuff from ip_input.c */ 70 70 struct ipstat_t ipstat; 71 #ifndef VBOX_WITH_BSD_REASS 71 72 struct ipq_t ipq; 73 #else /* !VBOX_WITH_BSD_REASS */ 74 struct ipqhead ipq[IPREASS_NHASH]; 75 #endif /* VBOX_WITH_BSD_REASS */ 72 76 uint16_t ip_currid; 73 77 /* Stuff from mbuf.c */ … … 116 120 struct socket udb; 117 121 struct socket *udp_last_so; 118 #if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 122 #if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 119 123 # define VBOX_SOCKET_EVENT (pData->phEvents[VBOX_SOCKET_EVENT_INDEX]) 120 124 HANDLE phEvents[VBOX_EVENT_COUNT];
Note:
See TracChangeset
for help on using the changeset viewer.