Lines Matching refs:str
1255 flow_str2mac(const char *str, uchar_t *f, size_t maclen)
1260 if ((addr = _link_aton(str, &len)) == NULL)
1275 flow_str2addr(const char *str, in6_addr_t *f, int *afp)
1281 if (inet_pton(AF_INET, str, &v4addr.s_addr) == 1) {
1283 } else if (inet_pton(AF_INET6, str, v6addr.s6_addr) == 1) {
1331 char *str = NULL;
1338 str = _link_ntoa(f, NULL, ETHERADDRL, IFT_ETHER);
1339 if (str != NULL) {
1342 (void) snprintf(buf, buf_len, "%s", str);
1346 free(str);
1425 flow_ofports2propstr(char *str, size_t strsize, uint32_t *ofports,
1446 if (snprintf(buf, sizeof (buf), "%soutports", strlen(str) == 0 ? "" :
1451 if (strlcat(str, buf, strsize) >= strsize)
1471 if (strlcat(str, buf, strsize) >= strsize)
1883 solaris_setether_action_to_str(char *str, size_t strsize,
1895 (strlen(str) == 0) ? "" : FP_MULTI_ACTION_DELIM_STR,
1899 strlcat(str, buf, strsize) < strsize)
1910 solaris_setipv4_action_to_str(char *str, size_t strsize,
1920 (strlen(str) == 0) ? "" : FP_MULTI_ACTION_DELIM_STR,
1936 if (strlcat(str, buf, strsize) >= strsize)
1943 solaris_setipv6_action_to_str(char *str, size_t strsize,
1951 "%sset-ipv6%csrc%c%s%c", (strlen(str) == 0) ? "" :
1969 if (strlcat(str, buf, strsize) >= strsize)
1976 solaris_settransport_action_to_str(char *str, size_t strsize, const char *key,
1982 "%s%s%csport%c%d%cdport%c%d", (strlen(str) == 0) ? "" :
1988 if (strlcat(str, buf, strsize) >= strsize)
1995 solaris_settnl_action_to_str(char *str, size_t strsize,
2005 (strlen(str) == 0) ? "" : FP_MULTI_ACTION_DELIM_STR,
2021 if (strlcat(str, buf, strsize) >= strsize)
2035 char str[MAX_OF_ACTIONS_SIZE];
2043 str[0] = '\0';
2059 err = flow_ofports2propstr(str, sizeof (str),
2109 (strlen(str) == 0) ? "" : FP_MULTI_ACTION_DELIM_STR,
2116 if (strlcat(str, buf, sizeof (str)) >= sizeof (str)) {
2135 err = solaris_setether_action_to_str(str,
2136 sizeof (str), ek);
2144 err = solaris_setipv4_action_to_str(str,
2145 sizeof (str), eip4);
2153 err = solaris_setipv6_action_to_str(str,
2154 sizeof (str), eip6);
2162 str, sizeof (str), "set-tcp", etcp->tcp_src,
2171 str, sizeof (str), "set-udp", eudp->udp_src,
2179 err = solaris_settransport_action_to_str(str,
2180 sizeof (str), "set-sctp", esctp->sctp_src,
2192 str, sizeof (str), &tnl);
2210 (strlen(str) == 0) ? "" : FP_MULTI_ACTION_DELIM_STR,
2217 if (strlcat(str, buf, sizeof (str)) >= sizeof (str)) {
2225 (strlen(str) == 0) ? "" : FP_MULTI_ACTION_DELIM_STR,
2231 if (strlcat(str, buf, sizeof (str)) >= sizeof (str)) {
2255 err = flow_ofports2propstr(str, sizeof (str),
2263 err = dlmgr_DLValue_putstring(prop, "ofaction", str, dstr,