Changeset 76190 in vbox
- Timestamp:
- Dec 12, 2018 4:58:55 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
-
Main/include/DHCPServerImpl.h (modified) (1 diff)
-
Main/src-server/DHCPServerImpl.cpp (modified) (2 diffs)
-
NetworkServices/Dhcpd/Config.cpp (modified) (2 diffs)
-
NetworkServices/Dhcpd/VBoxNetDhcpd.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DHCPServerImpl.h
r75819 r76190 51 51 static const std::string kDsrKeyUpperIp; 52 52 static const std::string kDsrKeyConfig; 53 static const std::string kDsrKeyComment; 53 54 }; 54 55 -
trunk/src/VBox/Main/src-server/DHCPServerImpl.cpp
r76132 r76190 42 42 const std::string DHCPServerRunner::kDsrKeyUpperIp = "--upper-ip"; 43 43 const std::string DHCPServerRunner::kDsrKeyConfig = "--config"; 44 const std::string DHCPServerRunner::kDsrKeyComment = "--comment"; 44 45 45 46 … … 786 787 787 788 m->dhcp.setOption(DHCPServerRunner::kDsrKeyConfig, m->tempConfigFileName); 789 m->dhcp.setOption(DHCPServerRunner::kDsrKeyComment, m->networkName.c_str()); 788 790 #else /* !VBOX_WITH_DHCPD */ 789 791 /* Main is needed for NATNetwork */ -
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r76007 r76190 454 454 455 455 456 #define DHCPD_GETOPT_COMMENT 256 /* No short option for --comment */ 456 457 static const RTGETOPTDEF g_aOptions[] = 457 458 { 458 { "--config", 'c', RTGETOPT_REQ_STRING }, 459 { "--config", 'c', RTGETOPT_REQ_STRING }, 460 { "--comment", DHCPD_GETOPT_COMMENT, RTGETOPT_REQ_STRING } 459 461 }; 460 462 … … 494 496 495 497 break; 498 499 case DHCPD_GETOPT_COMMENT: /* --comment */ 500 /* The sole purpose of this option is to allow identification of DHCP 501 * server instances in the process list. We ignore the required string 502 * argument of this option. 503 */ 504 continue; 496 505 497 506 case VINF_GETOPT_NOT_OPTION: -
trunk/src/VBox/NetworkServices/Dhcpd/VBoxNetDhcpd.cpp
r75648 r76190 631 631 ClientId::registerFormat(); 632 632 633 /* XXX: We no longer need hardcoded and compat methods. We should remove them soon. */ 633 634 if (argc < 2) 634 635 m_Config = Config::hardcoded(); 635 else if (strcmp(argv[1], "--config") == 0) 636 else if ( strcmp(argv[1], "--config") == 0 637 || strcmp(argv[1], "--comment") == 0) 636 638 m_Config = Config::create(argc, argv); 637 639 else
Note:
See TracChangeset
for help on using the changeset viewer.

