Lines Matching refs:key

646 test_dlclass(const char *key, dlmgr_DLValue_t *dlval, void *arg)
648 if (strcmp(key, "class") == 0)
655 test_dllower(const char *key, dlmgr_DLValue_t *dlval, void *arg)
658 if (strcmp(key, "over") == 0) {
989 const char *key, char *buf, char *dstr, size_t dstrlen)
995 if (strlen(key) != 0) {
999 if ((status = dlmgr__rad_dict_string_DLValue_put(ddvp, key,
1004 snprintf(dstr, dstrlen, "%s,%s=%s", dstr, key, buf);
1012 const char *key, dlmgr__rad_dict_string_DLValue_t *dict)
1018 if (strlen(key) != 0) {
1022 if ((status = dlmgr__rad_dict_string_DLValue_put(ddvp, key,
1484 dlmgr__rad_dict_string_DLValue_t *ddmp, const char *key,
1495 if ((status = dlmgr__rad_dict_string_DLValue_put(ddvp, key,
1502 if ((status = dlmgr__rad_dict_string_DLValue_put(ddmp, key,
1508 snprintf(dstr, dstrlen, "%s,%s=%s/%s", dstr, key, buf, rbuf);
1515 const char *key, boolean_t val, char *dstr, size_t dstrlen)
1524 if ((status = dlmgr__rad_dict_string_DLValue_put(ddvp, key, &new_val,
1528 snprintf(dstr, dstrlen, "%s,%s=%s", dstr, key,
1535 dlmgr_DLValue_putulong(dlmgr__rad_dict_string_DLValue_t *ddvp, const char *key,
1546 if ((status = dlmgr__rad_dict_string_DLValue_put(ddvp, key, &new_val,
1550 snprintf(dstr, dstrlen, "%s,%s=%"PRIu64, dstr, key, val);
1557 dlmgr__rad_dict_string_DLValue_t *ddmp, const char *key,
1569 if ((status = dlmgr__rad_dict_string_DLValue_put(ddvp, key, &new_val,
1576 if ((status = dlmgr__rad_dict_string_DLValue_put(ddmp, key, &new_val,
1581 snprintf(dstr, dstrlen, "%s,%s=%"PRIu64"/%"PRIu64, dstr, key, f, m);
1976 solaris_settransport_action_to_str(char *str, size_t strsize, const char *key,
1983 FP_MULTI_ACTION_DELIM_STR, key, FP_NAME_VAL_DELIM,
2444 solaris_flowinfo2flowmap(const char *key, dlmgr_DLValue_t *val, void *arg)
2451 if (strcmp(key, "dst-mac") == 0) {
2453 } else if (strcmp(key, "src-mac") == 0) {
2455 } else if (strcmp(key, "local-ip") == 0 ||
2456 strcmp(key, "remote-ip") == 0 || strcmp(key, "arp-sip") == 0 ||
2457 strcmp(key, "arp-tip") == 0) {
2463 if (strcmp(key, "local-ip") == 0 ||
2464 strcmp(key, "arp-sip") == 0) {
2470 if (strcmp(key, "local-ip") == 0) {
2472 } else if (strcmp(key, "remote-ip") == 0) {
2478 } else if (strcmp(key, "transport") == 0) {
2480 } else if (strcmp(key, "local-port") == 0) {
2482 } else if (strcmp(key, "remote-port") == 0) {
2484 } else if (strcmp(key, "dsfield") == 0) {
2486 } else if (strcmp(key, "srcport") == 0) {
2488 } else if (strcmp(key, "arp-target") == 0 ||
2489 strcmp(key, "nd-tll") == 0) {
2491 } else if (strcmp(key, "arp-sender") == 0 ||
2492 strcmp(key, "nd-sll") == 0) {
2494 } else if (strcmp(key, "arp-op") == 0) {
2496 } else if (strcmp(key, "sap") == 0) {
2498 } else if (strcmp(key, "ttl") == 0) {
2500 } else if (strcmp(key, "vlan-tci") == 0) {
2502 } else if (strcmp(key, "icmp-type") == 0) {
2504 } else if (strcmp(key, "icmp-code") == 0) {
2506 } else if (strcmp(key, "nd-target") == 0) {
2511 } else if (strcmp(key, "tcp-flags") == 0) {
2513 } else if (strcmp(key, "tun-id") == 0) {
2515 } else if (strcmp(key, "tun-local-ip") == 0 ||
2516 strcmp(key, "tun-remote-ip") == 0) {
2521 if (strcmp(key, "tun-local-ip") == 0)
2525 } else if (strcmp(key, "tun-dsfield") == 0) {
2527 } else if (strcmp(key, "tun-ttl") == 0) {
2529 } else if (strcmp(key, "tun-flags") == 0) {
2534 dpif_log(err, "solaris_flowinfo2flowmap %s failed", key);
3133 flow_propstr2outports(char *key, char *val, uint32_t outports[], int *valcntp)
3142 dpif_log(0, "flow_propstr2vals key %s val %s", key, val);
3145 ovs_assert(strcmp(key, "outports") == 0);
3182 dpif_log(0, "flow_propstr2outports key %s %dth: %d", key, i+1,
3188 flow_propstr2vals(char *key, char *val, char ***propvalsp, int *valcntp)
3194 dpif_log(0, "flow_propstr2vals key %s val %s", key, val);
3197 ovs_assert(strcmp(key, "outports") != 0);
3208 dpif_log(EINVAL, "flow_propstr2vals key %s %dth"
3209 " string too long %s", key, j - 1, curr);
3218 dpif_log(0, "flow_propstr2vals key %s %dth: %s", key, i+1,
3230 char *curr, *key, c;
3251 key = NULL;
3266 key = curr;
3271 if (key == NULL) {
3276 if (strcmp(key, "outports") == 0) {
3278 err = flow_propstr2outports(key, curr, outports, &nval);
3281 err = flow_propstr2vals(key, curr, &pvals, &nval);
3286 if (strcmp(key, "outports") == 0) {
3290 } else if (strcmp(key, "max-bw") == 0)
3292 else if (strcmp(key, "controller") == 0)
3295 else if (strcmp(key, "vlan-tag") == 0)
3297 else if (strcmp(key, "vlan-strip") == 0)
3299 else if (strcmp(key, "set-ether") == 0)
3301 else if (strcmp(key, "set-ipv4") == 0)
3303 else if (strcmp(key, "set-ipv6") == 0)
3305 else if (strcmp(key, "set-tcp") == 0)
3307 else if (strcmp(key, "set-udp") == 0)
3309 else if (strcmp(key, "set-sctp") == 0)
3311 else if (strcmp(key, "set-tunnel") == 0)
3319 key = NULL;
3329 solaris_flowinfo2actionmap(const char *key, dlmgr_DLValue_t *val,
3374 dpif_log(0, "solaris_flowinfo2actionmap %s:%d %s", key, valcnt,
3377 if (strcmp(key, "ofaction") == 0)