Changeset 28371 in vbox
- Timestamp:
- Apr 15, 2010 3:02:36 PM (15 years ago)
- Location:
- trunk/src/VBox/NetworkServices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r26574 r28371 45 45 #include <VBox/intnetinline.h> 46 46 #include <VBox/vmm.h> 47 #include <VBox/version.h> 47 48 48 49 #include "../NetLib/VBoxNetLib.h" … … 820 821 case 'h': 821 822 RTPrintf("VBoxNetDHCP Version %s\n" 822 "(C) 2009 Sun Microsystems, Inc.\n"823 "All rights reserved \n"823 "(C) 2009-" VBOX_C_YEAR " " VBOX_VENDOR "\n" 824 "All rights reserved.\n" 824 825 "\n" 825 826 "Usage: VBoxNetDHCP <options>\n" -
trunk/src/VBox/NetworkServices/NAT/VBoxNetNAT.cpp
r28364 r28371 336 336 g_pNAT = new VBoxNetNAT(); 337 337 Log2(("NAT: parsing command line\n")); 338 g_pNAT->parseArgs(argc - 1, argv + 1); 339 Log2(("NAT: initialization\n")); 340 g_pNAT->init(); 341 Log2(("NAT: try go online\n")); 342 g_pNAT->tryGoOnline(); 343 Log2(("NAT: main loop\n")); 344 g_pNAT->run(); 338 int rc = g_pNAT->parseArgs(argc - 1, argv + 1); 339 if (!rc) 340 { 341 Log2(("NAT: initialization\n")); 342 g_pNAT->init(); 343 Log2(("NAT: try go online\n")); 344 g_pNAT->tryGoOnline(); 345 Log2(("NAT: main loop\n")); 346 g_pNAT->run(); 347 } 345 348 delete g_pNAT; 346 349 return 0; -
trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.cpp
r27901 r28371 47 47 #include <VBox/intnet.h> 48 48 #include <VBox/vmm.h> 49 #include <VBox/version.h> 49 50 50 51 #include <vector> … … 175 176 case 'V': 176 177 RTPrintf("%sr%u\n", RTBldCfgVersion(), RTBldCfgRevision()); 177 return 0;178 return 1; 178 179 179 180 case 'h': 180 181 RTPrintf("VBoxNetDHCP Version %s\n" 181 "(C) 2009 Sun Microsystems, Inc.\n"182 "All rights reserved \n"182 "(C) 2009-" VBOX_C_YEAR " " VBOX_VENDOR "\n" 183 "All rights reserved.\n" 183 184 "\n" 184 185 "Usage: VBoxNetDHCP <options>\n" … … 191 192 return 1; 192 193 193 case VERR_GETOPT_UNKNOWN_OPTION:194 case VINF_GETOPT_NOT_OPTION:195 RTPrintf("Unknown option '%s'. Use --help for more information.\n", Val.psz);196 return 1;197 198 194 default: 199 break; 195 rc = RTGetOptPrintError(rc, &Val); 196 RTPrintf("Use --help for more information.\n"); 197 return rc; 200 198 } 201 199 }
Note:
See TracChangeset
for help on using the changeset viewer.