Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppproto.c2237 proto->ip = proto->ib = iob + proto->oz + n; in pppopen()
2394 proto->oz += proto->iz; in pppopen()
2403 proto->op = memcopy(proto->op, proto->ip, m); in pppopen()
2417 proto->op = linesync(proto, proto->op, 1); in pppopen()
2418 proto->iz += proto->op - proto->ob; in pppopen()
2438 …if ((comlen = astlicense(proto->op, proto->oz, notice, options, proto->cc[0], proto->cc[1], proto-… in pppopen()
2481 proto->op = linesync(proto, proto->op, proto->line); in pppopen()
2483 proto->op = init(proto, proto->op, proto->flags); in pppopen()
2519 …else if ((n = read(proto->fd, proto->ob, proto->oz)) <= 0 || (proto->options & REGULAR) && n < pro… in pppread()
2581 proto->op = memcopy(proto->ob, proto->ip, ip - proto->ip); in pppread()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dplugin.c88 struct sa_proto_plugin *proto; in proto_plugin_init() local
143 if (proto == NULL) { in proto_plugin_init()
149 proto->plugin_ops = plugin_ops; 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()
507 sa_valid_protocol(char *proto) in sa_valid_protocol() argument
563 if (proto != NULL) in sa_proto_delete_legacy()
588 if (proto != NULL) in sa_proto_delete_section()
611 } else if (proto == NULL) { in sa_proto_change_notify()
[all …]
H A Dlibsharecore.c350 (proto == NULL || strcmp(proto, "nfs") == 0)) in remdfsentry()
422 item->fstype = strdup(proto); in adddfsentry()
620 proto); in sa_delete_legacy()
621 if (proto == NULL) in sa_delete_legacy()
630 proto, share); in sa_delete_legacy()
634 if (proto != NULL) in sa_delete_legacy()
750 if (proto != NULL) in sa_is_security()
930 if (proto != NULL) in sa_parse_legacy_options()
1954 sectype, proto, hier); in sa_get_derived_security()
2106 if (strcmp(proto, "nfs") != 0) in sa_fillshare()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dproto.c4491 proto->ip = proto->ib = iob + proto->oz + n;
4638 proto->oz += proto->iz;
4647 proto->op = memcopy(proto->op, proto->ip, m);
4661 proto->op = linesync(proto, proto->op, 1);
4662 proto->iz += proto->op - proto->ob;
4682 …if ((comlen = astlicense(proto->op, proto->oz, notice, options, proto->cc[0], proto->cc[1], proto-…
4725 proto->op = linesync(proto, proto->op, proto->line);
4727 proto->op = init(proto, proto->op, proto->flags);
4762 …else if ((n = read(proto->fd, proto->ob, proto->oz)) <= 0 || (proto->options & (1L<<0)) && n < pro…
4824 proto->op = memcopy(proto->ob, proto->ip, ip - proto->ip);
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dgetserv.c79 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()
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()
130 l1 = strlen(e1->key.serv.proto); in servport_compar()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Ddns_pr.c47 struct protoent proto; member
108 if (pvt->proto.p_aliases) in pr_close()
109 free(pvt->proto.p_aliases); in pr_close()
121 struct protoent *proto; in pr_byname() local
129 return (proto); in pr_byname()
136 struct protoent *proto; in pr_bynumber() local
146 return (proto); in pr_bynumber()
214 pvt->proto.p_name = p; in parse_hes_list()
244 if (!pvt->proto.p_aliases) in parse_hes_list()
246 if (!pvt->proto.p_aliases) in parse_hes_list()
[all …]
H A Dgetservent.c54 getservbyname(const char *name, const char *proto) { in getservbyname() argument
57 return (getservbyname_p(name, proto, net_data)); in getservbyname()
61 getservbyport(int port, const char *proto) { in getservbyport() argument
64 return (getservbyport_p(port, proto, net_data)); in getservbyport()
94 getservbyname_p(const char *name, const char *proto, in getservbyname_p() argument
102 if (!proto || !strcmp(net_data->sv_last->s_proto, proto)) { in getservbyname_p()
110 net_data->sv_last = (*sv->byname)(sv, name, proto); in getservbyname_p()
117 getservbyport_p(int port, const char *proto, struct net_data *net_data) { in getservbyport_p() argument
124 ( !proto || in getservbyport_p()
125 !strcmp(net_data->sv_last->s_proto, proto))) in getservbyport_p()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dlpfsck.c48 static void proto (int, int, ...);
74 proto (D, 0, Lp_A, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck()
81 proto (D, 1, Lp_Logs, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck()
87 proto (D, 1, Lp_Tmp, NULL, 0771, Lp_Uid, Lp_Gid); in lpfsck()
98 proto (P, 1, Lp_FIFO, NULL, 0666, Lp_Uid, Lp_Gid); in lpfsck()
105 proto (S, 1, Lp_Model, NULL, "/etc/lp/model", NULL); in lpfsck()
106 proto (S, 1, Lp_Logs, NULL, "/etc/lp/logs", NULL); in lpfsck()
108 proto (S, 1, Lp_Bin, NULL, Lp_Spooldir, "bin", NULL); in lpfsck()
109 proto (S, 1, Lp_A, NULL, Lp_Admins, "lp", NULL); in lpfsck()
140 proto(S, 1, Lp_Tmp, Local_System, NULL, Lp_Temp, NULL); in lpfsck()
[all …]
/illumos-gate/usr/src/cmd/dfs.cmds/sharectl/
H A Dsharectl.c123 char *proto = NULL; in sc_get() local
161 proto = argv[optind]; in sc_get()
164 proto); in sc_get()
267 char *proto = NULL; in sc_set() local
305 proto = argv[optind]; in sc_set()
308 proto); in sc_set()
467 char *proto = NULL; in sc_delsect() local
498 proto = argv[optind]; in sc_delsect()
501 proto); in sc_delsect()
507 proto); in sc_delsect()
[all …]
/illumos-gate/usr/src/cmd/ipf/examples/
H A DBASIC_1.FW25 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
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
82 pass in quick proto tcp from any to any port = www keep state group 201
97 block return-rst in log proto tcp from any to any flags S/SA group 100
[all …]
H A Dexample.sr18 log in on le0 proto tcp from any to any flags S/SA
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
60 block in on le0 proto icmp from any to 10.1.1.0/24
[all …]
H A Dexample.115 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 Dtcpstate5 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
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_prop.c279 switch (proto) { in i_ipadm_get_propdesc_table()
335 switch (proto) { in ipadm_proto2str()
700 proto, flags); in i_ipadm_set_eprivport()
722 proto, flags); in i_ipadm_set_forwarding()
886 proto, valtype)); in i_ipadm_get_mtu()
1278 proto, valtype)); in ipadm_get_prop()
1306 proto, valtype)); in ipadm_get_ifprop()
1524 if (proto != MOD_PROTO_NONE && !(pdp->ipd_proto & proto)) in i_ipadm_walk_proptbl()
1856 uint_t *proto) in ipadm_legacy2new_propname() argument
1870 switch (*proto) { in ipadm_legacy2new_propname()
[all …]
/illumos-gate/usr/src/lib/libnsl/ipsec/
H A Dalgs.c53 if (proto == NULL) in _clean_trash()
69 free(proto); in _clean_trash()
816 ipsec_proto_t *proto; in _real_getipsecalgs() local
825 if (proto != NULL) { in _real_getipsecalgs()
845 ipsec_proto_t *proto; in getipsecalgbyname() local
858 if (proto != NULL) { in getipsecalgbyname()
890 ipsec_proto_t *proto; in getipsecalgbynum() local
899 if (proto != NULL) { in getipsecalgbynum()
921 ipsec_proto_t *proto; in getipsecprotobyname() local
927 if (proto != NULL) in getipsecprotobyname()
[all …]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c53 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;
256 if ((keyp = argp->key.serv.proto) == NULL) in check_port2()
278 const char *proto = argp->key.serv.proto; local
283 if (proto == 0) {
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/
H A Dsvc-forwarding39 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 \
/illumos-gate/usr/src/tools/scripts/
H A Dws.sh75 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}"
286 PROTO1=\$CODEMGR_WS/proto
298 PROTO2=\$parent/proto
306 [[ -n \$(check_proto \$parent/proto) ]] && PROTO2=\$parent/proto
[all …]
/illumos-gate/usr/src/uts/sun4/os/
H A Dmemlist.c244 while (proto != NULL) { in diff_memlists()
253 (*func)(proto->ml_address, proto->ml_size); in diff_memlists()
254 proto = proto->ml_next; 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()
282 (*func)(p_base, proto->ml_size); in diff_memlists()
283 proto = proto->ml_next; in diff_memlists()
314 proto = proto->ml_next; in diff_memlists()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/select/
H A Dselect_test.c54 fd_set check, proto; in main() local
69 FD_ZERO(&proto); in main()
99 FD_SET(i, &proto); in main()
114 print_set(&proto, 80); in main()
116 memcpy(&check, &proto, sizeof (check)); in main()
121 if (memcmp(&check, &proto, sizeof (check)) != 0) { in main()
122 diff_sets(&check, &proto, sizeof (check)); in main()
123 warnx("fd set mismatch: check: %p proto: %p", &check, &proto); in main()
/illumos-gate/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c430 if (proto[0] != '/') { in create_tlx_info()
465 v6_proto(proto)); in v6_socket_proto()
490 free(pi->proto); in destroy_proto_info()
584 char *proto = NULL; in valid_props() local
711 proto = protos[pi++]; in valid_props()
740 proto = NULL; in valid_props()
744 if (proto == NULL) in valid_props()
751 only = proto + strlen(proto) - (sizeof ("6only") - 1); in valid_props()
846 if ((p_inf->proto = malloc(strlen(proto) + 5)) == NULL) { in valid_props()
850 (void) strlcpy(p_inf->proto, proto, strlen(proto) + 5); in valid_props()
[all …]
/illumos-gate/usr/src/lib/libsocket/socket/
H A D_soutil.c50 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()
/illumos-gate/usr/src/cmd/connstat/
H A Dconnstat_mib.c32 mibopen(const char *proto) in mibopen() argument
42 if (ioctl(fd, I_PUSH, proto) == -1) { in mibopen()
53 conn_walk(int fd, connstat_proto_t *proto, conn_walk_state_t *state) in conn_walk() argument
76 req.hdr.level = proto->csp_miblevel; in conn_walk()
166 hdr->name == proto->csp_mibv4name) { in conn_walk()
167 proto->csp_v4walk(&dbuf, state); in conn_walk()
169 hdr->name == proto->csp_mibv6name) { in conn_walk()
170 proto->csp_v6walk(&dbuf, state); in conn_walk()
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dcdefs.h71 # define SM_DEAD(proto) volatile proto argument
74 # define SM_DEAD(proto) proto __attribute__((__noreturn__)) argument
78 # define SM_DEAD(proto) proto argument
/illumos-gate/usr/src/data/zoneinfo/
H A Dzonelint15 proto=$ROOT/usr/share/lib/zoneinfo
22 if [[ ! -d "$proto" ]]; then
23 echo "No zoneinfo in $proto - run 'dmake install'"
38 if [ ! -f $proto/$zone ]; then
59 if [ -f "$proto/$zone" ]; then

12345678910>>...17