- Timestamp:
- Sep 21, 2009 10:35:35 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 52602
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_output.c
r23154 r23178 172 172 173 173 { 174 #ifndef VBOX_WITH_SLIRP_BSD_MBUF 174 175 STAM_PROFILE_START(&pData->StatALIAS_output, a); 175 #ifndef VBOX_WITH_SLIRP_BSD_MBUF176 176 rc = LibAliasOut((m->m_la ? m->m_la : pData->proxy_alias), 177 177 mtod(m, char *), m->m_len); … … 179 179 #else 180 180 struct m_tag *t; 181 STAM_PROFILE_START(&pData->StatALIAS_output, a); 181 182 if (t = m_tag_find(m, PACKET_TAG_ALIAS, NULL) != 0) 182 183 { … … 228 229 #endif 229 230 { 231 #ifdef VBOX_WITH_SLIRP_BSD_MBUF 232 struct m_tag *t; 233 char *tmpbuf = NULL; 234 int tmplen = 0; 235 #endif 230 236 int rc; 231 237 HTONS(ip->ip_len); … … 237 243 mtod(m, char *), m->m_len); 238 244 #else 239 struct m_tag *t;240 char *tmpbuf = NULL;241 int tmplen = 0;242 245 if (m->m_next != NULL) 243 246 { -
trunk/src/VBox/Devices/Network/slirp/socket.c
r23154 r23178 568 568 int size; 569 569 #endif 570 int rc = 0; 571 static int signaled = 0; 570 572 571 573 QSOCKET_LOCK(udb); … … 589 591 /* if (so->so_fport != htons(53)) */ 590 592 { 591 static int signaled = 0; 592 int rc = ioctlsocket(so->s, FIONREAD, &n); 593 rc = ioctlsocket(so->s, FIONREAD, &n); 593 594 594 595 if (rc == -1 && signaled == 0) … … 616 617 * 3. attach buffer to allocated header mbuf 617 618 */ 618 static int signaled = 0; 619 int rc = ioctlsocket(so->s, FIONREAD, &n); 619 rc = ioctlsocket(so->s, FIONREAD, &n); 620 620 621 621 if (rc == -1 && signaled == 0)
Note:
See TracChangeset
for help on using the changeset viewer.