VirtualBox

Ignore:
Timestamp:
Dec 12, 2018 4:58:55 PM (6 years ago)
Author:
vboxsync
Message:

Main/DHCPServer: (bugref:9288) Added --comment command line option to simplify identification of VBoxNetDHCP instanced in the process list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp

    r76007 r76190  
    454454
    455455
     456#define DHCPD_GETOPT_COMMENT 256 /* No short option for --comment */
    456457static const RTGETOPTDEF g_aOptions[] =
    457458{
    458     { "--config",       'c',    RTGETOPT_REQ_STRING },
     459    { "--config",       'c',                  RTGETOPT_REQ_STRING },
     460    { "--comment",      DHCPD_GETOPT_COMMENT, RTGETOPT_REQ_STRING }
    459461};
    460462
     
    494496
    495497                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;
    496505
    497506            case VINF_GETOPT_NOT_OPTION:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette