• Home
  • Raw
  • Download

Lines Matching refs:ndo

720 of10_bitmap_print(netdissect_options *ndo,  in of10_bitmap_print()  argument
730 ND_PRINT((ndo, "%s%s", sep, t->s)); in of10_bitmap_print()
734 ND_PRINT((ndo, v & u ? ") (bogus)" : ")")); in of10_bitmap_print()
738 of10_data_print(netdissect_options *ndo, in of10_data_print() argument
744 ND_PRINT((ndo, "\n\t data (%u octets)", len)); in of10_data_print()
746 if (ndo->ndo_vflag >= 2) in of10_data_print()
747 hex_and_ascii_print(ndo, "\n\t ", cp, len); in of10_data_print()
751 ND_PRINT((ndo, "%s", tstr)); in of10_data_print()
756 of10_bsn_message_print(netdissect_options *ndo, in of10_bsn_message_print() argument
768 ND_PRINT((ndo, "\n\t subtype %s", tok2str(bsn_subtype_str, "unknown (0x%08x)", subtype))); in of10_bsn_message_print()
787 ND_PRINT((ndo, ", index %u", *cp)); in of10_bsn_message_print()
811 ND_PRINT((ndo, ", index %u", *cp)); in of10_bsn_message_print()
818 ND_PRINT((ndo, ", mask %s", ipaddr_string(ndo, cp))); in of10_bsn_message_print()
838 ND_PRINT((ndo, ", report_mirror_ports %s", tok2str(bsn_onoff_str, "bogus (%u)", *cp))); in of10_bsn_message_print()
875 ND_PRINT((ndo, ", vport_no %u", EXTRACT_32BITS(cp))); in of10_bsn_message_print()
895 ND_PRINT((ndo, ", service %u", EXTRACT_32BITS(cp))); in of10_bsn_message_print()
898 ND_PRINT((ndo, ", data '")); in of10_bsn_message_print()
899 if (fn_printn(ndo, cp, len - 8, ep)) { in of10_bsn_message_print()
900 ND_PRINT((ndo, "'")); in of10_bsn_message_print()
903 ND_PRINT((ndo, "'")); in of10_bsn_message_print()
919 ND_PRINT((ndo, ", data '")); in of10_bsn_message_print()
920 if (fn_printn(ndo, cp, len - 4, ep)) { in of10_bsn_message_print()
921 ND_PRINT((ndo, "'")); in of10_bsn_message_print()
924 ND_PRINT((ndo, "'")); in of10_bsn_message_print()
942 ND_PRINT((ndo, ", status 0x%08x", EXTRACT_32BITS(cp))); in of10_bsn_message_print()
952 ND_PRINT((ndo, "%s", cstr)); in of10_bsn_message_print()
956 ND_PRINT((ndo, "%s", tstr)); in of10_bsn_message_print()
961 of10_bsn_actions_print(netdissect_options *ndo, in of10_bsn_actions_print() argument
973 ND_PRINT((ndo, "\n\t subtype %s", tok2str(bsn_action_subtype_str, "unknown (0x%08x)", subtype))); in of10_bsn_actions_print()
994 ND_PRINT((ndo, ", dest_port %u", EXTRACT_32BITS(cp))); in of10_bsn_actions_print()
1002 ND_PRINT((ndo, ", vlan_tag none")); in of10_bsn_actions_print()
1005 ND_PRINT((ndo, ", vlan_tag 802.1Q (%s)", ieee8021q_tci_string(vlan_tag & 0xffff))); in of10_bsn_actions_print()
1008 ND_PRINT((ndo, ", vlan_tag unknown (0x%04x)", vlan_tag >> 16)); in of10_bsn_actions_print()
1012 ND_PRINT((ndo, ", copy_stage %s", tok2str(bsn_mirror_copy_stage_str, "unknown (%u)", *cp))); in of10_bsn_actions_print()
1026 ND_PRINT((ndo, "%s", cstr)); in of10_bsn_actions_print()
1030 ND_PRINT((ndo, "%s", tstr)); in of10_bsn_actions_print()
1035 of10_vendor_action_print(netdissect_options *ndo, in of10_vendor_action_print() argument
1047 ND_PRINT((ndo, ", vendor 0x%08x (%s)", vendor, of_vendor_name(vendor))); in of10_vendor_action_print()
1052 return decoder(ndo, cp, ep, len - 4); in of10_vendor_action_print()
1055 ND_PRINT((ndo, "%s", cstr)); in of10_vendor_action_print()
1059 ND_PRINT((ndo, "%s", tstr)); in of10_vendor_action_print()
1064 of10_vendor_message_print(netdissect_options *ndo, in of10_vendor_message_print() argument
1076 ND_PRINT((ndo, ", vendor 0x%08x (%s)", vendor, of_vendor_name(vendor))); in of10_vendor_message_print()
1081 return decoder(ndo, cp, ep, len - 4); in of10_vendor_message_print()
1084 ND_PRINT((ndo, "%s", cstr)); in of10_vendor_message_print()
1088 ND_PRINT((ndo, "%s", tstr)); in of10_vendor_message_print()
1094 of10_vendor_data_print(netdissect_options *ndo, in of10_vendor_data_print() argument
1105 ND_PRINT((ndo, ", vendor 0x%08x (%s)", vendor, of_vendor_name(vendor))); in of10_vendor_data_print()
1107 return of10_data_print(ndo, cp, ep, len - 4); in of10_vendor_data_print()
1110 ND_PRINT((ndo, "%s", cstr)); in of10_vendor_data_print()
1114 ND_PRINT((ndo, "%s", tstr)); in of10_vendor_data_print()
1119 of10_packet_data_print(netdissect_options *ndo, in of10_packet_data_print() argument
1125 ND_PRINT((ndo, "\n\t data (%u octets)", len)); in of10_packet_data_print()
1126 if (ndo->ndo_vflag < 3) in of10_packet_data_print()
1129 ndo->ndo_vflag -= 3; in of10_packet_data_print()
1130 ND_PRINT((ndo, ", frame decoding below\n")); in of10_packet_data_print()
1131 ether_print(ndo, cp, len, ndo->ndo_snapend - cp, NULL, NULL); in of10_packet_data_print()
1132 ndo->ndo_vflag += 3; in of10_packet_data_print()
1136 ND_PRINT((ndo, "%s", tstr)); in of10_packet_data_print()
1142 of10_phy_ports_print(netdissect_options *ndo, in of10_phy_ports_print() argument
1153 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_phy_ports_print()
1157 ND_PRINT((ndo, ", hw_addr %s", etheraddr_string(ndo, cp))); in of10_phy_ports_print()
1161 ND_PRINT((ndo, ", name '")); in of10_phy_ports_print()
1162 fn_print(ndo, cp, cp + OFP_MAX_PORT_NAME_LEN); in of10_phy_ports_print()
1163 ND_PRINT((ndo, "'")); in of10_phy_ports_print()
1166 if (ndo->ndo_vflag < 2) { in of10_phy_ports_print()
1173 ND_PRINT((ndo, "\n\t config 0x%08x", EXTRACT_32BITS(cp))); in of10_phy_ports_print()
1174 of10_bitmap_print(ndo, ofppc_bm, EXTRACT_32BITS(cp), OFPPC_U); in of10_phy_ports_print()
1178 ND_PRINT((ndo, "\n\t state 0x%08x", EXTRACT_32BITS(cp))); in of10_phy_ports_print()
1179 of10_bitmap_print(ndo, ofpps_bm, EXTRACT_32BITS(cp), OFPPS_U); in of10_phy_ports_print()
1183 ND_PRINT((ndo, "\n\t curr 0x%08x", EXTRACT_32BITS(cp))); in of10_phy_ports_print()
1184 of10_bitmap_print(ndo, ofppf_bm, EXTRACT_32BITS(cp), OFPPF_U); in of10_phy_ports_print()
1188 ND_PRINT((ndo, "\n\t advertised 0x%08x", EXTRACT_32BITS(cp))); in of10_phy_ports_print()
1189 of10_bitmap_print(ndo, ofppf_bm, EXTRACT_32BITS(cp), OFPPF_U); in of10_phy_ports_print()
1193 ND_PRINT((ndo, "\n\t supported 0x%08x", EXTRACT_32BITS(cp))); in of10_phy_ports_print()
1194 of10_bitmap_print(ndo, ofppf_bm, EXTRACT_32BITS(cp), OFPPF_U); in of10_phy_ports_print()
1198 ND_PRINT((ndo, "\n\t peer 0x%08x", EXTRACT_32BITS(cp))); in of10_phy_ports_print()
1199 of10_bitmap_print(ndo, ofppf_bm, EXTRACT_32BITS(cp), OFPPF_U); in of10_phy_ports_print()
1207 ND_PRINT((ndo, "%s", cstr)); in of10_phy_ports_print()
1211 ND_PRINT((ndo, "%s", tstr)); in of10_phy_ports_print()
1217 of10_queue_props_print(netdissect_options *ndo, in of10_queue_props_print() argument
1233 ND_PRINT((ndo, "\n\t property %s", tok2str(ofpqt_str, "invalid (0x%04x)", property))); in of10_queue_props_print()
1238 ND_PRINT((ndo, ", len %u", plen)); in of10_queue_props_print()
1256 ND_PRINT((ndo, " (bogus)")); in of10_queue_props_print()
1270 ND_PRINT((ndo, ", rate disabled")); in of10_queue_props_print()
1272 ND_PRINT((ndo, ", rate %u.%u%%", rate / 10, rate % 10)); in of10_queue_props_print()
1283 ND_PRINT((ndo, "%s", cstr)); in of10_queue_props_print()
1287 ND_PRINT((ndo, "%s", tstr)); in of10_queue_props_print()
1293 of10_queues_print(netdissect_options *ndo, in of10_queues_print() argument
1305 ND_PRINT((ndo, "\n\t queue_id %u", EXTRACT_32BITS(cp))); in of10_queues_print()
1311 ND_PRINT((ndo, ", len %u", desclen)); in of10_queues_print()
1318 if (ndo->ndo_vflag < 2) { in of10_queues_print()
1323 if (ep == (cp = of10_queue_props_print(ndo, cp, ep, desclen - OF_PACKET_QUEUE_LEN))) in of10_queues_print()
1331 ND_PRINT((ndo, "%s", cstr)); in of10_queues_print()
1335 ND_PRINT((ndo, "%s", tstr)); in of10_queues_print()
1341 of10_match_print(netdissect_options *ndo, in of10_match_print() argument
1354 ND_PRINT((ndo, "%swildcards 0x%08x (bogus)", pfx, wildcards)); in of10_match_print()
1359 ND_PRINT((ndo, "%smatch in_port %s", pfx, tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_match_print()
1364 ND_PRINT((ndo, "%smatch dl_src %s", pfx, etheraddr_string(ndo, cp))); in of10_match_print()
1369 ND_PRINT((ndo, "%smatch dl_dst %s", pfx, etheraddr_string(ndo, cp))); in of10_match_print()
1374 ND_PRINT((ndo, "%smatch dl_vlan %s", pfx, vlan_str(EXTRACT_16BITS(cp)))); in of10_match_print()
1379 ND_PRINT((ndo, "%smatch dl_vlan_pcp %s", pfx, pcp_str(*cp))); in of10_match_print()
1389 ND_PRINT((ndo, "%smatch dl_type 0x%04x", pfx, dl_type)); in of10_match_print()
1393 ND_PRINT((ndo, "%smatch nw_tos 0x%02x", pfx, *cp)); in of10_match_print()
1402 ND_PRINT((ndo, "%smatch %s %u", pfx, field_name, nw_proto)); in of10_match_print()
1411 ND_PRINT((ndo, "%smatch nw_src %s/%u", pfx, ipaddr_string(ndo, cp), 32 - nw_bits)); in of10_match_print()
1417 ND_PRINT((ndo, "%smatch nw_dst %s/%u", pfx, ipaddr_string(ndo, cp), 32 - nw_bits)); in of10_match_print()
1425 ND_PRINT((ndo, "%smatch %s %u", pfx, field_name, EXTRACT_16BITS(cp))); in of10_match_print()
1434 ND_PRINT((ndo, "%smatch %s %u", pfx, field_name, EXTRACT_16BITS(cp))); in of10_match_print()
1439 ND_PRINT((ndo, "%s", tstr)); in of10_match_print()
1445 of10_actions_print(netdissect_options *ndo, in of10_actions_print() argument
1462 ND_PRINT((ndo, "%saction type %s", pfx, tok2str(ofpat_str, "invalid (0x%04x)", type))); in of10_actions_print()
1467 ND_PRINT((ndo, ", len %u", alen)); in of10_actions_print()
1497 ND_PRINT((ndo, " (bogus)")); in of10_actions_print()
1512 ND_PRINT((ndo, ", port %s", tok2str(ofpp_str, "%u", output_port))); in of10_actions_print()
1516 ND_PRINT((ndo, ", max_len %u", EXTRACT_16BITS(cp))); in of10_actions_print()
1522 ND_PRINT((ndo, ", vlan_vid %s", vlan_str(EXTRACT_16BITS(cp)))); in of10_actions_print()
1531 ND_PRINT((ndo, ", vlan_pcp %s", pcp_str(*cp))); in of10_actions_print()
1541 ND_PRINT((ndo, ", dl_addr %s", etheraddr_string(ndo, cp))); in of10_actions_print()
1551 ND_PRINT((ndo, ", nw_addr %s", ipaddr_string(ndo, cp))); in of10_actions_print()
1557 ND_PRINT((ndo, ", nw_tos 0x%02x", *cp)); in of10_actions_print()
1567 ND_PRINT((ndo, ", tp_port %u", EXTRACT_16BITS(cp))); in of10_actions_print()
1576 ND_PRINT((ndo, ", port %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_actions_print()
1583 ND_PRINT((ndo, ", queue_id %s", tok2str(ofpq_str, "%u", EXTRACT_32BITS(cp)))); in of10_actions_print()
1587 if (ep == (cp = of10_vendor_action_print(ndo, cp, ep, alen - 4))) in of10_actions_print()
1602 ND_PRINT((ndo, "%s", cstr)); in of10_actions_print()
1606 ND_PRINT((ndo, "%s", tstr)); in of10_actions_print()
1612 of10_features_reply_print(netdissect_options *ndo, in of10_features_reply_print() argument
1617 ND_PRINT((ndo, "\n\t dpid 0x%016" PRIx64, EXTRACT_64BITS(cp))); in of10_features_reply_print()
1621 ND_PRINT((ndo, ", n_buffers %u", EXTRACT_32BITS(cp))); in of10_features_reply_print()
1625 ND_PRINT((ndo, ", n_tables %u", *cp)); in of10_features_reply_print()
1632 ND_PRINT((ndo, "\n\t capabilities 0x%08x", EXTRACT_32BITS(cp))); in of10_features_reply_print()
1633 of10_bitmap_print(ndo, ofp_capabilities_bm, EXTRACT_32BITS(cp), OFPCAP_U); in of10_features_reply_print()
1637 ND_PRINT((ndo, "\n\t actions 0x%08x", EXTRACT_32BITS(cp))); in of10_features_reply_print()
1638 of10_bitmap_print(ndo, ofpat_bm, EXTRACT_32BITS(cp), OFPAT_U); in of10_features_reply_print()
1641 return of10_phy_ports_print(ndo, cp, ep, len - OF_SWITCH_FEATURES_LEN); in of10_features_reply_print()
1644 ND_PRINT((ndo, "%s", tstr)); in of10_features_reply_print()
1650 of10_flow_mod_print(netdissect_options *ndo, in of10_flow_mod_print() argument
1656 if (ep == (cp = of10_match_print(ndo, "\n\t ", cp, ep))) in of10_flow_mod_print()
1660 ND_PRINT((ndo, "\n\t cookie 0x%016" PRIx64, EXTRACT_64BITS(cp))); in of10_flow_mod_print()
1665 ND_PRINT((ndo, ", command %s", tok2str(ofpfc_str, "invalid (0x%04x)", command))); in of10_flow_mod_print()
1670 ND_PRINT((ndo, ", idle_timeout %u", EXTRACT_16BITS(cp))); in of10_flow_mod_print()
1675 ND_PRINT((ndo, ", hard_timeout %u", EXTRACT_16BITS(cp))); in of10_flow_mod_print()
1680 ND_PRINT((ndo, ", priority %u", EXTRACT_16BITS(cp))); in of10_flow_mod_print()
1686 ND_PRINT((ndo, ", buffer_id %s", tok2str(bufferid_str, "0x%08x", EXTRACT_32BITS(cp)))); in of10_flow_mod_print()
1691 ND_PRINT((ndo, ", out_port %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_flow_mod_print()
1695 ND_PRINT((ndo, ", flags 0x%04x", EXTRACT_16BITS(cp))); in of10_flow_mod_print()
1696 of10_bitmap_print(ndo, ofpff_bm, EXTRACT_16BITS(cp), OFPFF_U); in of10_flow_mod_print()
1699 return of10_actions_print(ndo, "\n\t ", cp, ep, len - OF_FLOW_MOD_LEN); in of10_flow_mod_print()
1702 ND_PRINT((ndo, "%s", tstr)); in of10_flow_mod_print()
1708 of10_port_mod_print(netdissect_options *ndo, in of10_port_mod_print() argument
1713 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_port_mod_print()
1717 ND_PRINT((ndo, ", hw_addr %s", etheraddr_string(ndo, cp))); in of10_port_mod_print()
1721 ND_PRINT((ndo, "\n\t config 0x%08x", EXTRACT_32BITS(cp))); in of10_port_mod_print()
1722 of10_bitmap_print(ndo, ofppc_bm, EXTRACT_32BITS(cp), OFPPC_U); in of10_port_mod_print()
1726 ND_PRINT((ndo, "\n\t mask 0x%08x", EXTRACT_32BITS(cp))); in of10_port_mod_print()
1727 of10_bitmap_print(ndo, ofppc_bm, EXTRACT_32BITS(cp), OFPPC_U); in of10_port_mod_print()
1731 ND_PRINT((ndo, "\n\t advertise 0x%08x", EXTRACT_32BITS(cp))); in of10_port_mod_print()
1732 of10_bitmap_print(ndo, ofppf_bm, EXTRACT_32BITS(cp), OFPPF_U); in of10_port_mod_print()
1739 ND_PRINT((ndo, "%s", tstr)); in of10_port_mod_print()
1745 of10_stats_request_print(netdissect_options *ndo, in of10_stats_request_print() argument
1756 ND_PRINT((ndo, "\n\t type %s", tok2str(ofpst_str, "invalid (0x%04x)", type))); in of10_stats_request_print()
1759 ND_PRINT((ndo, ", flags 0x%04x", EXTRACT_16BITS(cp))); in of10_stats_request_print()
1761 ND_PRINT((ndo, " (bogus)")); in of10_stats_request_print()
1776 if (ep == (cp = of10_match_print(ndo, "\n\t ", cp, ep))) in of10_stats_request_print()
1780 ND_PRINT((ndo, "\n\t table_id %s", tok2str(tableid_str, "%u", *cp))); in of10_stats_request_print()
1787 ND_PRINT((ndo, ", out_port %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_stats_request_print()
1794 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_stats_request_print()
1804 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_stats_request_print()
1811 ND_PRINT((ndo, ", queue_id %s", tok2str(ofpq_str, "%u", EXTRACT_32BITS(cp)))); in of10_stats_request_print()
1814 return of10_vendor_data_print(ndo, cp, ep, len); in of10_stats_request_print()
1819 ND_PRINT((ndo, "%s", cstr)); in of10_stats_request_print()
1823 ND_PRINT((ndo, "%s", tstr)); in of10_stats_request_print()
1829 of10_desc_stats_reply_print(netdissect_options *ndo, in of10_desc_stats_reply_print() argument
1836 ND_PRINT((ndo, "\n\t mfr_desc '")); in of10_desc_stats_reply_print()
1837 fn_print(ndo, cp, cp + DESC_STR_LEN); in of10_desc_stats_reply_print()
1838 ND_PRINT((ndo, "'")); in of10_desc_stats_reply_print()
1842 ND_PRINT((ndo, "\n\t hw_desc '")); in of10_desc_stats_reply_print()
1843 fn_print(ndo, cp, cp + DESC_STR_LEN); in of10_desc_stats_reply_print()
1844 ND_PRINT((ndo, "'")); in of10_desc_stats_reply_print()
1848 ND_PRINT((ndo, "\n\t sw_desc '")); in of10_desc_stats_reply_print()
1849 fn_print(ndo, cp, cp + DESC_STR_LEN); in of10_desc_stats_reply_print()
1850 ND_PRINT((ndo, "'")); in of10_desc_stats_reply_print()
1854 ND_PRINT((ndo, "\n\t serial_num '")); in of10_desc_stats_reply_print()
1855 fn_print(ndo, cp, cp + SERIAL_NUM_LEN); in of10_desc_stats_reply_print()
1856 ND_PRINT((ndo, "'")); in of10_desc_stats_reply_print()
1860 ND_PRINT((ndo, "\n\t dp_desc '")); in of10_desc_stats_reply_print()
1861 fn_print(ndo, cp, cp + DESC_STR_LEN); in of10_desc_stats_reply_print()
1862 ND_PRINT((ndo, "'")); in of10_desc_stats_reply_print()
1866 ND_PRINT((ndo, "%s", cstr)); in of10_desc_stats_reply_print()
1870 ND_PRINT((ndo, "%s", tstr)); in of10_desc_stats_reply_print()
1876 of10_flow_stats_reply_print(netdissect_options *ndo, in of10_flow_stats_reply_print() argument
1889 ND_PRINT((ndo, "\n\t length %u", entry_len)); in of10_flow_stats_reply_print()
1895 ND_PRINT((ndo, ", table_id %s", tok2str(tableid_str, "%u", *cp))); in of10_flow_stats_reply_print()
1901 if (ep == (cp = of10_match_print(ndo, "\n\t ", cp, ep))) in of10_flow_stats_reply_print()
1905 ND_PRINT((ndo, "\n\t duration_sec %u", EXTRACT_32BITS(cp))); in of10_flow_stats_reply_print()
1909 ND_PRINT((ndo, ", duration_nsec %u", EXTRACT_32BITS(cp))); in of10_flow_stats_reply_print()
1913 ND_PRINT((ndo, ", priority %u", EXTRACT_16BITS(cp))); in of10_flow_stats_reply_print()
1917 ND_PRINT((ndo, ", idle_timeout %u", EXTRACT_16BITS(cp))); in of10_flow_stats_reply_print()
1921 ND_PRINT((ndo, ", hard_timeout %u", EXTRACT_16BITS(cp))); in of10_flow_stats_reply_print()
1928 ND_PRINT((ndo, ", cookie 0x%016" PRIx64, EXTRACT_64BITS(cp))); in of10_flow_stats_reply_print()
1932 ND_PRINT((ndo, ", packet_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_flow_stats_reply_print()
1936 ND_PRINT((ndo, ", byte_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_flow_stats_reply_print()
1939 if (ep == (cp = of10_actions_print(ndo, "\n\t ", cp, ep, entry_len - OF_FLOW_STATS_LEN))) in of10_flow_stats_reply_print()
1947 ND_PRINT((ndo, "%s", cstr)); in of10_flow_stats_reply_print()
1951 ND_PRINT((ndo, "%s", tstr)); in of10_flow_stats_reply_print()
1957 of10_aggregate_stats_reply_print(netdissect_options *ndo, in of10_aggregate_stats_reply_print() argument
1965 ND_PRINT((ndo, "\n\t packet_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_aggregate_stats_reply_print()
1969 ND_PRINT((ndo, ", byte_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_aggregate_stats_reply_print()
1973 ND_PRINT((ndo, ", flow_count %u", EXTRACT_32BITS(cp))); in of10_aggregate_stats_reply_print()
1980 ND_PRINT((ndo, "%s", cstr)); in of10_aggregate_stats_reply_print()
1984 ND_PRINT((ndo, "%s", tstr)); in of10_aggregate_stats_reply_print()
1990 of10_table_stats_reply_print(netdissect_options *ndo, in of10_table_stats_reply_print() argument
2001 ND_PRINT((ndo, "\n\t table_id %s", tok2str(tableid_str, "%u", *cp))); in of10_table_stats_reply_print()
2008 ND_PRINT((ndo, ", name '")); in of10_table_stats_reply_print()
2009 fn_print(ndo, cp, cp + OFP_MAX_TABLE_NAME_LEN); in of10_table_stats_reply_print()
2010 ND_PRINT((ndo, "'")); in of10_table_stats_reply_print()
2014 ND_PRINT((ndo, "\n\t wildcards 0x%08x", EXTRACT_32BITS(cp))); in of10_table_stats_reply_print()
2015 of10_bitmap_print(ndo, ofpfw_bm, EXTRACT_32BITS(cp), OFPFW_U); in of10_table_stats_reply_print()
2019 ND_PRINT((ndo, "\n\t max_entries %u", EXTRACT_32BITS(cp))); in of10_table_stats_reply_print()
2023 ND_PRINT((ndo, ", active_count %u", EXTRACT_32BITS(cp))); in of10_table_stats_reply_print()
2027 ND_PRINT((ndo, ", lookup_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_table_stats_reply_print()
2031 ND_PRINT((ndo, ", matched_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_table_stats_reply_print()
2039 ND_PRINT((ndo, "%s", cstr)); in of10_table_stats_reply_print()
2043 ND_PRINT((ndo, "%s", tstr)); in of10_table_stats_reply_print()
2049 of10_port_stats_reply_print(netdissect_options *ndo, in of10_port_stats_reply_print() argument
2060 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_port_stats_reply_print()
2062 if (ndo->ndo_vflag < 2) { in of10_port_stats_reply_print()
2072 ND_PRINT((ndo, ", rx_packets %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2076 ND_PRINT((ndo, ", tx_packets %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2080 ND_PRINT((ndo, ", rx_bytes %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2084 ND_PRINT((ndo, ", tx_bytes %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2088 ND_PRINT((ndo, ", rx_dropped %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2092 ND_PRINT((ndo, ", tx_dropped %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2096 ND_PRINT((ndo, ", rx_errors %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2100 ND_PRINT((ndo, ", tx_errors %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2104 ND_PRINT((ndo, ", rx_frame_err %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2108 ND_PRINT((ndo, ", rx_over_err %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2112 ND_PRINT((ndo, ", rx_crc_err %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2116 ND_PRINT((ndo, ", collisions %" PRIu64, EXTRACT_64BITS(cp))); in of10_port_stats_reply_print()
2124 ND_PRINT((ndo, "%s", cstr)); in of10_port_stats_reply_print()
2128 ND_PRINT((ndo, "%s", tstr)); in of10_port_stats_reply_print()
2134 of10_queue_stats_reply_print(netdissect_options *ndo, in of10_queue_stats_reply_print() argument
2145 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_queue_stats_reply_print()
2152 ND_PRINT((ndo, ", queue_id %u", EXTRACT_32BITS(cp))); in of10_queue_stats_reply_print()
2156 ND_PRINT((ndo, ", tx_bytes %" PRIu64, EXTRACT_64BITS(cp))); in of10_queue_stats_reply_print()
2160 ND_PRINT((ndo, ", tx_packets %" PRIu64, EXTRACT_64BITS(cp))); in of10_queue_stats_reply_print()
2164 ND_PRINT((ndo, ", tx_errors %" PRIu64, EXTRACT_64BITS(cp))); in of10_queue_stats_reply_print()
2172 ND_PRINT((ndo, "%s", cstr)); in of10_queue_stats_reply_print()
2176 ND_PRINT((ndo, "%s", tstr)); in of10_queue_stats_reply_print()
2182 of10_stats_reply_print(netdissect_options *ndo, in of10_stats_reply_print() argument
2191 ND_PRINT((ndo, "\n\t type %s", tok2str(ofpst_str, "invalid (0x%04x)", type))); in of10_stats_reply_print()
2195 ND_PRINT((ndo, ", flags 0x%04x", EXTRACT_16BITS(cp))); in of10_stats_reply_print()
2196 of10_bitmap_print(ndo, ofpsf_reply_bm, EXTRACT_16BITS(cp), OFPSF_REPLY_U); in of10_stats_reply_print()
2199 if (ndo->ndo_vflag > 0) { in of10_stats_reply_print()
2210 return decoder(ndo, cp, ep, len - OF_STATS_REPLY_LEN); in of10_stats_reply_print()
2216 ND_PRINT((ndo, "%s", tstr)); in of10_stats_reply_print()
2222 of10_packet_out_print(netdissect_options *ndo, in of10_packet_out_print() argument
2231 ND_PRINT((ndo, "\n\t buffer_id 0x%08x", EXTRACT_32BITS(cp))); in of10_packet_out_print()
2235 ND_PRINT((ndo, ", in_port %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_packet_out_print()
2244 if (ep == (cp = of10_actions_print(ndo, "\n\t ", cp, ep, actions_len))) in of10_packet_out_print()
2247 return of10_packet_data_print(ndo, cp, ep, len - OF_PACKET_OUT_LEN - actions_len); in of10_packet_out_print()
2250 ND_PRINT((ndo, "%s", cstr)); in of10_packet_out_print()
2254 ND_PRINT((ndo, "%s", tstr)); in of10_packet_out_print()
2260 of10_packet_in_print(netdissect_options *ndo, in of10_packet_in_print() argument
2265 ND_PRINT((ndo, "\n\t buffer_id %s", tok2str(bufferid_str, "0x%08x", EXTRACT_32BITS(cp)))); in of10_packet_in_print()
2269 ND_PRINT((ndo, ", total_len %u", EXTRACT_16BITS(cp))); in of10_packet_in_print()
2273 ND_PRINT((ndo, ", in_port %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_packet_in_print()
2277 ND_PRINT((ndo, ", reason %s", tok2str(ofpr_str, "invalid (0x%02x)", *cp))); in of10_packet_in_print()
2284 return of10_packet_data_print(ndo, cp, ep, len - (OF_PACKET_IN_LEN - 2)); in of10_packet_in_print()
2287 ND_PRINT((ndo, "%s", tstr)); in of10_packet_in_print()
2293 of10_flow_removed_print(netdissect_options *ndo, in of10_flow_removed_print() argument
2297 if (ep == (cp = of10_match_print(ndo, "\n\t ", cp, ep))) in of10_flow_removed_print()
2301 ND_PRINT((ndo, "\n\t cookie 0x%016" PRIx64, EXTRACT_64BITS(cp))); in of10_flow_removed_print()
2306 ND_PRINT((ndo, ", priority %u", EXTRACT_16BITS(cp))); in of10_flow_removed_print()
2310 ND_PRINT((ndo, ", reason %s", tok2str(ofprr_str, "unknown (0x%02x)", *cp))); in of10_flow_removed_print()
2317 ND_PRINT((ndo, ", duration_sec %u", EXTRACT_32BITS(cp))); in of10_flow_removed_print()
2321 ND_PRINT((ndo, ", duration_nsec %u", EXTRACT_32BITS(cp))); in of10_flow_removed_print()
2326 ND_PRINT((ndo, ", idle_timeout %u", EXTRACT_16BITS(cp))); in of10_flow_removed_print()
2333 ND_PRINT((ndo, ", packet_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_flow_removed_print()
2337 ND_PRINT((ndo, ", byte_count %" PRIu64, EXTRACT_64BITS(cp))); in of10_flow_removed_print()
2341 ND_PRINT((ndo, "%s", tstr)); in of10_flow_removed_print()
2347 of10_error_print(netdissect_options *ndo, in of10_error_print() argument
2357 ND_PRINT((ndo, "\n\t type %s", tok2str(ofpet_str, "invalid (0x%04x)", type))); in of10_error_print()
2368 ND_PRINT((ndo, ", code %s", tok2str(code_str, "invalid (0x%04x)", EXTRACT_16BITS(cp)))); in of10_error_print()
2371 return of10_data_print(ndo, cp, ep, len - OF_ERROR_MSG_LEN); in of10_error_print()
2374 ND_PRINT((ndo, "%s", tstr)); in of10_error_print()
2379 of10_header_body_print(netdissect_options *ndo, in of10_header_body_print() argument
2393 ND_PRINT((ndo, "\n\tversion 1.0, type %s, length %u, xid 0x%08x", in of10_header_body_print()
2410 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2414 ND_PRINT((ndo, "\n\t flags %s", tok2str(ofp_config_str, "invalid (0x%04x)", EXTRACT_16BITS(cp)))); in of10_header_body_print()
2418 ND_PRINT((ndo, ", miss_send_len %u", EXTRACT_16BITS(cp))); in of10_header_body_print()
2423 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2425 return of10_port_mod_print(ndo, cp, ep); in of10_header_body_print()
2429 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2433 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_header_body_print()
2441 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2443 return of10_flow_removed_print(ndo, cp, ep); in of10_header_body_print()
2447 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2451 ND_PRINT((ndo, "\n\t reason %s", tok2str(ofppr_str, "invalid (0x%02x)", *cp))); in of10_header_body_print()
2457 return of10_phy_ports_print(ndo, cp, ep, OF_PHY_PORT_LEN); in of10_header_body_print()
2463 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2465 return of10_features_reply_print(ndo, cp, ep, len); in of10_header_body_print()
2471 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2473 return of10_data_print(ndo, cp, ep, len - OF_HEADER_LEN); in of10_header_body_print()
2479 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2481 return of10_error_print(ndo, cp, ep, len); in of10_header_body_print()
2486 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2488 return of10_vendor_message_print(ndo, cp, ep, len - OF_HEADER_LEN); in of10_header_body_print()
2493 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2495 return of10_packet_in_print(ndo, cp, ep, len); in of10_header_body_print()
2503 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2505 return of10_stats_request_print(ndo, cp, ep, len); in of10_header_body_print()
2514 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2516 return of10_stats_reply_print(ndo, cp, ep, len); in of10_header_body_print()
2522 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2524 return of10_packet_out_print(ndo, cp, ep, len); in of10_header_body_print()
2530 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2532 return of10_flow_mod_print(ndo, cp, ep, len); in of10_header_body_print()
2538 if (ndo->ndo_vflag < 1) in of10_header_body_print()
2542 ND_PRINT((ndo, "\n\t port_no %s", tok2str(ofpp_str, "%u", EXTRACT_16BITS(cp)))); in of10_header_body_print()
2548 return of10_queues_print(ndo, cp, ep, len - OF_QUEUE_GET_CONFIG_REPLY_LEN); in of10_header_body_print()
2553 ND_PRINT((ndo, "%s", cstr)); in of10_header_body_print()
2558 ND_PRINT((ndo, "%s", tstr)); in of10_header_body_print()