Lines Matching full:cp
647 const u_char *cp) in of13_port_print() argument
651 tok2str(ofpp_str, "%u", GET_BE_U_4(cp))); in of13_port_print()
652 cp += 4; in of13_port_print()
654 cp += 4; in of13_port_print()
656 ND_PRINT(", hw_addr %s", GET_ETHERADDR_STRING(cp)); in of13_port_print()
657 cp += MAC_ADDR_LEN; in of13_port_print()
659 cp += 2; in of13_port_print()
662 nd_printjnp(ndo, cp, OFP_MAX_PORT_NAME_LEN); in of13_port_print()
664 cp += OFP_MAX_PORT_NAME_LEN; in of13_port_print()
667 ND_TCHECK_LEN(cp, 32); in of13_port_print()
672 ND_PRINT("\n\t config 0x%08x", GET_BE_U_4(cp)); in of13_port_print()
673 of_bitmap_print(ndo, ofppc_bm, GET_BE_U_4(cp), OFPPC_U); in of13_port_print()
674 cp += 4; in of13_port_print()
676 ND_PRINT("\n\t state 0x%08x", GET_BE_U_4(cp)); in of13_port_print()
677 of_bitmap_print(ndo, ofpps_bm, GET_BE_U_4(cp), OFPPS_U); in of13_port_print()
678 cp += 4; in of13_port_print()
680 ND_PRINT("\n\t curr 0x%08x", GET_BE_U_4(cp)); in of13_port_print()
681 of_bitmap_print(ndo, ofppf_bm, GET_BE_U_4(cp), OFPPF_U); in of13_port_print()
682 cp += 4; in of13_port_print()
684 ND_PRINT("\n\t advertised 0x%08x", GET_BE_U_4(cp)); in of13_port_print()
685 of_bitmap_print(ndo, ofppf_bm, GET_BE_U_4(cp), OFPPF_U); in of13_port_print()
686 cp += 4; in of13_port_print()
688 ND_PRINT("\n\t supported 0x%08x", GET_BE_U_4(cp)); in of13_port_print()
689 of_bitmap_print(ndo, ofppf_bm, GET_BE_U_4(cp), OFPPF_U); in of13_port_print()
690 cp += 4; in of13_port_print()
692 ND_PRINT("\n\t peer 0x%08x", GET_BE_U_4(cp)); in of13_port_print()
693 of_bitmap_print(ndo, ofppf_bm, GET_BE_U_4(cp), OFPPF_U); in of13_port_print()
694 cp += 4; in of13_port_print()
696 ND_PRINT("\n\t curr_speed %ukbps", GET_BE_U_4(cp)); in of13_port_print()
697 cp += 4; in of13_port_print()
699 ND_PRINT("\n\t max_speed %ukbps", GET_BE_U_4(cp)); in of13_port_print()
705 const u_char *cp, u_int len _U_) in of13_features_reply_print() argument
708 ND_PRINT("\n\t dpid 0x%016" PRIx64, GET_BE_U_8(cp)); in of13_features_reply_print()
709 cp += 8; in of13_features_reply_print()
711 ND_PRINT(", n_buffers %u", GET_BE_U_4(cp)); in of13_features_reply_print()
712 cp += 4; in of13_features_reply_print()
714 ND_PRINT(", n_tables %u", GET_U_1(cp)); in of13_features_reply_print()
715 cp += 1; in of13_features_reply_print()
717 ND_PRINT(", auxiliary_id %u", GET_U_1(cp)); in of13_features_reply_print()
718 cp += 1; in of13_features_reply_print()
720 cp += 2; in of13_features_reply_print()
722 ND_PRINT("\n\t capabilities 0x%08x", GET_BE_U_4(cp)); in of13_features_reply_print()
723 of_bitmap_print(ndo, ofp_capabilities_bm, GET_BE_U_4(cp), OFPCAP_U); in of13_features_reply_print()
724 cp += 4; in of13_features_reply_print()
726 ND_TCHECK_4(cp); in of13_features_reply_print()
732 const u_char *cp, u_int len _U_) in of13_switch_config_msg_print() argument
736 tok2str(ofp_config_str, "invalid (0x%04x)", GET_BE_U_2(cp))); in of13_switch_config_msg_print()
737 cp += 2; in of13_switch_config_msg_print()
740 tok2str(ofpcml_str, "%u", GET_BE_U_2(cp))); in of13_switch_config_msg_print()
746 const u_char *cp, u_int len _U_) in of13_table_mod_print() argument
749 ND_PRINT("\n\t table_id %s", tok2str(ofptt_str, "%u", GET_U_1(cp))); in of13_table_mod_print()
750 cp += 1; in of13_table_mod_print()
752 cp += 3; in of13_table_mod_print()
754 ND_PRINT(", config 0x%08x", GET_BE_U_4(cp)); in of13_table_mod_print()
760 const u_char *cp, u_int len _U_) in of13_role_msg_print() argument
764 tok2str(ofpcr_str, "invalid (0x%08x)", GET_BE_U_4(cp))); in of13_role_msg_print()
765 cp += 4; in of13_role_msg_print()
767 cp += 4; in of13_role_msg_print()
769 ND_PRINT(", generation_id 0x%016" PRIx64, GET_BE_U_8(cp)); in of13_role_msg_print()
775 const u_char *cp, u_int len _U_) in of13_async_msg_print() argument
778 ND_PRINT("\n\t packet_in_mask[EM] 0x%08x", GET_BE_U_4(cp)); in of13_async_msg_print()
779 of_bitmap_print(ndo, async_ofpr_bm, GET_BE_U_4(cp), ASYNC_OFPR_U); in of13_async_msg_print()
780 cp += 4; in of13_async_msg_print()
782 ND_PRINT("\n\t packet_in_mask[S] 0x%08x", GET_BE_U_4(cp)); in of13_async_msg_print()
783 of_bitmap_print(ndo, async_ofpr_bm, GET_BE_U_4(cp), ASYNC_OFPR_U); in of13_async_msg_print()
784 cp += 4; in of13_async_msg_print()
786 ND_PRINT("\n\t port_status_mask[EM] 0x%08x", GET_BE_U_4(cp)); in of13_async_msg_print()
787 of_bitmap_print(ndo, async_ofppr_bm, GET_BE_U_4(cp), ASYNC_OFPPR_U); in of13_async_msg_print()
788 cp += 4; in of13_async_msg_print()
790 ND_PRINT("\n\t port_status_mask[S] 0x%08x", GET_BE_U_4(cp)); in of13_async_msg_print()
791 of_bitmap_print(ndo, async_ofppr_bm, GET_BE_U_4(cp), ASYNC_OFPPR_U); in of13_async_msg_print()
792 cp += 4; in of13_async_msg_print()
794 ND_PRINT("\n\t flow_removed_mask[EM] 0x%08x", GET_BE_U_4(cp)); in of13_async_msg_print()
795 of_bitmap_print(ndo, async_ofppr_bm, GET_BE_U_4(cp), ASYNC_OFPPR_U); in of13_async_msg_print()
796 cp += 4; in of13_async_msg_print()
798 ND_PRINT("\n\t flow_removed_mask[S] 0x%08x", GET_BE_U_4(cp)); in of13_async_msg_print()
799 of_bitmap_print(ndo, async_ofppr_bm, GET_BE_U_4(cp), ASYNC_OFPPR_U); in of13_async_msg_print()
805 const u_char *cp, u_int len _U_) in of13_port_mod_print() argument
808 ND_PRINT("\n\t port_no %s", tok2str(ofpp_str, "%u", GET_BE_U_4(cp))); in of13_port_mod_print()
809 cp += 4; in of13_port_mod_print()
811 cp += 4; in of13_port_mod_print()
813 ND_PRINT(", hw_addr %s", GET_ETHERADDR_STRING(cp)); in of13_port_mod_print()
814 cp += MAC_ADDR_LEN; in of13_port_mod_print()
816 cp += 2; in of13_port_mod_print()
818 ND_PRINT("\n\t config 0x%08x", GET_BE_U_4(cp)); in of13_port_mod_print()
819 of_bitmap_print(ndo, ofppc_bm, GET_BE_U_4(cp), OFPPC_U); in of13_port_mod_print()
820 cp += 4; in of13_port_mod_print()
822 ND_PRINT("\n\t mask 0x%08x", GET_BE_U_4(cp)); in of13_port_mod_print()
823 of_bitmap_print(ndo, ofppc_bm, GET_BE_U_4(cp), OFPPC_U); in of13_port_mod_print()
824 cp += 4; in of13_port_mod_print()
826 ND_PRINT("\n\t advertise 0x%08x", GET_BE_U_4(cp)); in of13_port_mod_print()
827 of_bitmap_print(ndo, ofppf_bm, GET_BE_U_4(cp), OFPPF_U); in of13_port_mod_print()
828 cp += 4; in of13_port_mod_print()
831 ND_TCHECK_4(cp); in of13_port_mod_print()
837 const u_char *cp, u_int len _U_) in of13_port_status_print() argument
841 tok2str(ofppr_str, "invalid (0x02x)", GET_U_1(cp))); in of13_port_status_print()
842 cp += 1; in of13_port_status_print()
844 cp += 7; in of13_port_status_print()
846 of13_port_print(ndo, cp); in of13_port_status_print()
852 const u_char *cp, u_int len) in of13_hello_elements_print() argument
860 type = GET_BE_U_2(cp); in of13_hello_elements_print()
865 bmlen = GET_BE_U_2(cp); in of13_hello_elements_print()
868 /* cp is OF_HELLO_ELEM_MINSIZE bytes in */ in of13_hello_elements_print()
881 uint32_t bitmap = GET_BE_U_4(cp); in of13_hello_elements_print()
887 ND_TCHECK_LEN(cp, bmlen - OF_HELLO_ELEM_MINSIZE); in of13_hello_elements_print()
891 ND_TCHECK_LEN(cp, bmlen - OF_HELLO_ELEM_MINSIZE); in of13_hello_elements_print()
899 ND_TCHECK_LEN(cp, len); in of13_hello_elements_print()
905 const u_char *cp, u_int len) in of13_experimenter_message_print() argument
910 experimenter = GET_BE_U_4(cp); in of13_experimenter_message_print()
915 ND_PRINT(", exp_type 0x%08x", GET_BE_U_4(cp)); in of13_experimenter_message_print()
918 of_data_print(ndo, cp, len); in of13_experimenter_message_print()
924 const u_char *cp, u_int len _U_) in of13_queue_get_config_request_print() argument
927 ND_PRINT("\n\t port %s", tok2str(ofpp_str, "%u", GET_BE_U_4(cp))); in of13_queue_get_config_request_print()
928 cp += 4; in of13_queue_get_config_request_print()
931 ND_TCHECK_4(cp); in of13_queue_get_config_request_print()
937 const u_char *cp, u_int len) in of13_error_print() argument
943 type = GET_BE_U_2(cp); in of13_error_print()
947 code = GET_BE_U_2(cp); in of13_error_print()
956 of_data_print(ndo, cp, len); in of13_error_print()