}
print_wild(&f, "nw_tos=", w & OFPFW_NW_TOS, verbosity,
"%u", om->nw_tos);
}
print_wild(&f, "nw_tos=", w & OFPFW_NW_TOS, verbosity,
"%u", om->nw_tos);
print_wild(&f, "icmp_type=", w & OFPFW_ICMP_TYPE, verbosity,
"%d", ntohs(om->icmp_type));
print_wild(&f, "icmp_code=", w & OFPFW_ICMP_CODE, verbosity,
print_wild(&f, "icmp_type=", w & OFPFW_ICMP_TYPE, verbosity,
"%d", ntohs(om->icmp_type));
print_wild(&f, "icmp_code=", w & OFPFW_ICMP_CODE, verbosity,
cls_rule_format(&fr.rule, string);
ds_put_cstr(string, " reason=");
cls_rule_format(&fr.rule, string);
ds_put_cstr(string, " reason=");
ds_put_format(string, "Manufacturer: %.*s\n",
(int) sizeof ods->mfr_desc, ods->mfr_desc);
ds_put_format(string, "Hardware: %.*s\n",
ds_put_format(string, "Manufacturer: %.*s\n",
(int) sizeof ods->mfr_desc, ods->mfr_desc);
ds_put_format(string, "Hardware: %.*s\n",
ofp_print_ofpst_port_request(struct ds *string, const struct ofp_header *oh)
{
const struct ofp_port_stats_request *psr = ofputil_stats_body(oh);
ofp_print_ofpst_port_request(struct ds *string, const struct ofp_header *oh)
{
const struct ofp_port_stats_request *psr = ofputil_stats_body(oh);
- ofpbuf_pull(&b, sizeof *oh);
- ds_put_char(string, '"');
+ ofpbuf_pull(&b, sizeof(struct nicira_header));
+ ds_put_cstr(string, " \"");
ds_put_printable(string, b.data, b.size);
ds_put_char(string, '"');
}
ds_put_printable(string, b.data, b.size);
ds_put_char(string, '"');
}