Lines Matching refs:etp
698 ether_parse_input(ktest_ctx_hdl_t *ctx, ether_test_params_t *etp) in ether_parse_input() argument
704 bzero(etp, sizeof (*etp)); in ether_parse_input()
712 etp->etp_mp = alloc_split_pkt(ctx, params, "pkt_bytes"); in ether_parse_input()
713 if (etp->etp_mp == NULL) { in ether_parse_input()
718 if (nvlist_lookup_uint32(params, "tci", &etp->etp_tci) != 0) { in ether_parse_input()
737 bcopy(dstaddr, &etp->etp_dstaddr, ETHERADDRL); in ether_parse_input()
739 etp->etp_is_err = nvlist_lookup_boolean(params, "is_err") == 0; in ether_parse_input()
748 ether_test_params_t etp = { 0 }; in mac_ether_l2_info_test() local
750 if (!ether_parse_input(ctx, &etp)) { in mac_ether_l2_info_test()
757 !mac_ether_l2_info(etp.etp_mp, dstaddr, &vlan_tci); in mac_ether_l2_info_test()
759 KT_ASSERTG(is_err == etp.etp_is_err, ctx, done); in mac_ether_l2_info_test()
760 KT_ASSERTG(bcmp(dstaddr, etp.etp_dstaddr, ETHERADDRL) == 0, ctx, in mac_ether_l2_info_test()
762 KT_ASSERT3UG(vlan_tci, ==, etp.etp_tci, ctx, done); in mac_ether_l2_info_test()
767 freemsg(etp.etp_mp); in mac_ether_l2_info_test()