option names, so that the "-v" display, which prints options separated
by spaces, isn't ambiguous. (The BOOTP dissector has hyphens in the
BOOTP/DHCP option names.)
static char genstr[sizeof("opt_65535") + 1]; /* XXX thread unsafe */
if (type > 65535)
static char genstr[sizeof("opt_65535") + 1]; /* XXX thread unsafe */
if (type > 65535)
- return "INVALID option";
+ return "INVALID-option";
switch(type) {
case DH6OPT_CLIENTID:
switch(type) {
case DH6OPT_CLIENTID:
case DH6OPT_IA_NA:
return "IA_NA";
case DH6OPT_IA_TA:
case DH6OPT_IA_NA:
return "IA_NA";
case DH6OPT_IA_TA:
case DH6OPT_IA_ADDR:
return "IA_ADDR";
case DH6OPT_ORO:
case DH6OPT_IA_ADDR:
return "IA_ADDR";
case DH6OPT_ORO:
- return "option request";
+ return "option-request";
case DH6OPT_PREFERENCE:
return "preference";
case DH6OPT_ELAPSED_TIME:
case DH6OPT_PREFERENCE:
return "preference";
case DH6OPT_ELAPSED_TIME:
- return "relay message";
+ return "relay-message";
case DH6OPT_AUTH:
return "authentication";
case DH6OPT_UNICAST:
case DH6OPT_AUTH:
return "authentication";
case DH6OPT_UNICAST:
- return "server unicast";
+ return "server-unicast";
case DH6OPT_RAPID_COMMIT:
case DH6OPT_RAPID_COMMIT:
case DH6OPT_VENDOR_CLASS:
case DH6OPT_VENDOR_CLASS:
- return "vendor-specific info";
+ return "vendor-specific-info";
case DH6OPT_INTERFACE_ID:
case DH6OPT_INTERFACE_ID:
- return "reconfigure message";
+ return "reconfigure-message";
case DH6OPT_RECONF_ACCEPT:
case DH6OPT_RECONF_ACCEPT:
- return "reconfigure accept";
+ return "reconfigure-accept";
case DH6OPT_SIP_SERVER_D:
case DH6OPT_SIP_SERVER_D:
- return "SIP servers domain";
+ return "SIP-servers-domain";
case DH6OPT_SIP_SERVER_A:
case DH6OPT_SIP_SERVER_A:
- return "SIP servers address";
+ return "SIP-servers-address";
case DH6OPT_DNS:
return "DNS";
case DH6OPT_DNSNAME:
case DH6OPT_DNS:
return "DNS";
case DH6OPT_DNSNAME:
case DH6OPT_IA_PD:
return "IA_PD";
case DH6OPT_IA_PD_PREFIX:
case DH6OPT_IA_PD:
return "IA_PD";
case DH6OPT_IA_PD_PREFIX:
case DH6OPT_LIFETIME:
return "lifetime";
case DH6OPT_NIS_SERVERS:
case DH6OPT_LIFETIME:
return "lifetime";
case DH6OPT_NIS_SERVERS:
case DH6OPT_NISP_SERVERS:
case DH6OPT_NISP_SERVERS:
- return "NIS domain name";
+ return "NIS-domain-name";
- return "NIS+ domain name";
+ return "NIS+-domain-name";
case DH6OPT_BCMCS_SERVER_D:
case DH6OPT_BCMCS_SERVER_D:
- return "BCMCS domain name";
+ return "BCMCS-domain-name";
case DH6OPT_BCMCS_SERVER_A:
case DH6OPT_BCMCS_SERVER_A:
case DH6OPT_GEOCONF_CIVIC:
case DH6OPT_GEOCONF_CIVIC:
- return "Geoconf Civic";
+ return "Geoconf-Civic";
case DH6OPT_SUBSCRIBER_ID:
case DH6OPT_SUBSCRIBER_ID:
- return "Subscriber ID";
+ return "Subscriber-ID";
case DH6OPT_NEW_POSIX_TIMEZONE:
case DH6OPT_NEW_POSIX_TIMEZONE:
- return "POSIX timezone";
+ return "POSIX-timezone";
case DH6OPT_NEW_TZDB_TIMEZONE:
case DH6OPT_NEW_TZDB_TIMEZONE:
- return "POSIX tz database";
+ return "POSIX-tz-database";
- return "Echo request option";
+ return "Echo-request-option";
- return "LQ client data";
+ return "LQ-client-data";
case DH6OPT_LQ_RELAY_DATA:
case DH6OPT_LQ_RELAY_DATA:
- return "LQ relay data";
+ return "LQ-relay-data";
case DH6OPT_LQ_CLIENT_LINK:
case DH6OPT_LQ_CLIENT_LINK:
- return "LQ client link";
+ return "LQ-client-link";
default:
snprintf(genstr, sizeof(genstr), "opt_%d", type);
return(genstr);
default:
snprintf(genstr, sizeof(genstr), "opt_%d", type);
return(genstr);