Lines Matching refs:proto

297 i_ipadm_get_propdesc_table(uint_t proto)
299 switch (proto) {
318 i_ipadm_get_prop_desc(const char *pname, uint_t proto, int *errp)
324 if ((ipdtbl = i_ipadm_get_propdesc_table(proto)) == NULL) {
331 if (ipdp->ipd_proto == proto)
349 ipadm_proto2str(uint_t proto)
351 switch (proto) {
398 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
413 proto, MOD_PROP_DEFAULT);
428 s = (proto == MOD_PROTO_IPV6 ? iph->ih_sock6 : iph->ih_sock);
438 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
460 s = (proto == MOD_PROTO_IPV6 ? iph->ih_sock6 : iph->ih_sock);
471 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
493 s = (proto == MOD_PROTO_IPV6 ? iph->ih_sock6 : iph->ih_sock);
549 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
561 return (i_ipadm_set_prop(iph, NULL, pdp, pval, proto, flags));
567 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
584 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto,
607 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
632 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
712 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
718 sa_family_t af = (proto == MOD_PROTO_IPV6 ? AF_INET6 : AF_INET);
770 if (proto == MOD_PROTO_IP) {
785 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
793 return (i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags));
824 status = i_ipadm_set_prop(iph, arg, pdp, p, proto, flags);
836 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
850 status = i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags);
855 proto, MOD_PROP_DEFAULT) == IPADM_SUCCESS) {
856 ipadm_cong_smf_disable_nondef(defval, proto, flags);
892 status = ipadm_cong_smf_set_state(alg, proto, flags);
894 status = i_ipadm_set_prop(iph, arg, pdp, alg, proto,
897 (void) ipadm_cong_smf_set_state(alg, proto,
909 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
916 status = ipadm_cong_get_algs(buf, bufsize, proto, B_FALSE);
919 status = ipadm_cong_get_algs(buf, bufsize, proto, B_TRUE);
923 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto,
927 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto,
941 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
945 status = i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags);
951 ipadm_proto2str(proto), flags);
959 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
966 status = ipadm_cong_get_algs(buf, bufsize, proto, B_TRUE);
970 buf, bufsize, ipadm_proto2str(proto));
975 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto,
987 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
998 proto, flags);
1018 status = i_ipadm_set_prop(iph, ifname, pdp, pval, proto, flags);
1027 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
1044 return (i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags));
1050 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
1087 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto,
1119 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
1136 bufsize, proto, valtype);
1162 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
1173 proto, valtype));
1177 s = (proto == MOD_PROTO_IPV6 ? iph->ih_sock6 : iph->ih_sock);
1192 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
1207 s = (proto == MOD_PROTO_IPV6 ? iph->ih_sock6 : iph->ih_sock);
1222 ipadm_prop_desc_t *ipd, char *buf, uint_t *bufsize, uint_t proto,
1238 s = (proto == MOD_PROTO_IPV6 ? iph->ih_sock6 : iph->ih_sock);
1259 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
1283 if (proto == MOD_PROTO_IP) {
1289 af = (proto == MOD_PROTO_IPV6 ? AF_INET6 : AF_INET);
1333 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto,
1349 mip->mpr_proto = proto;
1390 uint_t proto = pdp->ipd_proto;
1421 (void) strlcpy(pargp->ia_module, ipadm_proto2str(proto),
1436 * for a given protocol `proto'. The property name is in `pname'.
1453 const char *pname, char *buf, uint_t *bufsize, uint_t proto,
1466 proto_str = ipadm_proto2str(proto);
1468 pdp = i_ipadm_get_prop_desc(pname, proto, &err);
1505 proto, MOD_PROP_PERM);
1513 status = pdp->ipd_get(iph, ifname, pdp, buf, &psize, proto,
1517 status = pdp->ipd_get(iph, ifname, pdp, buf, &psize, proto,
1523 &psize, proto, MOD_PROP_POSSIBLE);
1536 proto, MOD_PROP_PERSIST);
1574 uint_t *bufsize, uint_t proto, uint_t valtype)
1586 * Do we support this proto, if not return error.
1588 if (ipadm_proto2str(proto) == NULL)
1592 proto, valtype));
1600 char *buf, uint_t *bufsize, uint_t proto, uint_t valtype)
1612 /* Do we support this proto, if not return error. */
1613 if (ipadm_proto2str(proto) == NULL)
1624 proto, valtype));
1635 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
1667 mip->mpr_proto = proto;
1700 const char *pname, const char *buf, uint_t proto, uint_t pflags)
1717 proto_str = ipadm_proto2str(proto);
1719 pdp = i_ipadm_get_prop_desc(pname, proto, &err);
1775 status = pdp->ipd_set(iph, ifname, pdp, buf, proto, pflags);
1808 const char *buf, uint_t proto, uint_t pflags)
1828 if (ipadm_proto2str(proto) == NULL)
1835 status = i_ipadm_validate_if(iph, ifname, proto, pflags);
1839 return (i_ipadm_setprop_common(iph, ifname, pname, buf, proto, pflags));
1847 uint_t proto, uint_t pflags)
1864 * Do we support this proto, if not return error.
1866 if (ipadm_proto2str(proto) == NULL)
1869 return (i_ipadm_setprop_common(iph, NULL, pname, buf, proto,
1875 i_ipadm_walk_proptbl(ipadm_prop_desc_t *pdtbl, uint_t proto, uint_t class,
1884 if (proto != MOD_PROTO_NONE && !(pdp->ipd_proto & proto))
1900 * Further if proto == MOD_PROTO_NONE, then it walks through all the supported
1904 ipadm_walk_proptbl(uint_t proto, uint_t class, ipadm_prop_wfunc_t *func,
1921 pdtbl = i_ipadm_get_propdesc_table(proto);
1922 if (pdtbl == NULL && proto != MOD_PROTO_NONE)
1931 * proto will be MOD_PROTO_NONE in the case of
1934 i_ipadm_walk_proptbl(pdtbl, proto, class, func, arg);
1955 ipadm_walk_prop(const char *pname, uint_t proto, uint_t class,
1971 pdtbl = i_ipadm_get_propdesc_table(proto);
1983 if (!(pdp->ipd_proto & proto))
1998 char *buf, uint_t *bufsize, uint_t proto, uint_t valtype)
2074 uint_t proto, uint_t flags)
2084 if (proto != MOD_PROTO_IP)
2085 af = (proto == MOD_PROTO_IPV6 ? AF_INET6 : AF_INET);
2104 i_ipadm_reset_one_prop(void *arg, const char *pname, uint_t proto)
2108 (void) ipadm_set_prop(iph, pname, NULL, proto,
2265 uint_t *proto)
2271 if (i_ipadm_get_prop_desc(oname, *proto, NULL) != NULL)
2279 switch (*proto) {
2304 *proto = MOD_PROTO_IPV6;
2309 *proto = MOD_PROTO_IP;
2319 *proto = ionmp->iom_proto;
2335 uint_t nnamelen, uint_t proto)
2341 if (i_ipadm_get_prop_desc(oname, proto, NULL) != NULL)
2344 switch (proto) {
2363 ionmp->iom_proto == proto) {
2369 if (proto == MOD_PROTO_IPV6)