/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppproto.c | 296 register Proto_t* proto = (Proto_t*)(iob - sizeof(Proto_t)); in proto_error() local 298 if (proto->line) in proto_error() 300 if (proto->file) in proto_error() 303 p = strcopy(p, proto->file); in proto_error() 309 p = number(p, proto->line); in proto_error() 311 else if (proto->file) in proto_error() 312 p = strcopy(p, proto->file); in proto_error() 368 linesync(register Proto_t* proto, register char* p, register long n) in linesync() argument 371 if (proto->flags & LINESYNC) in linesync() 391 init(Proto_t* proto, char* op, int flags) in init() argument [all …]
|
/illumos-gate/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 | 334 remdfsentry(xfs_sharelist_t *list, char *path, char *proto) in remdfsentry() argument 346 if (proto == NULL || (strcmp(item->path, path) == 0 && in remdfsentry() 347 (item->fstype != NULL && strcmp(item->fstype, proto) == 0))) in remdfsentry() 350 (proto == NULL || strcmp(proto, "nfs") == 0)) in remdfsentry() 405 adddfsentry(xfs_sharelist_t *list, sa_share_t share, char *proto) in adddfsentry() argument 422 item->fstype = strdup(proto); in adddfsentry() 423 item->options = sa_proto_legacy_format(proto, share, 1); in adddfsentry() 615 char *proto = sa_get_optionset_attr( in sa_delete_legacy() local 618 if (list != NULL && proto != NULL) in sa_delete_legacy() 620 proto); in sa_delete_legacy() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | proto.c | 1420 register Proto_t* proto = (Proto_t*)(iob - sizeof(Proto_t)); local 1422 if (proto->line) 1424 if (proto->file) 1427 p = strcopy(p, proto->file); 1433 p = number(p, proto->line); 1435 else if (proto->file) 1436 p = strcopy(p, proto->file); 2662 …c __PARAM__((register Proto_t* proto, register char* p, register long n), (proto, p, n)) __OTORP__… in __OTORP__() 2664 if (proto->flags & (1L<<13)) 2684 init __PARAM__((Proto_t* proto, char* op, int flags), (proto, op, flags)) __OTORP__(Proto_t* proto;… in __OTORP__() [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getserv.c | 77 if (e1->key.serv.proto == NULL && e2->key.serv.proto) in servname_compar() 79 if (e1->key.serv.proto && e2->key.serv.proto == NULL) in servname_compar() 81 if (e1->key.serv.proto) { in servname_compar() 82 l1 = strlen(e1->key.serv.proto); in servname_compar() 83 l2 = strlen(e2->key.serv.proto); in servname_compar() 84 res = strncmp(e1->key.serv.proto, e2->key.serv.proto, in servname_compar() 111 check_null(argp->key.serv.proto)); in servname_getlogstr() 123 if (e1->key.serv.proto == NULL && e2->key.serv.proto) in servport_compar() 125 if (e1->key.serv.proto && e2->key.serv.proto == NULL) in servport_compar() 127 if (e1->key.serv.proto) { in servport_compar() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_pr.c | 47 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 127 proto = parse_hes_list(this, hes_list); in pr_byname() 129 return (proto); in pr_byname() 136 struct protoent *proto; in pr_bynumber() local 144 proto = parse_hes_list(this, hes_list); in pr_bynumber() 146 return (proto); in pr_bynumber() 214 pvt->proto.p_name = p; in parse_hes_list() [all …]
|
H A D | getservent.c | 54 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 D | lpfsck.c | 48 static void proto (int, int, ...); 74 proto (D, 0, Lp_A, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 75 proto (D, 1, Lp_A_Classes, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 76 proto (D, 1, Lp_A_Forms, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 77 proto (D, 1, Lp_A_Interfaces, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 78 proto (D, 1, Lp_A_Printers, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 79 proto (D, 1, Lp_A_PrintWheels, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 80 proto (D, 0, "/var/lp", NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 81 proto (D, 1, Lp_Logs, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() 82 proto (D, 1, Lp_Spooldir, NULL, 0775, Lp_Uid, Lp_Gid); in lpfsck() [all …]
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharectl/ |
H A D | sharectl.c | 44 static void sub_command_help(char *proto); 123 char *proto = NULL; in sc_get() local 161 proto = argv[optind]; in sc_get() 162 if (!sa_valid_protocol(proto)) { in sc_get() 164 proto); in sc_get() 167 propset = sa_proto_get_properties(proto); in sc_get() 182 if (sa_proto_get_featureset(proto) & in sc_get() 234 if (sa_proto_get_featureset(proto) & in sc_get() 268 char *proto = NULL; in sc_set() local 306 proto = argv[optind]; in sc_set() [all …]
|
/illumos-gate/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
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 277 i_ipadm_get_propdesc_table(uint_t proto) in i_ipadm_get_propdesc_table() argument 279 switch (proto) { in i_ipadm_get_propdesc_table() 298 i_ipadm_get_prop_desc(const char *pname, uint_t proto, int *errp) in i_ipadm_get_prop_desc() argument 304 if ((ipdtbl = i_ipadm_get_propdesc_table(proto)) == NULL) { in i_ipadm_get_prop_desc() 314 if (ipdp->ipd_proto == proto) in i_ipadm_get_prop_desc() 333 ipadm_proto2str(uint_t proto) in ipadm_proto2str() argument 335 switch (proto) { in ipadm_proto2str() 383 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_mtu() argument 398 proto, MOD_PROP_DEFAULT); in i_ipadm_set_mtu() 413 s = (proto == MOD_PROTO_IPV6 ? iph->iph_sock6 : iph->iph_sock); in i_ipadm_set_mtu() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 51 const char *proto = args->key.serv.proto; local 54 if (proto != 0 && strcmp(serv->s_proto, proto) != 0) { 84 if (argp->key.serv.proto == NULL) in check_name2() 103 if ((keyp = argp->key.serv.proto) == NULL) { in check_name2() 156 const char *proto = argp->key.serv.proto; local 171 if (proto == 0) { 175 int len = strlen(name) + strlen(proto) + 3; 181 (void) snprintf(key, len, "%s/%s", name, proto); 254 if ((keyp = argp->key.serv.proto) == NULL) in check_port2() 276 const char *proto = argp->key.serv.proto; local [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 \
|
/illumos-gate/usr/src/test/net-tests/tests/ipv6/ |
H A D | scope-test-v6.ksh | 120 for proto in udp tcp; do 121 c="--port 12345 --proto ${proto} --family 6" 124 test_fail "FAIL: ${proto} connect 1 failed" 126 test_fail "FAIL: ${proto} connect 2 failed" 128 test_fail "FAIL: ${proto} connect 3 failed" 130 test_fail "FAIL: ${proto} connect 4 failed" 133 test_fail "FAIL: ${proto} connect 5 failed" 135 test_fail "FAIL: ${proto} connect 6 failed" 138 test_fail "FAIL: ${proto} neg 1 failed" 140 test_fail "FAIL: ${proto} neg 2 failed"
|
H A D | dup_bind.py | 50 proto=socket.IPPROTO_UDP) as s: 64 proto: int = -1 variable in TestProto 91 self.sockobj = socket.socket(family=self.family, type=self.type, proto=self.proto) 113 proto=socket.IPPROTO_TCP variable in TestProtoTcp 139 self.sockobj = socket.socket(family=self.family, type=self.type, proto=self.proto) 156 proto=socket.IPPROTO_UDP variable in TestProtoUdp 167 self.sockobj = socket.socket(family=self.family, type=self.type, proto=self.proto) 192 proto: Type[TestProto]) -> Tuple[SockAddr, Optional[int]]: 201 sa = socket.getaddrinfo(addr, port, family=family, proto=proto.proto, 222 test_proto=test_map[args.proto]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/test/libc-tests/tests/select/ |
H A D | select_test.c | 54 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/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()
|
/illumos-gate/usr/src/cmd/connstat/ |
H A D | connstat_mib.c | 32 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()
|