Lines Matching refs:class

111 	    "specifies the NCU class - valid values are \'phys\' and \'ip\'",
522 * Are ncu type and class compatible?
525 nwam_ncu_type_class_compatible(nwam_ncu_type_t type, nwam_ncu_class_t class)
529 switch (class) {
543 switch (class) {
552 return (class == 0);
558 * Convert the given type and class to a class flag
561 nwam_ncu_type_class_to_flag(nwam_ncu_type_t type, nwam_ncu_class_t class)
563 if (!nwam_ncu_type_class_compatible(type, class))
568 switch (class) {
591 switch (class) {
608 nwam_ncu_class_to_string(nwam_ncu_type_t type, nwam_ncu_class_t class,
615 return (dladm_class2str(class, buf));
617 s = ipadm_class2str(class);
964 * Non-physical links will have a 'class' property value. If a link
965 * does not have the the "class" property, then it must be a physical
966 * link, which has its class property stored in the global
1047 * The properties type, class, parent, enabled, ip{v4,v6}-default-route
1085 /* rename the "_class" property name to "class" */
1368 nwam_ncu_class_t class = DATALINK_CLASS_PHYS; /* default to physical */
1377 /* Ignore IP Tunnels links, check the "class" property in the nvlist */
1378 if (netcfg_nvl_get_one_uint64(objp, NWAM_NCU_PROP_CLASS, &class) == 0 &&
1379 class == DATALINK_CLASS_IPTUN)
1396 * and extract the class for filter matching
1406 nwam_ncu_type_class_to_flag(type, class);
1425 uint64_t type = NWAM_NCU_TYPE_INTERFACE, class, matchflags, walkfilter;
1478 (err = nwam_value_get_uint64(classval, &class)) != NWAM_SUCCESS) {
1485 nwam_ncu_type_class_to_flag(type, class);
1569 nwam_ncu_class_t class, uint64_t flags, nwam_ncu_handle_t *ncuhp)
1594 /* check if an advanced NCU class is being created */
1595 if (nwam_ncu_type_class_to_flag(type, class) &
1605 !nwam_ncu_type_class_compatible(type, class))
1625 /* The new NCU is initialized with the appropriate type and class */
1628 (err = nwam_value_create_uint64(class, &classval))
1648 if (type == NWAM_NCU_TYPE_INTERFACE && class == IPADMIF_CLASS_IP) {
1659 } else if (type == NWAM_NCU_TYPE_LINK && class == DATALINK_CLASS_PHYS) {
2488 /* Get the NCU class */
2494 uint64_t class;
2499 err = nwam_value_get_uint64(classval, &class);
2504 *classp = class;
2833 * type and class, belong there.
2840 uint64_t type, class;
2843 /* Get type/class from ncu */
2857 if (nwam_value_get_uint64(classval, &class) != NWAM_SUCCESS) {
2861 classflags = nwam_ncu_type_class_to_flag(type, (nwam_ncu_class_t)class);
2930 uint64_t class;
2932 if (nwam_value_get_uint64(value, &class) != NWAM_SUCCESS)
2935 if (nwam_ncu_type_class_compatible(NWAM_NCU_TYPE_LINK, class) ||
2936 nwam_ncu_type_class_compatible(NWAM_NCU_TYPE_INTERFACE, class))
3075 * Given the ncu type and ncu class, return the list of properties that needs
3080 nwam_ncu_get_default_proplist(nwam_ncu_type_t type, nwam_ncu_class_t class,
3084 uint64_t classflags = nwam_ncu_type_class_to_flag(type, class);
3138 nwam_ncu_class_t class;
3142 (err = nwam_ncu_get_ncu_class(ncuh, &class)) != NWAM_SUCCESS)
3145 classflags = nwam_ncu_type_class_to_flag(type, class);