- Timestamp:
- Dec 10, 2013 4:50:47 AM (11 years ago)
- Location:
- trunk/src/VBox/NetworkServices/NAT
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/proxy.c
r49713 r49860 400 400 401 401 402 void 402 int 403 403 proxy_sendto(SOCKET sock, struct pbuf *p, void *name, size_t namelen) 404 404 { … … 416 416 IOVEC *dyniov; /* dynamically sized */ 417 417 IOVEC *iov; 418 int error = 0; 418 419 419 420 /* … … 428 429 dyniov = (IOVEC *)malloc(clen * sizeof(*dyniov)); 429 430 if (dyniov == NULL) { 431 error = -errno; 430 432 goto out; 431 433 } … … 454 456 nsent = sendmsg(sock, &mh, 0); 455 457 if (nsent < 0) { 458 error = -errno; 456 459 DPRINTF(("%s: fd %d: sendmsg errno %d\n", 457 460 __func__, sock, errno)); … … 463 466 DPRINTF(("%s: fd %d: sendmsg errno %d\n", 464 467 __func__, sock, WSAGetLastError())); 468 error = -WSAGetLastError(); 465 469 } 466 470 #endif … … 471 475 } 472 476 pbuf_free(p); 477 return error; 473 478 } 474 479 -
trunk/src/VBox/NetworkServices/NAT/proxy.h
r49605 r49860 49 49 SOCKET proxy_bound_socket(int, int, struct sockaddr *); 50 50 void proxy_reset_socket(SOCKET); 51 voidproxy_sendto(SOCKET, struct pbuf *, void *, size_t);51 int proxy_sendto(SOCKET, struct pbuf *, void *, size_t); 52 52 void proxy_lwip_post(struct tcpip_msg *); 53 53 const char *proxy_lwip_strerr(err_t);
Note:
See TracChangeset
for help on using the changeset viewer.