Lines Matching defs:nd

293 add_desc_item(ea_object_t *o, net_desc_t *nd)
298 (void) strncpy(nd->net_desc_name, o->eo_item.ei_string,
302 (void) strncpy(nd->net_desc_devname,
308 nd->net_desc_protocol = o->eo_item.ei_uint8;
311 nd->net_desc_dsfield = o->eo_item.ei_uint8;
316 nd->net_desc_sport = o->eo_item.ei_uint16;
319 nd->net_desc_dport = o->eo_item.ei_uint16;
322 nd->net_desc_sap = o->eo_item.ei_uint16;
325 nd->net_desc_vlan_tpid = o->eo_item.ei_uint16;
328 nd->net_desc_vlan_tci = o->eo_item.ei_uint16;
331 nd->net_desc_priority = o->eo_item.ei_uint16;
344 &nd->net_desc_saddr);
347 &nd->net_desc_daddr);
353 nd->net_desc_bw_limit = o->eo_item.ei_uint64;
363 nd->net_desc_saddr = addr;
365 nd->net_desc_daddr = addr;
369 bcopy((uchar_t *)o->eo_item.ei_raw, nd->net_desc_ehost,
373 bcopy((uchar_t *)o->eo_item.ei_raw, nd->net_desc_edest,
384 add_desc_to_tbl(net_table_t *net_table, net_desc_t *nd)
396 ne->net_entry_desc = nd;
634 net_desc_t *nd;
638 nd = ne->net_entry_desc;
639 if (strcmp(name, nd->net_desc_name) == 0)
648 get_ndesc(net_table_t *net_table, net_desc_t *nd)
656 if (strcmp(nd1->net_desc_name, nd->net_desc_name) == 0 &&
657 strcmp(nd1->net_desc_devname, nd->net_desc_devname) == 0 &&
658 bcmp(nd1->net_desc_ehost, nd->net_desc_ehost,
660 bcmp(nd1->net_desc_edest, nd->net_desc_edest,
662 nd1->net_desc_vlan_tpid == nd->net_desc_vlan_tpid &&
663 nd1->net_desc_vlan_tci == nd->net_desc_vlan_tci &&
664 nd1->net_desc_sap == nd->net_desc_sap &&
665 nd1->net_desc_cpuid == nd->net_desc_cpuid &&
666 nd1->net_desc_priority == nd->net_desc_priority &&
667 nd1->net_desc_bw_limit == nd->net_desc_bw_limit &&
668 nd1->net_desc_sport == nd->net_desc_sport &&
669 nd1->net_desc_dport == nd->net_desc_dport &&
670 nd1->net_desc_protocol == nd->net_desc_protocol &&
671 nd1->net_desc_dsfield == nd->net_desc_dsfield &&
673 &nd->net_desc_saddr) &&
675 &nd->net_desc_daddr)) {
770 net_desc_t *nd;
775 if ((nd = calloc(1, sizeof (net_desc_t))) == NULL)
777 nd->net_desc_newrec = B_TRUE;
781 free(nd);
784 add_desc_item(&scratch, nd);
786 if ((dnd = get_ndesc(net_table, nd)) != NULL) {
788 free(nd);
791 if (add_desc_to_tbl(net_table, nd) != 0) {
792 free(nd);
1192 net_desc_t *nd;
1235 nd = ne->net_entry_desc;
1236 pe[count].net_pe_name = nd->net_desc_name;
1317 net_desc_t *nd;
1334 nd = ne->net_entry_desc;
1340 bcopy(&nd->net_desc_name, &usage.du_name,