tok2str
extern const char *tok2str(const struct tok *, const char *, int);
printf(" at-%s %d", tok2str(type2str, NULL, t), length);
return (tok2str(skt2str, "%d", skt));
tok2str(bgp_as_path_segment_open_values,
tok2str(bgp_as_path_segment_close_values,
cp = tok2str(tag2str, "?T%d", tag);
cp = tok2str(tag2str, "?%d", c);
printf("%s ", tok2str(reason2str, "reason-%d", reason));
printf(" %s", tok2str(ns_type2str, "Type%d", i));
printf(" %s", tok2str(ns_class2str, "(Class %d)", class));
printf(" %s", tok2str(ns_class2str, "(Class %d)", class));
printf(" %s", tok2str(ns_type2str, "Type%d", typ));
printf(" %s", tok2str(gtp_v1_msgtype, "Message Type %u", gh->msgtype));
printf(" [|%s]", tok2str(gtp_type, "GTP", gtp_proto));
printf("%s", tok2str(gtp_v1_msgtype, "Message Type %u", gph->msgtype));
printf(" [|%s]", tok2str(gtp_type, "GTP", gtp_proto));
printf("Cause: %s", tok2str(gtp_v1_cause, "#%u", data));
printf(" [|%s]", tok2str(gtp_type, "GTP", gtp_proto));
printf("%s", tok2str(gtp_v0_msgtype, "Message Type %u", gh->msgtype));
printf(" [|%s]", tok2str(gtp_type, "GTP", gtp_proto));
printf("%s", tok2str(gtp_v0_msgtype, "Message Type %u", gph->msgtype));
printf(" [|%s]", tok2str(gtp_type, "GTP", gtp_proto));
printf("Cause: %s", tok2str(gtp_v0_cause, "#%u", data));
printf(" [|%s]", tok2str(gtp_type, "GTP", gtp_proto));
printf(" %s", tok2str(gtp_v1_msgtype, "Message Type %u", gh->msgtype));
printf("state=%s ", tok2str(states, "Unknown (%d)", hp->hsrp_state));
str = tok2str(icmp2str, "type-#%u", dp->icmp_type);
fmt = tok2str(unreach2str, "#%u %%s unreachable",
fmt = tok2str(type2str, "redirect-#%u %%s to net %%s",
str = tok2str(icmp2str, "type-#%u", dp->icmp_type);
printf(" %s", tok2str(mldv2report2str,
tok2str(op2str, "op-#%d", hdr->ig_op),
printf("%s", tok2str(ipsec_attr_encap,
IS_LENDIAN(kp) ? "le" : "be", tok2str(type2str, NULL, type));
printf(" %s ", tok2str(kerr2str, NULL, KTOHSP(kp, cp)));
m = tok2str(cmd2str, "%02x", LLC_U_CMD(llc.llcu));
s = tok2str(opcode, "#0x%x", v);
printf(" %s", tok2str(ns_type2str, "Type%d",
printf(" %s", tok2str(ns_class2str, "Class%d",
tok2str(nfsv3_writemodes,
tok2str(nfsvers2str, "Unk %i", vers), length);
tok2str(nfsv3_writemodes,
printf(" %s", tok2str(type2str, "unk-ft %d", type));
tok2str(status2str, "unk %d", errnum));
tok2str(type2str, "unk-ft %d ",
cp = tok2str(type2str, "type%d", op->ospf_type);
cp = tok2str(type2str, "type%d", op->ospf6_type);
tok2str(slow_proto_values, "unknown (%u)",
tok2str(slow_tlv_values, "Unknown",
printf(" %s", tok2str(proc2str, " proc #%u",
printf(" %s ", tok2str(err2str, "tftp-err-#%d \"",
cp = tok2str(op2str, "tftp-#%d", opcode);