- Timestamp:
- May 21, 2018 1:14:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/udp.c
r72274 r72276 534 534 so->so_type = IPPROTO_UDP; 535 535 536 if ((so->s = socket(AF_INET, SOCK_DGRAM, 0)) == -1) 536 so->s = socket(AF_INET, SOCK_DGRAM, 0); 537 if (so->s == -1) 537 538 goto error; 539 fd_nonblock(so->s); 540 538 541 so->so_sottl = 0; 539 542 so->so_sotos = 0; 540 543 so->so_sodf = -1; 541 544 542 fd_nonblock(so->s);543 544 545 status = sobind(pData, so); 545 546 if (status != 0) … … 548 549 /* success, insert in queue */ 549 550 so->so_expire = curtime + SO_EXPIRE; 551 550 552 /* enable broadcast for later use */ 551 553 setsockopt(so->s, SOL_SOCKET, SO_BROADCAST, (const char *)&opt, sizeof(opt)); 554 552 555 status = getsockname(so->s, &sa_addr, &socklen); 553 556 #if 0 /** @todo Something is explitived here! Temporarily disabled this annoying assertion. Re-enable when fixed. */ … … 564 567 return so->s; 565 568 error: 566 Log2(("NAT: can't create datagram msocket\n"));569 Log2(("NAT: can't create datagram socket\n")); 567 570 return -1; 568 571 }
Note:
See TracChangeset
for help on using the changeset viewer.