VirtualBox

Ignore:
Timestamp:
Jun 30, 2009 4:45:14 AM (16 years ago)
Author:
vboxsync
Message:

NAT: BSD(darwin) specifics of binding

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r21004 r21049  
    774774    so->so_laddr.s_addr = laddr; /* Ditto */
    775775
     776    memset(&addr, 0, sizeof(addr));
     777#ifdef RT_OS_DARWIN
     778    addr.sin_len = sizeof(addr);
     779#endif
    776780    addr.sin_family = AF_INET;
    777781    addr.sin_addr.s_addr = bind_addr;
  • trunk/src/VBox/Devices/Network/slirp/udp.c

    r21004 r21049  
    380380         * here so that emulation of ytalk etc. don't have to do it
    381381         */
     382        memset(&addr, 0, sizeof(addr));
     383#ifdef RT_OS_DARWIN
     384        addr.sin_len = sizeof(addr);
     385#endif
    382386        addr.sin_family = AF_INET;
    383387        addr.sin_port = service_port;
     
    743747    QSOCKET_UNLOCK(udb);
    744748
     749    memset(&addr, 0, sizeof(addr));
     750#ifdef RT_OS_DARWIN
     751    addr.sin_len = sizeof(addr);
     752#endif
    745753    addr.sin_family = AF_INET;
    746754    addr.sin_addr.s_addr = bind_addr;
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