Lines Matching refs:err

332 	int err;
348 err = errno;
350 return (err);
1178 int err = 0;
1188 err = -1;
1190 err = derrp->dde_err;
1191 dpif_log(err,
1199 return (err);
1258 int len, err = 0;
1264 err = EINVAL;
1271 return (err);
1305 int err = 0;
1317 err = EINVAL;
1324 return (err);
1429 int i, err, range_cnt;
1440 err = ofport_list2range(ofports, nofports, &ofports_range, &range_cnt);
1441 if (err != 0) {
1443 return (err);
1592 int err = 0;
1597 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp, "sap",
1599 if (err != 0)
1605 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp, "arp-op",
1607 if (err != 0)
1614 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1616 if (err != 0)
1623 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1625 if (err != 0)
1632 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp, "arp-sip",
1634 if (err != 0)
1641 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp, "arp-tip",
1643 if (err != 0)
1648 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp, "transport",
1650 if (err != 0)
1657 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp, "local-ip",
1659 if (err != 0)
1666 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1668 if (err != 0)
1673 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1677 if (err != 0)
1684 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1687 if (err != 0)
1692 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1695 if (err != 0)
1700 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1703 if (err != 0)
1707 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1710 if (err != 0)
1717 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1720 if (err != 0)
1727 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1730 if (err != 0)
1737 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1740 if (err != 0)
1750 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp, "src-mac", buf,
1752 if (err != 0)
1759 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp, "dst-mac", buf,
1761 if (err != 0)
1766 err = dlmgr_DLValue_putulong(ddvp, "srcport",
1768 if (err != 0)
1779 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1782 if (err != 0)
1787 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1789 if (err != 0)
1794 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1796 if (err != 0)
1801 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp,
1804 if (err != 0)
1810 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1812 if (err != 0)
1819 err = dlmgr_DLValue_fm_putstring(ddvp, ddmp,
1821 if (err != 0)
1825 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp, "tun-dsfield",
1827 if (err != 0)
1830 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp, "tun-ttl",
1832 if (err != 0)
1835 err = dlmgr_DLValue_fm_putulong(ddvp, ddmp, "tun-flags",
1837 if (err != 0)
1842 dpif_log(err, "solaris_flow_to_DLVal FLOWATTR: %s", dstr);
1843 return (err);
1855 int err = EINVAL;
1861 if ((err = dpif_solaris_get_priority_details(cookie, ofports[0],
1875 err = dlmgr_DLValue_putulong(prop, "max-bw", maxbw, dstr, dstrlen);
1879 return (err);
1888 int err = ENOBUFS;
1900 err = 0;
1905 err = ENOMEM;
1906 return (err);
2037 int err = 0, nofports = 0;
2044 err = dlmgr_DLValue_putboolean(prop, "temporary", B_TRUE, dstr,
2046 if (err != 0)
2059 err = flow_ofports2propstr(str, sizeof (str),
2061 if (err != 0)
2074 err = ENOBUFS;
2090 err = EINVAL;
2091 dpif_log(err,
2098 err = EOPNOTSUPP;
2099 dpif_log(err,
2112 err = ENOBUFS;
2117 err = ENOBUFS;
2135 err = solaris_setether_action_to_str(str,
2144 err = solaris_setipv4_action_to_str(str,
2153 err = solaris_setipv6_action_to_str(str,
2161 err = solaris_settransport_action_to_str(
2170 err = solaris_settransport_action_to_str(
2179 err = solaris_settransport_action_to_str(str,
2191 err = solaris_settnl_action_to_str(
2196 err = EOPNOTSUPP;
2197 dpif_log(err, "solaris_nlattr_to_DLVal set "
2213 err = ENOBUFS;
2218 err = ENOBUFS;
2227 err = ENOBUFS;
2232 err = ENOBUFS;
2242 err = EOPNOTSUPP;
2243 dpif_log(err, "solaris_nlattr_to_DLVal type %d "
2249 if (err != 0)
2255 err = flow_ofports2propstr(str, sizeof (str),
2257 if (err != 0)
2263 err = dlmgr_DLValue_putstring(prop, "ofaction", str, dstr,
2267 dpif_log(err, "solaris_nlattr_to_DLVal %s %d", dstr, err);
2269 return (err);
2281 int err = 0;
2291 err = ENODEV;
2297 err = ENOMEM;
2303 err = ENOMEM;
2309 err = ENOMEM;
2313 err = solaris_flow_to_DLVal(f, m, dff.ddld_map, dfm.ddld_map);
2314 if (err != 0)
2317 err = solaris_nlattr_to_DLVal(cookie, actions_nlattr,
2319 if (err != 0)
2325 err = -1;
2327 err = derrp->dde_err;
2328 dpif_log(err,
2341 return (err);
2352 int err;
2358 err = ENODEV;
2364 err = ENOMEM;
2368 err = solaris_nlattr_to_DLVal(cookie, actions_nlattr,
2370 if (err != 0)
2375 err = -1;
2377 err = derrp->dde_err;
2378 dpif_log(err,
2389 return (err);
2449 int af, err = 0;
2452 err = flow_str2mac(val->ddlv_sval, f->dl_dst, 6);
2454 err = flow_str2mac(val->ddlv_sval, f->dl_src, 6);
2458 err = flow_str2addr(val->ddlv_sval, &fa, &af);
2459 if (err != 0)
2475 err = EINVAL;
2490 err = flow_str2mac(val->ddlv_sval, f->arp_tha, 6);
2493 err = flow_str2mac(val->ddlv_sval, f->arp_sha, 6);
2507 err = flow_str2addr(val->ddlv_sval, &fa, &af);
2508 if (err != 0)
2517 err = flow_str2addr(val->ddlv_sval, &fa, &af);
2518 if (err != 0 || af != AF_INET)
2533 if (err != 0)
2534 dpif_log(err, "solaris_flowinfo2flowmap %s failed", key);
2536 return (err == 0 ? RCE_OK : -1);
2584 int err = 0;
2594 err = -1;
2596 err = derrp->dde_err;
2602 dpif_log(err == DDLSTATUS_NOT_FOUND ? 0 : err,
2611 if (err == 0) {
2612 err = solaris_flowinfo2flow(flowinfo, f, m);
2616 return (err);
2687 int err = 0;
2699 err = EINVAL;
2705 err = (etheraddrlen == -1) ? EINVAL : ENOMEM;
2710 err = EINVAL;
2716 err = EINVAL;
2723 err = EINVAL;
2729 err = EINVAL;
2732 if (err != 0)
2736 err = EINVAL;
2745 return (err);
2757 int err = EINVAL;
2768 err = EINVAL;
2815 err = 0;
2817 return (err);
2830 int err = EINVAL;
2901 err = 0;
2903 return (err);
2913 int err = EINVAL;
2947 err = 0;
2951 return (err);
2959 int err;
2961 err = flow_propval2action_settransport(propvals, nval, &tcp.tcp_src,
2963 if (err != 0)
2964 return (err);
2977 int err;
2979 err = flow_propval2action_settransport(propvals, nval, &udp.udp_src,
2981 if (err != 0)
2982 return (err);
2995 int err;
2997 err = flow_propval2action_settransport(propvals, nval, &sctp.sctp_src,
2999 if (err != 0)
3000 return (err);
3053 int err = 0;
3082 err = set_addr(sep, &tnl.ip_src);
3083 if (err != 0)
3084 return (err);
3089 err = set_addr(sep, &tnl.ip_dst);
3090 if (err != 0)
3091 return (err);
3232 int nval, err = 0, i, j;
3245 err = EINVAL;
3261 err = EINVAL;
3272 err = EINVAL;
3278 err = flow_propstr2outports(key, curr, outports, &nval);
3281 err = flow_propstr2vals(key, curr, &pvals, &nval);
3283 if (err != 0)
3291 err = flow_propval2action_setpri(pvals, nval, action);
3293 err = flow_propval2action_controller(pvals, nval,
3296 err = flow_propval2action_pushvlan(pvals, nval, action);
3298 err = flow_propval2action_popvlan(pvals, nval, action);
3300 err = flow_propval2action_setether(pvals, nval, action);
3302 err = flow_propval2action_setipv4(pvals, nval, action);
3304 err = flow_propval2action_setipv6(pvals, nval, action);
3306 err = flow_propval2action_settcp(pvals, nval, action);
3308 err = flow_propval2action_setudp(pvals, nval, action);
3310 err = flow_propval2action_setsctp(pvals, nval, action);
3312 err = flow_propval2action_settnl(pvals, nval, action);
3314 err = EINVAL;
3316 if (err != 0)
3324 return (err);
3334 int valcnt, err = 0;
3378 err = flow_propval2action_ofaction(propval, action);
3382 return (err == 0 ? RCE_OK : -1);
3392 int err = 0;
3406 err = EINVAL;
3412 return (err);
3422 int err = 0;
3432 err = -1;
3434 err = derrp->dde_err;
3440 dpif_log(err == DDLSTATUS_NOT_FOUND ? 0 : err,
3449 if (err == 0) {
3450 err = solaris_flowinfo2action(flowinfo, action);
3454 return (err);
3465 int err = 0;
3469 err = -1;
3471 err = derrp->dde_err;
3472 dpif_log(err, "failed Flow_getStatistics(): %s",
3484 err = EINVAL;
3493 err = EINVAL;
3502 err = EINVAL;
3511 err = EINVAL;
3520 err = EINVAL;
3528 return (err);
3537 int err;
3542 err = ENODEV;
3546 err = i_solaris_get_flowstats(flow, npackets, nbytes, lastused);
3549 return (err);
3675 int err = 0;
3715 if ((err = i_solaris_get_flowstats(rip, &npackets, &nbytes,
3717 dpif_log(err, "solaris_flow_walk get_flowstats "
3719 "name"), err);
3727 err = -1;
3729 err = derrp->dde_err;
3735 dpif_log(err == DDLSTATUS_NOT_FOUND ? 0 : err,
3745 err = solaris_flowinfo2linkname(flowinfo, linkname,
3747 if (err != 0) {
3763 err = -1;
3765 err = derrp->dde_err;
3766 dpif_log(err,
3781 err = solaris_flowinfo2flow(flowinfo, &f, &m);
3782 if (err != 0) {
3783 dpif_log(err, "solaris_flow_walk flowinfo2flow "
3785 "name"), err);
3789 err = solaris_flowinfo2action(flowinfo, action);
3790 if (err != 0) {
3791 dpif_log(err, "solaris_flow_walk "
3793 adr_name_key(anamearr[i], "name"), err);