VirtualBox

Changeset 46425 in vbox for trunk


Ignore:
Timestamp:
Jun 7, 2013 5:09:23 AM (12 years ago)
Author:
vboxsync
Message:

LWIP-new/iSCSI: updates.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevINIP.cpp

    r46132 r46425  
    5656#include "VBoxDD.h"
    5757
     58#ifdef VBOX_WITH_NEW_LWIP
     59# include "VBoxLwipCore.h"
     60#endif
    5861
    5962/*******************************************************************************
     
    142145*   Internal Functions                                                         *
    143146*******************************************************************************/
     147#ifndef VBOX_WITH_NEW_LWIP
    144148static DECLCALLBACK(void) devINIPARPTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer);
    145149static DECLCALLBACK(void) devINIPTCPFastTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer);
    146150static DECLCALLBACK(void) devINIPTCPSlowTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer);
     151#endif
    147152static DECLCALLBACK(err_t) devINIPOutput(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr);
    148153static DECLCALLBACK(err_t) devINIPOutputRaw(struct netif *netif, struct pbuf *p);
     
    150155
    151156
     157#ifndef VBOX_WITH_NEW_LWIP
    152158/**
    153159 * ARP cache timeout handling for lwIP.
     
    194200    LogFlow(("%s: return\n", __FUNCTION__));
    195201}
     202#endif /* VBOX_WITH_NEW_LWIP */
    196203
    197204/**
     
    314321    netif_ip6_addr_set_state(netif, 0, IP6_ADDR_VALID);
    315322    netif->output_ip6 = ethip6_output;
    316 #if LWIP_IPV6_AUTOCONFIG
     323# if LWIP_IPV6_AUTOCONFIG
    317324    netif->ip6_autoconfig_enabled=1;
    318 #endif
     325# endif
    319326    LogFunc(("netif: ipv6:%RTnaipv6\n", &netif->ip6_addr[0].addr[0]));
    320327    netif->output = lwip_etharp_output;
     328
     329    lwip_etharp_init();
    321330#else
    322331    netif->output = devINIPOutput;
    323 #endif
    324     netif->linkoutput = devINIPOutputRaw;
    325 
     332   
    326333    lwip_etharp_init();
    327334    TMTimerSetMillies(g_pDevINIPData->ARPTimer, ARP_TMR_INTERVAL);
     335 #endif
     336    netif->linkoutput = devINIPOutputRaw;
     337
    328338    LogFlow(("%s: success\n", __FUNCTION__));
    329339    return ERR_OK;
     
    466476}
    467477
    468 
     478#ifndef VBOX_WITH_NEW_LWIP
    469479/**
    470480 * Signals the end of lwIP TCPIP initialization.
     
    475485{
    476486    sys_sem_t *sem = (sys_sem_t *)arg;
    477 #ifndef VBOX_WITH_NEW_LWIP
     487
    478488    lwip_sys_sem_signal(*sem);
    479 #else
    480     lwip_sys_sem_signal(sem);
    481 #endif
    482 }
     489}
     490#endif
    483491
    484492
     
    726734     * Initialize lwIP.
    727735     */
     736#ifndef VBOX_WITH_NEW_LWIP
    728737    lwip_stats_init();
    729738    lwip_sys_init();
    730 #if MEM_LIBC_MALLOC == 0
     739# if MEM_LIBC_MALLOC == 0
    731740    lwip_mem_init();
    732 #endif
     741# endif
    733742    lwip_memp_init();
    734743    lwip_pbuf_init();
     
    745754    AssertRCReturn(rc, rc);
    746755    TMTimerSetMillies(pThis->TCPFastTimer, TCP_SLOW_INTERVAL);
    747 #ifndef VBOX_WITH_NEW_LWIP
     756
    748757    pThis->LWIPTcpInitSem = lwip_sys_sem_new(0);
    749758    {
     
    751760        lwip_sys_sem_wait(pThis->LWIPTcpInitSem);
    752761    }
    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();
    761764#endif
    762765
  • trunk/src/VBox/NetworkServices/NAT/Makefile.kmk

    r45672 r46425  
    7575VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp    \
    7676        ../NetLib/VBoxNetBaseService.cpp \
    77         ../NetLib/VBoxNetPortForwardString.cpp \
    78         ../../Devices/Network/VBoxLwipCore.cpp
     77        ../NetLib/VBoxNetPortForwardString.cpp
    7978VBoxNetLwipNAT_LIBS = \
    8079        $(LIB_RUNTIME)
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