Searched refs:protostr (Results 1 - 3 of 3) sorted by relevance
/osnet-11/usr/src/lib/libdladm/common/ |
H A D | flowattr.c | 345 dladm_str2proto(const char *protostr) argument 347 if (strncasecmp(protostr, "tcp", 3) == 0) 349 else if (strncasecmp(protostr, "udp", 3) == 0) 351 else if (strncasecmp(protostr, "sctp", 4) == 0) 353 else if (strncasecmp(protostr, "icmpv6", 6) == 0) 355 else if (strncasecmp(protostr, "icmp", 4) == 0)
|
/osnet-11/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 372 ipadm_str2proto(const char *protostr) argument 374 if (protostr == NULL) 376 if (strcmp(protostr, "tcp") == 0) 378 else if (strcmp(protostr, "udp") == 0) 380 else if (strcmp(protostr, "ip") == 0) 382 else if (strcmp(protostr, "ipv4") == 0) 384 else if (strcmp(protostr, "ipv6") == 0) 386 else if (strcmp(protostr, "icmp") == 0) 388 else if (strcmp(protostr, "sctp") == 0) 390 else if (strcmp(protostr, "ar [all...] |
H A D | libipadm.c | 745 char *protostr = NULL, *ifname = NULL, *pval = NULL; local 752 (err = nvlist_lookup_string(nvl, IPADM_NVP_PROTONAME, &protostr)) 755 proto = ipadm_str2proto(protostr);
|
Completed in 28 milliseconds