VirtualBox

Changeset 57449 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 19, 2015 12:40:36 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102216
Message:

NAT: udp_listen: set so_hladdr/so_hlport like we do in udp_attach().
This should fix matching of icmp errors for outbound udp replies sent
through port-forwarding socket.

File:
1 edited

Legend:

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

    r56292 r57449  
    651651
    652652    getsockname(so->s,(struct sockaddr *)&addr,&addrlen);
     653    so->so_hladdr = addr.sin_addr;
     654    so->so_hlport = addr.sin_port;
     655
     656    /* XXX: wtf are we setting so_faddr/so_fport here? */
    653657    so->so_fport = addr.sin_port;
    654658    /* The original check was completely broken, as the commented out
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette