VirtualBox

Ignore:
Timestamp:
Mar 26, 2009 3:29:16 PM (16 years ago)
Author:
vboxsync
Message:

DHCP server/win: make it work again; NetFlt,Adp/win: IDC init polling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp

    r18108 r18323  
    6161static const RTGETOPTDEF g_aDHCPIPOptions[]
    6262    = {
    63         { "--netname",          'n', RTGETOPT_REQ_STRING },
    64         { "-netname",           'n', RTGETOPT_REQ_STRING },     // deprecated (if removed check below)
    65         { "--ifname",           'i', RTGETOPT_REQ_STRING },
    66         { "-ifname",            'i', RTGETOPT_REQ_STRING },     // deprecated
     63        { "--netname",          't', RTGETOPT_REQ_STRING },  /* we use 't' instead of 'n' to avoid
     64                                                              * 1. the misspelled "-enable" long option to be treated as 'e' (for -enable) + 'n' (for -netname) + "<the_rest_opt>" (for net name)
     65                                                              * 2. the misspelled "-netmask" to be treated as 'n' (for -netname) + "<the_rest_opt>" (for net name)
     66                                                              */
     67        { "-netname",           't', RTGETOPT_REQ_STRING },     // deprecated (if removed check below)
     68        { "--ifname",           'f', RTGETOPT_REQ_STRING },  /* we use 'f' instead of 'i' to avoid
     69                                                              * 1. the misspelled "-disable" long option to be treated as 'd' (for -disable) + 'i' (for -ifname) + "<the_rest_opt>" (for if name)
     70                                                              */
     71        { "-ifname",            'f', RTGETOPT_REQ_STRING },     // deprecated
    6772        { "--ip",               'a', RTGETOPT_REQ_STRING },
    6873        { "-ip",                'a', RTGETOPT_REQ_STRING },     // deprecated
     
    109114        switch (c)
    110115        {
    111             case 'n':   // --netname
     116            case 't':   // --netname
    112117                if(pNetName)
    113118                    return errorSyntax(USAGE_DHCPSERVER, "You can only specify --netname once.");
     
    119124                }
    120125            break;
    121             case 'i':   // --ifname
     126            case 'f':   // --ifname
    122127                if(pIfName)
    123128                    return errorSyntax(USAGE_DHCPSERVER, "You can only specify --ifname once.");
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