VirtualBox

Ignore:
Timestamp:
Jul 15, 2009 11:18:49 AM (16 years ago)
Author:
vboxsync
Message:

NAT: correct binding

File:
1 edited

Legend:

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

    r20974 r21601  
    756756    fd_nonblock(so->s);
    757757#endif
     758    memset(&sock_addr, 0, sizeof(struct sockaddr_in));
    758759    sock_addr.sin_family = AF_INET;
    759760    sock_addr.sin_addr.s_addr = htonl(INADDR_ANY);
    760     sock_addr.sin_port = port_net;
     761    sock_addr.sin_port = htons(port_net);
    761762
    762763    err = bind(sock,
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