/titanic_41/usr/src/lib/libpp/common/ |
H A D | ppproto.c | 60 struct proto /* proto buffer state */ struct 266 register struct proto* proto = (struct proto*)(iob - sizeof(struct proto)); in proto_error() local 268 if (proto->line) in proto_error() 270 if (proto->file) in proto_error() 273 p = strcopy(p, proto->file); in proto_error() 279 p = number(p, proto->line); in proto_error() 281 else if (proto->file) in proto_error() 282 p = strcopy(p, proto->file); in proto_error() 338 linesync(register struct proto* proto, register char* p, register long n) in linesync() argument 341 if (proto->flags & LINESYNC) in linesync() [all …]
|
/titanic_41/usr/src/lib/libshare/common/ |
H A D | plugin.c | 88 struct sa_proto_plugin *proto; in proto_plugin_init() local 141 proto = (struct sa_proto_plugin *) in proto_plugin_init() 143 if (proto == NULL) { in proto_plugin_init() 149 proto->plugin_ops = plugin_ops; in proto_plugin_init() 150 proto->plugin_handle = dlhandle; in proto_plugin_init() 152 proto->plugin_next = sap_proto_list; in proto_plugin_init() 153 sap_proto_list = proto; in proto_plugin_init() 248 find_protocol(char *proto) in find_protocol() argument 255 if (proto != NULL) { in find_protocol() 257 if (strcmp(proto, sa_proto_handle.sa_proto[i]) == 0) { in find_protocol() [all …]
|
H A D | libsharecore.c | 333 remdfsentry(xfs_sharelist_t *list, char *path, char *proto) in remdfsentry() argument 345 if (proto == NULL || (strcmp(item->path, path) == 0 && in remdfsentry() 346 (item->fstype != NULL && strcmp(item->fstype, proto) == 0))) in remdfsentry() 349 (proto == NULL || strcmp(proto, "nfs") == 0)) in remdfsentry() 404 adddfsentry(xfs_sharelist_t *list, sa_share_t share, char *proto) in adddfsentry() argument 421 item->fstype = strdup(proto); in adddfsentry() 422 item->options = sa_proto_legacy_format(proto, share, 1); in adddfsentry() 614 char *proto = sa_get_optionset_attr( in sa_delete_legacy() local 617 if (list != NULL && proto != NULL) in sa_delete_legacy() 619 proto); in sa_delete_legacy() [all …]
|
H A D | scfutil.c | 223 valid_protocol(char *proto) in valid_protocol() argument 228 if (strcmp(proto, plugin->plugin_ops->sa_protocol) == 0) in valid_protocol() 243 char *nodetype, char *proto, char *sectype) in sa_extract_pgroup() argument 260 if (proto != NULL) in sa_extract_pgroup() 261 (void) xmlSetProp(node, (xmlChar *)"type", (xmlChar *)proto); in sa_extract_pgroup() 713 char *proto; in sa_share_props_from_pgroup() local 734 proto = strchr(id, '_'); in sa_share_props_from_pgroup() 735 if (proto == NULL) in sa_share_props_from_pgroup() 737 *proto++ = '\0'; in sa_share_props_from_pgroup() 744 if (*proto == '\0') { in sa_share_props_from_pgroup() [all …]
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | getserv.c | 79 if (e1->key.serv.proto == NULL && e2->key.serv.proto) in servname_compar() 81 if (e1->key.serv.proto && e2->key.serv.proto == NULL) in servname_compar() 83 if (e1->key.serv.proto) { in servname_compar() 84 l1 = strlen(e1->key.serv.proto); in servname_compar() 85 l2 = strlen(e2->key.serv.proto); in servname_compar() 86 res = strncmp(e1->key.serv.proto, e2->key.serv.proto, in servname_compar() 113 check_null(argp->key.serv.proto)); in servname_getlogstr() 125 if (e1->key.serv.proto == NULL && e2->key.serv.proto) in servport_compar() 127 if (e1->key.serv.proto && e2->key.serv.proto == NULL) in servport_compar() 129 if (e1->key.serv.proto) { in servport_compar() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_pr.c | 51 struct protoent proto; member 112 if (pvt->proto.p_aliases) in pr_close() 113 free(pvt->proto.p_aliases); in pr_close() 125 struct protoent *proto; in pr_byname() local 131 proto = parse_hes_list(this, hes_list); in pr_byname() 133 return (proto); in pr_byname() 140 struct protoent *proto; in pr_bynumber() local 148 proto = parse_hes_list(this, hes_list); in pr_bynumber() 150 return (proto); in pr_bynumber() 218 pvt->proto.p_name = p; in parse_hes_list() [all …]
|
H A D | getservent.c | 58 getservbyname(const char *name, const char *proto) { in getservbyname() argument 61 return (getservbyname_p(name, proto, net_data)); in getservbyname() 65 getservbyport(int port, const char *proto) { in getservbyport() argument 68 return (getservbyport_p(port, proto, net_data)); in getservbyport() 98 getservbyname_p(const char *name, const char *proto, in getservbyname_p() argument 106 if (!proto || !strcmp(net_data->sv_last->s_proto, proto)) { in getservbyname_p() 114 net_data->sv_last = (*sv->byname)(sv, name, proto); in getservbyname_p() 121 getservbyport_p(int port, const char *proto, struct net_data *net_data) { in getservbyport_p() argument 128 ( !proto || in getservbyport_p() 129 !strcmp(net_data->sv_last->s_proto, proto))) in getservbyport_p() [all …]
|
/titanic_41/usr/src/cmd/lp/cmd/lpsched/ |
H A D | lpfsck.c | 50 static void proto (int, int, ...); 76 proto (D, 0, Lp_A, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 77 proto (D, 1, Lp_A_Classes, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 78 proto (D, 1, Lp_A_Forms, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 79 proto (D, 1, Lp_A_Interfaces, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 80 proto (D, 1, Lp_A_Printers, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 81 proto (D, 1, Lp_A_PrintWheels, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 82 proto (D, 0, "/var/lp", NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 83 proto (D, 1, Lp_Logs, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 84 proto (D, 1, Lp_Spooldir, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() [all …]
|
/titanic_41/usr/src/cmd/dfs.cmds/sharectl/ |
H A D | sharectl.c | 43 static void sub_command_help(char *proto); 122 char *proto = NULL; in sc_get() local 160 proto = argv[optind]; in sc_get() 161 if (!sa_valid_protocol(proto)) { in sc_get() 163 proto); in sc_get() 166 propset = sa_proto_get_properties(proto); in sc_get() 181 if (sa_proto_get_featureset(proto) & in sc_get() 232 if (sa_proto_get_featureset(proto) & in sc_get() 266 char *proto = NULL; in sc_set() local 304 proto = argv[optind]; in sc_set() [all …]
|
/titanic_41/usr/src/cmd/ipf/examples/ |
H A D | BASIC_1.FW | 25 block in log proto tcp all flags S/SA head 101 group 100 28 block in log proto tcp all flags S/SA head 201 group 200 29 block in log proto udp all head 202 group 200 60 pass in quick proto udp from any to any port = 53 keep state group 202 70 pass in quick proto tcp from any to any port = ftp keep state group 201 71 pass in quick proto tcp from any to any port = ftp-data keep state group 201 72 pass in quick proto tcp from any port = ftp-data to any port > 1023 keep state group 101 76 pass in quick proto udp from any to any port = ntp keep state group 202 80 pass in quick proto tcp from any to any port = 22 keep state group 201 81 pass in quick proto tcp from any to any port = telnet keep state group 201 [all …]
|
H A D | example.sr | 18 log in on le0 proto tcp from any to any flags S/SA 22 block in log on le0 proto icmp from any to any icmp-type unreach 27 block in log on le0 proto udp from any to any port = 2049 46 block in on le0 proto udp from any to 10.1.3.0/24 47 block in on le0 proto udp from any to 10.1.1.0/24 48 block in on le0 proto udp from any to 10.1.2.0/24 53 block in on le0 proto tcp from any to 10.1.3.0/24 flags S/SA 54 block in on le0 proto tcp from any to 10.1.2.0/24 flags S/SA 55 block in on le0 proto tcp from any to 10.1.1.0/24 flags S/SA 59 block in on le0 proto icmp from any to 10.1.3.0/24 [all …]
|
H A D | example.11 | 5 pass in proto tcp from 10.2.2.2/24 to 10.1.1.2/32 port = 6667 10 pass in proto udp from 10.2.2.2 port != 53 to localhost 14 block in proto tcp from any to any port 5999 >< 6010 19 block in proto tcp/udp all 20 pass in proto tcp/udp from any to any port 512 <> 515 25 pass in proto tcp/udp all 26 block in proto tcp/udp from any to any port 511 >< 516
|
H A D | tcpstate | 5 pass out quick on le0 proto tcp from any to any flags S/SAFR keep state 6 block out on le0 proto tcp all 7 block in on le0 proto tcp all 11 pass out quick on le0 proto udp from any to any port = 53 keep state 12 block out on le0 proto udp all 13 block in on le0 proto udp all
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 267 i_ipadm_get_propdesc_table(uint_t proto) in i_ipadm_get_propdesc_table() argument 269 switch (proto) { in i_ipadm_get_propdesc_table() 288 i_ipadm_get_prop_desc(const char *pname, uint_t proto, int *errp) in i_ipadm_get_prop_desc() argument 294 if ((ipdtbl = i_ipadm_get_propdesc_table(proto)) == NULL) { in i_ipadm_get_prop_desc() 304 if (ipdp->ipd_proto == proto) in i_ipadm_get_prop_desc() 323 ipadm_proto2str(uint_t proto) in ipadm_proto2str() argument 325 switch (proto) { in ipadm_proto2str() 373 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_mtu() argument 388 proto, MOD_PROP_DEFAULT); in i_ipadm_set_mtu() 403 s = (proto == MOD_PROTO_IPV6 ? iph->iph_sock6 : iph->iph_sock); in i_ipadm_set_mtu() [all …]
|
/titanic_41/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 53 const char *proto = args->key.serv.proto; local 56 if (proto != 0 && strcmp(serv->s_proto, proto) != 0) { 86 if (argp->key.serv.proto == NULL) in check_name2() 105 if ((keyp = argp->key.serv.proto) == NULL) { in check_name2() 158 const char *proto = argp->key.serv.proto; local 173 if (proto == 0) { 177 int len = strlen(name) + strlen(proto) + 3; 183 (void) snprintf(key, len, "%s/%s", name, proto); 256 if ((keyp = argp->key.serv.proto) == NULL) in check_port2() 278 const char *proto = argp->key.serv.proto; local [all …]
|
/titanic_41/usr/src/lib/libnsl/ipsec/ |
H A D | algs.c | 49 _clean_trash(ipsec_proto_t *proto, int num) in _clean_trash() argument 53 if (proto == NULL) in _clean_trash() 57 free(proto[num].proto_name); in _clean_trash() 58 free(proto[num].proto_pkg); in _clean_trash() 59 for (alg_offset = 0; alg_offset < proto[num].proto_numalgs; in _clean_trash() 61 freeipsecalgent(proto[num].proto_algs[alg_offset]); in _clean_trash() 62 free(proto[num].proto_algs); in _clean_trash() 63 for (alg_offset = 0; alg_offset < proto[num].proto_algs_npkgs; in _clean_trash() 65 free(proto[num].proto_algs_pkgs[alg_offset].pkg_name); in _clean_trash() 66 free(proto[num].proto_algs_pkgs); in _clean_trash() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/routeadm/ |
H A D | svc-forwarding | 39 proto="$2" 41 if [ -z "$proto" ]; then 52 if [ "$proto" = "ipv6" -a "$numv6ifs" = 0 ]; then 57 /usr/sbin/ipadm set-prop -p forwarding=on $proto 58 [ "$proto" = "ipv6" ] && /usr/sbin/ipadm set-prop \ 62 /usr/sbin/ipadm set-prop -p forwarding=off $proto 63 [ "$proto" = "ipv6" ] && /usr/sbin/ipadm set-prop \
|
/titanic_41/usr/src/tools/scripts/ |
H A D | ws.sh | 75 proto=`echo $1|fmtwsname` 76 echo "${proto}/root_${MACH}" 78 proto=$1 85 if [[ "${proto##ssh://}" == "$proto" && \ 86 "${proto##http://}" == "$proto" && \ 87 "${proto##https://}" == "$proto" ]]; then 88 echo "${proto}/root_${MACH}" 104 unset setenv osbld_flag os_rev wsosdir protofile wsname ofs proto \ 286 PROTO1=\$CODEMGR_WS/proto 298 PROTO2=\$parent/proto [all …]
|
/titanic_41/usr/src/uts/sun4/os/ |
H A D | memlist.c | 240 diff_memlists(struct memlist *proto, struct memlist *diff, void (*func)()) in diff_memlists() argument 244 while (proto != NULL) { in diff_memlists() 250 proto->ml_address >= diff->ml_address + diff->ml_size) in diff_memlists() 253 (*func)(proto->ml_address, proto->ml_size); in diff_memlists() 254 proto = proto->ml_next; in diff_memlists() 257 if (proto->ml_address == diff->ml_address && in diff_memlists() 258 proto->ml_size == diff->ml_size) { in diff_memlists() 259 proto = proto->ml_next; in diff_memlists() 264 p_base = proto->ml_address; in diff_memlists() 265 p_end = p_base + proto->ml_size; in diff_memlists() [all …]
|
/titanic_41/usr/src/lib/libsocket/socket/ |
H A D | _soutil.c | 50 static struct netconfig *_s_match_netconf(int family, int type, int proto, 176 _s_match_netconf(int family, int type, int proto, void **nethandle) in _s_match_netconf() argument 184 proto < 0 || proto >= IPPROTO_MAX) { in _s_match_netconf() 188 if (proto) { in _s_match_netconf() 189 if (proto >= (int)sizeof (proto_sw) / (int)sizeof (char *)) in _s_match_netconf() 192 oproto = proto_sw[proto]; in _s_match_netconf() 215 if (proto) { in _s_match_netconf()
|
/titanic_41/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 334 create_rpc_info(const char *proto, int pnum, int low_ver, int high_ver) in create_rpc_info() argument 352 if ((ret->netid = strdup(proto)) == NULL) { in create_rpc_info() 364 if ((nconf = getnetconfigent(proto)) != NULL) { in create_rpc_info() 368 } else if (!v6_proto(proto)) { in create_rpc_info() 406 create_tlx_info(const char *proto, uu_list_pool_t *conn_ind_pool) in create_tlx_info() argument 430 if (proto[0] != '/') { in create_tlx_info() 431 sz = strlen("/dev/") + strlen(proto) + 1; in create_tlx_info() 434 (void) snprintf(ret->dev_name, sz, "/dev/%s", proto); in create_tlx_info() 435 } else if ((ret->dev_name = strdup(proto)) == NULL) { in create_tlx_info() 451 v6_proto(const char *proto) in v6_proto() argument [all …]
|
/titanic_41/usr/src/cmd/sendmail/include/sm/ |
H A D | cdefs.h | 71 # define SM_DEAD(proto) volatile proto argument 74 # define SM_DEAD(proto) proto __attribute__((__noreturn__)) argument 78 # define SM_DEAD(proto) proto argument
|
/titanic_41/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()
|
/titanic_41/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
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
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);
|