- Timestamp:
- Jun 7, 2013 5:09:23 AM (12 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevINIP.cpp
r46132 r46425 56 56 #include "VBoxDD.h" 57 57 58 #ifdef VBOX_WITH_NEW_LWIP 59 # include "VBoxLwipCore.h" 60 #endif 58 61 59 62 /******************************************************************************* … … 142 145 * Internal Functions * 143 146 *******************************************************************************/ 147 #ifndef VBOX_WITH_NEW_LWIP 144 148 static DECLCALLBACK(void) devINIPARPTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer); 145 149 static DECLCALLBACK(void) devINIPTCPFastTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer); 146 150 static DECLCALLBACK(void) devINIPTCPSlowTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer); 151 #endif 147 152 static DECLCALLBACK(err_t) devINIPOutput(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr); 148 153 static DECLCALLBACK(err_t) devINIPOutputRaw(struct netif *netif, struct pbuf *p); … … 150 155 151 156 157 #ifndef VBOX_WITH_NEW_LWIP 152 158 /** 153 159 * ARP cache timeout handling for lwIP. … … 194 200 LogFlow(("%s: return\n", __FUNCTION__)); 195 201 } 202 #endif /* VBOX_WITH_NEW_LWIP */ 196 203 197 204 /** … … 314 321 netif_ip6_addr_set_state(netif, 0, IP6_ADDR_VALID); 315 322 netif->output_ip6 = ethip6_output; 316 # if LWIP_IPV6_AUTOCONFIG323 # if LWIP_IPV6_AUTOCONFIG 317 324 netif->ip6_autoconfig_enabled=1; 318 # endif325 # endif 319 326 LogFunc(("netif: ipv6:%RTnaipv6\n", &netif->ip6_addr[0].addr[0])); 320 327 netif->output = lwip_etharp_output; 328 329 lwip_etharp_init(); 321 330 #else 322 331 netif->output = devINIPOutput; 323 #endif 324 netif->linkoutput = devINIPOutputRaw; 325 332 326 333 lwip_etharp_init(); 327 334 TMTimerSetMillies(g_pDevINIPData->ARPTimer, ARP_TMR_INTERVAL); 335 #endif 336 netif->linkoutput = devINIPOutputRaw; 337 328 338 LogFlow(("%s: success\n", __FUNCTION__)); 329 339 return ERR_OK; … … 466 476 } 467 477 468 478 #ifndef VBOX_WITH_NEW_LWIP 469 479 /** 470 480 * Signals the end of lwIP TCPIP initialization. … … 475 485 { 476 486 sys_sem_t *sem = (sys_sem_t *)arg; 477 #ifndef VBOX_WITH_NEW_LWIP 487 478 488 lwip_sys_sem_signal(*sem); 479 #else 480 lwip_sys_sem_signal(sem); 481 #endif 482 } 489 } 490 #endif 483 491 484 492 … … 726 734 * Initialize lwIP. 727 735 */ 736 #ifndef VBOX_WITH_NEW_LWIP 728 737 lwip_stats_init(); 729 738 lwip_sys_init(); 730 # if MEM_LIBC_MALLOC == 0739 # if MEM_LIBC_MALLOC == 0 731 740 lwip_mem_init(); 732 # endif741 # endif 733 742 lwip_memp_init(); 734 743 lwip_pbuf_init(); … … 745 754 AssertRCReturn(rc, rc); 746 755 TMTimerSetMillies(pThis->TCPFastTimer, TCP_SLOW_INTERVAL); 747 #ifndef VBOX_WITH_NEW_LWIP 756 748 757 pThis->LWIPTcpInitSem = lwip_sys_sem_new(0); 749 758 { … … 751 760 lwip_sys_sem_wait(pThis->LWIPTcpInitSem); 752 761 } 753 #else 754 errRc = lwip_sys_sem_new(&pThis->LWIPTcpInitSem, 0); 755 /* VERR_INTERNAL_ERROR perhaps should be replaced with right error code */ 756 AssertReturn(errRc == ERR_OK, VERR_INTERNAL_ERROR); 757 { 758 lwip_tcpip_init(devINIPTcpipInitDone, &pThis->LWIPTcpInitSem); 759 lwip_sys_sem_wait(&pThis->LWIPTcpInitSem, 0); 760 } 762 #else /* VBOX_WITH_NEW_LWIP */ 763 vboxLwipCoreInitialize(); 761 764 #endif 762 765 -
trunk/src/VBox/NetworkServices/NAT/Makefile.kmk
r45672 r46425 75 75 VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp \ 76 76 ../NetLib/VBoxNetBaseService.cpp \ 77 ../NetLib/VBoxNetPortForwardString.cpp \ 78 ../../Devices/Network/VBoxLwipCore.cpp 77 ../NetLib/VBoxNetPortForwardString.cpp 79 78 VBoxNetLwipNAT_LIBS = \ 80 79 $(LIB_RUNTIME)
Note:
See TracChangeset
for help on using the changeset viewer.