Changeset 53776 in vbox
- Timestamp:
- Jan 12, 2015 4:38:11 PM (10 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r53755 r53776 677 677 ifeq ($(KBUILD_TARGET), win) 678 678 VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c 679 else ifneq ($(KBUILD_TARGET),darwin) 680 # helper for debugging unprivileged 681 # Network/slirp/ip_icmp.c_DEFS += VBOX_RAWSOCK_DEBUG_HELPER 682 # VBOX_SLIRP_SOURCES += ../NetworkServices/NAT/getrawsock.c 679 683 endif 680 684 -
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r53399 r53776 56 56 #include "slirp.h" 57 57 #include "ip_icmp.h" 58 59 #ifdef VBOX_RAWSOCK_DEBUG_HELPER 60 int getrawsock(int type); 61 #endif 62 58 63 59 64 /* The message sent when emulating PING */ … … 108 113 { 109 114 int rc = RTErrConvertFromErrno(errno); 115 # if defined(RT_OS_DARWIN) || !defined(VBOX_RAWSOCK_DEBUG_HELPER) 110 116 LogRel(("NAT: ICMP/ping not available (could not open ICMP socket, error %Rrc)\n", rc)); 111 117 return 1; 118 # else 119 /* try to get it from privileged helper */ 120 LogRel(("NAT: ICMP/ping raw socket error %Rrc, asking helper...\n", rc)); 121 pData->icmp_socket.s = getrawsock(AF_INET); 122 if (pData->icmp_socket.s == -1) 123 { 124 LogRel(("NAT: ICMP/ping not available\n")); 125 return 1; 126 } 127 # endif /* !RT_OS_DARWIN && VBOX_RAWSOCK_DEBUG_HELPER */ 112 128 } 113 129 fd_nonblock(pData->icmp_socket.s);
Note:
See TracChangeset
for help on using the changeset viewer.