VirtualBox

Changeset 39894 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jan 27, 2012 6:35:38 AM (13 years ago)
Author:
vboxsync
Message:

NAT: don't confuse anyone with service port. It was never used and was introduced while VPN issues investigation.

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

Legend:

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

    r37746 r39894  
    127127            return;
    128128        }
    129         if(udp_attach(pData, so1, 0) == -1)
     129        if(udp_attach(pData, so1) == -1)
    130130        {
    131131            LogRel(("NAT: can't attach udp socket\n"));
  • trunk/src/VBox/Devices/Network/slirp/udp.c

    r39299 r39894  
    179179    }
    180180
     181    LogFunc(("uh src: %RTnaipv4:%d, dst: %RTnaipv4:%d\n", ip->ip_src, RT_H2N_U16_C(uh->uh_sport), ip->ip_dst, RT_H2N_U16_C(uh->uh_dport)));
    181182    if (   pData->fUseHostResolver
    182183        && uh->uh_dport == RT_H2N_U16_C(53)
     
    245246            goto bad_free_mbuf;
    246247        }
    247         if (udp_attach(pData, so, 0) <= 0)
     248        if (udp_attach(pData, so) <= 0)
    248249        {
    249250            Log2(("NAT: IP(id: %hd) udp_attach errno = %d (%s)\n",
     
    447448
    448449int
    449 udp_attach(PNATState pData, struct socket *so, int service_port)
     450udp_attach(PNATState pData, struct socket *so)
    450451{
    451452    struct sockaddr_in *addr;
     
    468469#endif
    469470    addr->sin_family = AF_INET;
    470     addr->sin_port = service_port;
    471471    addr->sin_addr.s_addr = pData->bindIP.s_addr;
    472472    fd_nonblock(so->s);
  • trunk/src/VBox/Devices/Network/slirp/udp.h

    r28800 r39894  
    125125void udp_input (PNATState, register struct mbuf *, int);
    126126int udp_output (PNATState, struct socket *, struct mbuf *, struct sockaddr_in *);
    127 int udp_attach (PNATState, struct socket *, int service_port);
     127int udp_attach (PNATState, struct socket *);
    128128void udp_detach (PNATState, struct socket *);
    129129u_int8_t udp_tos (struct socket *);
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