Changeset 103112 in vbox for trunk/src/VBox/NetworkServices/NAT
- Timestamp:
- Jan 30, 2024 8:30:01 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/rtmon_bsd.c
r98103 r103112 111 111 #endif 112 112 113 int rc = 1; 113 114 nsent = write(rtsock, &req, req.rtm.rtm_msglen); 114 115 if (nsent < 0) { 115 116 if (errno == ESRCH) { 116 117 /* there's no default route */ 117 r eturn0;118 rc = 0; 118 119 } 119 120 else { 120 121 DPRINTF0(("rtmon: failed to send RTM_GET\n")); 121 r eturn-1;122 rc = -1; 122 123 } 123 124 } 124 125 125 return 1; 126 close(rtsock); 127 return rc; 126 128 }
Note:
See TracChangeset
for help on using the changeset viewer.