/illumos-gate/usr/src/lib/libshare/common/ |
H A D | scfutil.c | 263 if (proto != NULL) in sa_extract_pgroup() 716 char *proto = NULL; in sa_share_props_from_pgroup() local 738 if (proto == NULL) in sa_share_props_from_pgroup() 740 *proto++ = '\0'; in sa_share_props_from_pgroup() 880 char *proto; in sa_extract_group() local 981 proto); in sa_extract_group() 997 proto = NULL; in sa_extract_group() 1819 char *proto; in remove_resources() local 1889 char *proto; in sa_delete_share() local 1894 proto); in sa_delete_share() [all …]
|
H A D | libshare.c | 729 char *proto; in sa_optionset_name() local 742 proto ? proto : "default"); in sa_optionset_name() 748 proto ? proto : "default", index); in sa_optionset_name() 779 char *proto; in sa_security_name() local 1782 char *proto; in sa_disable_share() local 3338 char *proto; in sa_add_property() local 3530 char *proto; in sa_get_protocol_section() local 3580 char *proto; in sa_get_next_protocol_section() local 3702 char *proto; in sa_set_protocol_property() local 4325 char *proto; in sa_enable_resource() local [all …]
|
H A D | libshare_zfs.c | 477 if (proto != NULL) { in find_or_create_group() 541 proto); in find_or_create_zfs_subgroup() 625 proto); in zfs_inherited() 691 options, proto); in zfs_notinherited() 747 mountpoint, proto, dataset); in sa_zfs_process_share() 766 proto, dataset, err); in sa_zfs_process_share() 1338 COMMAND, proto, in sa_zfs_update() 1344 COMMAND, proto, in sa_zfs_update() 1367 if (proto != NULL) in sa_zfs_update() 1368 sa_free_attr_string(proto); in sa_zfs_update() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_misc.c | 71 ep->proto = strdup(nc->nc_netid); in __nis_netconfig2ep() 73 ep->proto = strdup(nc->nc_proto); in __nis_netconfig2ep() 87 return (strcmp(nc->nc_netid, ep->proto) == 0 || in __nis_netconfig_matches_ep() 88 strcmp(nc->nc_proto, ep->proto) == 0); in __nis_netconfig_matches_ep() 90 return (strcmp(nc->nc_proto, ep->proto) == 0); in __nis_netconfig_matches_ep()
|
/illumos-gate/usr/src/cmd/mdb/tools/scripts/ |
H A D | mdb.sh | 45 if [ -n "$CODEMGR_WS" -a -x $CODEMGR_WS/proto/root_$mach/usr/bin/mdb ]; then 46 mdb_exec=$CODEMGR_WS/proto/root_$mach/usr/bin/mdb 47 root=$CODEMGR_WS/proto/root_$mach 63 elif [ -x $mdb_ws/proto/root_$mach/usr/bin/mdb ]; then 64 mdb_exec=$mdb_ws/proto/root_$mach/usr/bin/mdb 149 elif [ $mdb_exec = $mdb_ws/proto/root_$mach/usr/bin/mdb ]; then 154 usrlib=$mdb_ws/proto/root_$mach/usr/lib
|
/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | algs.c | 129 if (proto->proto_algs_pkgs == NULL) in alg_has_pkg() 132 for (i = 0; i < proto->proto_algs_npkgs; i++) in alg_has_pkg() 387 proto->proto_algs[i]->a_names; in delipsecalgbyname_common() 397 freeipsecalgent(proto->proto_algs[i]); in delipsecalgbyname_common() 402 proto->proto_algs[i - 1] = proto->proto_algs[i]; in delipsecalgbyname_common() 407 proto->proto_numalgs--; in delipsecalgbyname_common() 444 curalg = proto->proto_algs[i]; in ipsecalg_exists() 632 ipsec_proto_t *proto) in delipsecproto_common() 637 free(proto->proto_name); in delipsecproto_common() 638 for (i = 0; i < proto->proto_numalgs; i++) in delipsecproto_common() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getservbyname_r.c | 57 getservbyname_r(const char *name, const char *proto, struct servent *result, in getservbyname_r() argument 71 nssin.arg.nss.serv.proto = proto; in getservbyname_r() 91 getservbyport_r(int port, const char *proto, struct servent *result, in getservbyport_r() argument 105 nssin.arg.nss.serv.proto = proto; in getservbyport_r()
|
H A D | getprotoent_r.c | 73 getprotobynumber_r(int proto, struct protoent *result, char *buffer, int buflen) in getprotobynumber_r() argument 79 arg.key.number = proto; in getprotobynumber_r() 131 struct protoent *proto = (struct protoent *)ent; in str2protoent() local 159 proto->p_name = buffer; in str2protoent() 179 proto->p_proto = (int)strtol(numbuf, &numend, 10); in str2protoent() 200 proto->p_aliases = 0; in str2protoent() 204 proto->p_aliases = ptr; in str2protoent() 208 proto->p_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr), in str2protoent()
|
H A D | getservent.c | 47 getservbyname(const char *nam, const char *proto) in getservbyname() argument 53 res = getservbyname_r(nam, proto, in getservbyname() 60 getservbyport(int port, const char *proto) in getservbyport() argument 66 res = getservbyport_r(port, proto, in getservbyport()
|
H A D | getaddrinfo.c | 225 #define SP_ADDX(type, proto, port) \ in _getaddrinfo() argument 337 const char *proto = NULL; in _getaddrinfo() local 342 proto = NULL; in _getaddrinfo() 345 proto = "udp"; in _getaddrinfo() 356 proto = "tcp"; in _getaddrinfo() 359 proto = "sctp"; in _getaddrinfo() 368 proto = "sctp"; in _getaddrinfo() 848 *type = *proto = 0; in servtype() 851 *proto = IPPROTO_UDP; in servtype() 854 *proto = IPPROTO_TCP; in servtype() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | portnum.c | 19 int portnum(name, proto, port, linenum) in portnum() argument 20 char *name, *proto; in portnum() 36 if (proto != NULL && strcasecmp(proto, "tcp/udp") != 0) { 37 sp = getservbyname(name, proto);
|
H A D | ports.c | 17 int ports(seg, proto, pp, cp, tp, linenum) in ports() argument 19 char *proto; 32 if (portnum(**seg, proto, pp, linenum) == 0) 51 if (portnum(**seg, proto, tp, linenum) == 0) 72 if (portnum(**seg, proto, pp, linenum) == 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ipsec.c | 113 uint8_t proto; in interpret_ah() local 188 proto = aligned_ah->ah_nexthdr; in interpret_ah() 193 if (proto == IPPROTO_HOPOPTS || proto == IPPROTO_DSTOPTS || in interpret_ah() 194 proto == IPPROTO_ROUTING || proto == IPPROTO_FRAGMENT) { in interpret_ah() 195 (void) print_ipv6_extensions(flags, &data, &proto, &iplen, in interpret_ah() 200 switch (proto) { in interpret_ah()
|
H A D | snoop_rport.c | 143 getportname(int proto, in_port_t port) in getportname() argument 147 switch (proto) { in getportname() 162 reservedport(int proto, int port) in reservedport() argument 166 switch (proto) { in reservedport() 315 interpret_reserved(int flags, int proto, in_port_t src, in_port_t dst, in interpret_reserved() argument 325 curr_proto = proto; in interpret_reserved() 327 pn = getportname(proto, src); in interpret_reserved() 333 pn = getportname(proto, dst); in interpret_reserved() 355 proto != IPPROTO_TCP) { in interpret_reserved() 356 interpret_dns(flags, proto, (uchar_t *)data, dlen, which); in interpret_reserved() [all …]
|
H A D | snoop_ppp.c | 855 while (protoinfo_ptr->proto != proto && protoinfo_ptr->proto != 0) { in ppp_getprotoinfo() 971 uint16_t proto; in opt_format_authproto() local 974 GETINT16(proto, optdata); in opt_format_authproto() 981 switch (proto) { in opt_format_authproto() 1029 uint16_t proto; in opt_format_qualproto() local 1032 GETINT16(proto, optdata); in opt_format_qualproto() 1039 switch (proto) { in opt_format_qualproto() 1442 uint16_t proto; in opt_format_ipcompproto() local 1452 switch (proto) { in opt_format_ipcompproto() 1591 uint16_t proto; in opt_format_ipv6compproto() local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass2.c | 403 struct direct proto; in pass2check() local 433 proto.d_ino = idesc->id_number; in pass2check() 434 proto.d_namlen = 1; in pass2check() 435 (void) strcpy(proto.d_name, "."); in pass2check() 436 entrysize = DIRSIZ(&proto); in pass2check() 453 proto.d_reclen = dirp->d_reclen; in pass2check() 476 proto.d_reclen = entrysize; in pass2check() 552 proto.d_ino = inp->i_parent; in pass2check() 553 proto.d_namlen = 2; in pass2check() 555 entrysize = DIRSIZ(&proto); in pass2check() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/pf_key/ |
H A D | kmc-updater.c | 92 uint32_t proto = 0; in main() local 115 proto = strtoul(optarg, NULL, 0); in main() 149 if (proto == 0) in main() 150 proto = do_64_test ? SADB_X_KMP_KINK : SADB_X_KMP_IKE; in main() 221 kmcext->sadb_x_kmc_proto = proto; in main() 225 kmcext->sadb_x_kmc_proto = proto; in main() 266 if (kmcext->sadb_x_kmc_proto != proto || in main() 271 kmcext->sadb_x_kmc_proto, proto); in main() 278 if (kmcext->sadb_x_kmc_proto != proto || in main() 284 kmcext->sadb_x_kmc_proto, proto); in main()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_sv.c | 165 sv_byname(struct irs_sv *this, const char *name, const char *proto) { in sv_byname() argument 178 if ((strlen(name) + sizeof "/" + proto ? strlen(proto) : 0) in sv_byname() 183 proto ? proto : "")) + 1; in sv_byname() 184 if (proto != NULL) { in sv_byname() 203 if (proto == NULL || strcmp(p->s_proto, proto) == 0) in sv_byname() 210 sv_byport(struct irs_sv *this, int port, const char *proto) { in sv_byport() argument 227 if (proto && *proto) { in sv_byport() 228 strncpy((char *)ports + key.size, proto, in sv_byport() 244 if (proto == NULL || strcmp(p->s_proto, proto) == 0) in sv_byport()
|
H A D | irp_pr.c | 50 struct protoent proto; member 113 free_proto(&pvt->proto); in pr_close() 127 struct protoent *pr = &pvt->proto; in pr_byname() 174 pr_bynumber(struct irs_pr *this, int proto) { in pr_bynumber() argument 176 struct protoent *pr = &pvt->proto; in pr_bynumber() 183 if (pr->p_name != NULL && proto == pr->p_proto) { in pr_bynumber() 191 i = irs_irp_send_command(pvt->girpdata, "getprotobynumber %d", proto); in pr_bynumber() 254 struct protoent *pr = &pvt->proto; in pr_next()
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | ilb_ip.h | 92 #define ILB_SUPP_L4(proto) \ argument 93 ((proto) == IPPROTO_TCP || (proto) == IPPROTO_UDP || \ 94 (proto) == IPPROTO_ICMP || (proto) == IPPROTO_ICMPV6)
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 313 new->proto = proto; in add_list() 1686 char *proto; in group_proto() local 1792 char *proto; in sa_list() local 1842 (void) printf(" %s=(", proto ? proto : gettext("all")); in out_properties() 2183 if (proto != NULL && !has_protocol(group, proto)) { in show_group() 2511 char *proto; in sa_require_resource() local 5309 if (proto != NULL && sa_get_optionset(group, proto) == NULL) in out_share() 5313 proto = "nfs"; in out_share() 5319 if (proto != NULL && strcmp(proto, "nfs") != 0) in out_share() 5997 proto = proto; in sa_lookup() [all …]
|
/illumos-gate/usr/src/cmd/ipf/examples/ |
H A D | example.10 | 4 pass in proto tcp from 10.1.0.0/16 port = 23 to 10.2.0.0/16 flags A/A 5 pass out proto tcp from 10.1.0.0/16 port = 23 to 10.2.0.0/16 flags A/A 10 block in on le0 proto tcp from any to 10.1.0.0/16 flags S/SA 12 block out on le0 proto tcp from 10.1.0.0 to any flags SA/SA
|
H A D | example.7 | 3 block in proto icmp all 7 pass in on le1 proto icmp from any to any icmp-type echo 8 pass in on le1 proto icmp from any to any icmp-type echorep 12 block in on le1 proto icmp from any to any icmp-type unreach code 3
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | demand.c | 299 demand_rexmit(proto) in demand_rexmit() argument 300 int proto; in demand_rexmit() 309 if (PPP_PROTOCOL(pkt->data) == proto) { 334 int proto, i; local 348 proto = PPP_PROTOCOL(p); 350 if (protp->protocol < 0xC000 && (protp->protocol & ~0x8000) == proto) { 368 if ((cp = protocol_name(proto)) == NULL) { 369 (void) slprintf(pbuf, sizeof (pbuf), "0x#X", proto);
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getservent.c | 193 argp->key.serv.proto) { in _nss_ldap_services2str() 207 argp->key.serv.proto) == 0) { in _nss_ldap_services2str() 318 const char *proto = argp->key.serv.proto; in getbyname() local 329 if (proto == NULL) { in getbyname() 340 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyname() 374 const char *proto = argp->key.serv.proto; in getbyport() local 386 if (proto == NULL) { in getbyport() 397 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyport()
|