/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getprotoent.c | 48 int proto; in check_addr() local 62 proto = (int)strtol(linep, NULL, 10); in check_addr() 63 return (proto == argp->key.number); in check_addr()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | ipf6.conf.dfl | 35 pass in quick proto udp from any to any port = 546 36 pass out quick proto udp from any to any port = 547 39 pass in quick proto ipv6-icmp from any to any 40 pass out quick proto ipv6-icmp from any to any
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | sharemgr_main.c | 45 extern void sub_command_help(char *proto); 125 run_command(char *command, int argc, char *argv[], char *proto, in run_command() argument 147 cmdvec = sa_lookup(command, proto); in run_command()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon.c | 559 char *proto; 571 if (!strcmp(proto, "tcp")) 732 char *proto; local 812 char *t = line, *proto; local 863 portname(res, proto, (u_int)sl->isl_dport), proto); 884 proto); 990 char *t, *proto; local 1127 proto = getproto(p); 1138 proto, hl, plen); 1199 portname(res, proto, [all …]
|
/illumos-gate/usr/src/cmd/ipf/examples/ |
H A D | example.5 | 11 pass in proto tcp from 10.2.2.2/24 to 10.1.1.2/32 port = 6667 16 pass in proto udp from 10.2.2.2 port != 53 to localhost 20 block in proto icmp from any to any icmp-type unreach
|
/illumos-gate/usr/src/boot/common/ |
H A D | install.c | 187 struct fs_ops *proto; in install() local 200 proto = &tftp_fsops; in install() 206 proto = NULL; in install() 209 proto = &dosfs_fsops; in install() 245 error = pkgfs_init(buf, proto); in install()
|
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 1263 ushort_t proto; in receive_frame() local 1269 proto = *cp++; in receive_frame() 1270 if ((proto & 1) == 0) in receive_frame() 1271 proto = (proto << 8) + *cp++; in receive_frame() 1684 ushort_t proto; in spppasyn_muxencode() local 1702 if ((proto & 1) == 0) { in spppasyn_muxencode() 1703 proto = (proto << 8) + MSG_BYTE(mp, i); in spppasyn_muxencode() 1895 ushort_t proto; in spppasyn_inpkt() local 1952 if ((proto & 1) == 0) in spppasyn_inpkt() 1953 proto = (proto << 8) + MSG_BYTE(mp, 1); in spppasyn_inpkt() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 548 struct fs proto; in find_superblock() local 570 cg = proto.fs_ncg; in find_superblock() 577 proto.fs_fpg, proto.fs_cgoffset); in find_superblock() 579 proto.fs_cgmask, proto.fs_sblkno, in find_superblock() 580 proto.fs_ncg); in find_superblock() 583 bflag = fsbtodb(&proto, cgsblock(&proto, cg)); in find_superblock() 600 if (proto.fs_ncg <= 9) in find_superblock() 601 cg = proto.fs_ncg; in find_superblock() 602 else if (proto.fs_ncg <= 19) in find_superblock() 605 cg = proto.fs_ncg - 10; in find_superblock() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ip.c | 317 uchar_t proto; in interpret_ipv6() local 337 proto = ip6h->ip6_nxt; in interpret_ipv6() 395 getproto(proto)); in interpret_ipv6() 411 if (proto == IPPROTO_HOPOPTS || proto == IPPROTO_DSTOPTS || in interpret_ipv6() 412 proto == IPPROTO_ROUTING || proto == IPPROTO_FRAGMENT) { in interpret_ipv6() 429 switch (proto) { in interpret_ipv6() 497 uchar_t proto = *next; in print_ipv6_extensions() local 522 switch (proto) { in print_ipv6_extensions() 531 proto = ipv6ext_hbh->ip6h_nxt; in print_ipv6_extensions() 568 proto = IPPROTO_NONE; in print_ipv6_extensions() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacct.c | 73 (f->proto) + (f->sport) + (f->dport)) \ 177 header->proto = *nexthdrp; in flowacct_port_info() 187 header->proto = *nexthdrp; in flowacct_port_info() 250 header->proto = ipha->ipha_protocol; in flowacct_extract_header() 252 if ((header->proto == IPPROTO_TCP) || in flowacct_extract_header() 253 (header->proto == IPPROTO_UDP) || in flowacct_extract_header() 254 (header->proto == IPPROTO_SCTP)) { in flowacct_extract_header() 274 header->proto = ip6h->ip6_nxt; in flowacct_extract_header() 297 (flow->proto == header->proto) && in flowacct_flow_present() 474 flow->proto = header->proto; in flowacct_update_flows_tbl() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | pppdump.c | 245 int nb, nl, dn, proto, rv; local 319 proto = r[0]; 320 if ((proto & 1) == 0) 321 proto = (proto << 8) + r[1]; 322 if (proto == PPP_CCP) { 324 } else if (proto == PPP_COMP) {
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | ip.c | 88 sendip(struct iodesc *d, void *pkt, size_t len, uint8_t proto) in sendip() argument 96 printf("sendip: proto: %x d=%p called.\n", proto, (void *)d); in sendip() 114 ip->ip_p = proto; /* char */ in sendip() 181 uint8_t proto) in readipv4() argument 231 ip->ip_p != proto) { in readipv4() 408 uint8_t proto) in readip() argument 416 ret = readipv4(d, pkt, payload, tleft, proto); in readip()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | labelsys.c | 793 tme->mlpe_mlp.mlp_ipp >= proto) in mlp_add_del() 796 if (tme->mlpe_mlp.mlp_ipp == proto && in mlp_add_del() 810 if (tme2->mlpe_mlp.mlp_ipp == proto) in mlp_add_del() 820 newent->mlpe_mlp.mlp_ipp = proto; in mlp_add_del() 883 proto, port, port, B_FALSE); in tsol_mlp_anon() 1288 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_next_port() 1301 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_next_port() 1339 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_mlp_port_type() 1359 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_mlp_port_type() 1385 tsol_mlp_findzone(uchar_t proto, uint16_t lport) in tsol_mlp_findzone() argument [all …]
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 154 uint8_t proto; in inet_pkt_hash() local 233 proto = iphp->ipha_protocol; in inet_pkt_hash() 278 &hdr_length, &proto, &frag)) in inet_pkt_hash() 320 switch (proto) { in inet_pkt_hash() 342 proto = ah->ah_nexthdr; in inet_pkt_hash()
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkupdate.c | 947 char * proto; member 967 slp->proto = strdup(sp->s_proto); in res_buildservicelist() 968 if ((slp->name == NULL) || (slp->proto == NULL)) { in res_buildservicelist() 970 if (slp->proto) free(slp->proto); in res_buildservicelist() 991 free(slp->proto); in res_destroyservicelist() 1081 cgetservbyport(u_int16_t port, const char *proto) { /*%< Host byte order. */ in cgetservbyport() argument 1090 if (strcasecmp(lp->proto, proto) == 0) { in cgetservbyport() 1101 serv.s_proto = lp->proto; in cgetservbyport() 1109 cgetprotobynumber(int proto) { /*%< Host byte order. */ in cgetprotobynumber() argument 1115 if (lp->port == proto) { /*%< Host byte order. */ in cgetprotobynumber() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | getservent_r.c | 37 getservbyname_r(const char *name, const char *proto, in getservbyname_r() argument 39 struct servent *se = getservbyname(name, proto); in getservbyname_r() 58 getservbyport_r(int port, const char *proto, in getservbyport_r() argument 60 struct servent *se = getservbyport(port, proto); in getservbyport_r()
|
H A D | gen_sv.c | 128 sv_byname(struct irs_sv *this, const char *name, const char *proto) { in sv_byname() argument 137 rval = (*sv->byname)(sv, name, proto); in sv_byname() 145 sv_byport(struct irs_sv *this, int port, const char *proto) { in sv_byport() argument 154 rval = (*sv->byport)(sv, port, proto); in sv_byport()
|
/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | getrpcport.c | 37 getrpcport(char *host, rpcprog_t prognum, rpcvers_t versnum, rpcprot_t proto) in getrpcport() argument 47 return (pmap_getport(&addr, prognum, versnum, proto)); in getrpcport()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | net.c | 433 proto = mdb_strtoull(optp); in sonode() 1055 netstat_header_v4(int proto) in netstat_header_v4() argument 1057 if (proto == IPPROTO_TCP) in netstat_header_v4() 1059 else if (proto == IPPROTO_UDP) in netstat_header_v4() 1061 else if (proto == IPPROTO_ICMP) in netstat_header_v4() 1069 netstat_header_v6(int proto) in netstat_header_v6() argument 1071 if (proto == IPPROTO_TCP) in netstat_header_v6() 1073 else if (proto == IPPROTO_UDP) in netstat_header_v6() 1075 else if (proto == IPPROTO_ICMP) in netstat_header_v6() 1107 netstat_header_v4(proto); in netstat_print_common() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 92 *proto[NRECURS], variable 654 if (lasterr != proto[nfp]) { in error() 655 lasterr = proto[nfp]; in error() 697 proto[nfp] = file; in pushenv() 716 proto[nfp] = qstrdup(file); in pushenv() 735 logerr(gettext(MSG_IGNINCLUDE), proto[nfp]); in pushenv() 748 if (proto[nfp]) in popenv() 749 free(proto[nfp]); in popenv() 766 logerr(gettext(MSG_INCOMPLETE), proto[nfp]); in popenv()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 311 char *cp, *proto; in servicename() local 329 proto = iconf->protocol; in servicename() 331 proto = "rpc/visible"; in servicename() 387 char *proto = iconf->protocol; in valid_basic_properties() local 403 proto += 4; /* skip 'rpc/' */ in valid_basic_properties() 441 char *proto = iconf->protocol; in valid_inetconfent() local 481 proto += 4; /* skip 'rpc/' */ in valid_inetconfent() 484 if (is_v6only(proto)) { in valid_inetconfent() 861 char *dstfile, *cp, *proto; in open_dstfile() local 884 proto = iconf->protocol; in open_dstfile() [all …]
|
/illumos-gate/usr/src/uts/common/sys/nxge/ |
H A D | nxge_flow.h | 114 uint8_t proto; member 122 uint8_t proto; /* should be 44 */ member 198 #define TCAM_IP_PROTO(key, mask, proto) { \ argument 199 key = proto; \
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_flow.h | 102 uint8_t proto; member 163 #define TCAM_IP_PROTO(key, mask, proto) { \ argument 164 key = proto; \
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/ |
H A D | ipadm.c | 740 uint_t proto = statep->sps_proto; in print_prop() local 746 &propsize, proto, flags); in print_prop() 749 proto, flags); in print_prop() 833 statep->sps_proto = proto; in show_property() 900 uint_t proto; in do_show_ifprop() local 950 state.sps_proto = proto; in do_show_ifprop() 969 state.sps_proto = proto; in do_show_ifprop() 997 uint_t proto; in set_ifprop() local 1084 uint_t proto; in do_show_prop() local 1119 state.sps_proto = proto; in do_show_prop() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet.c | 526 args->arg.nss.serv.proto, in _get_hostserv_inetnetdir_byname() 553 proto, ndbuf4switch->result, in _get_hostserv_inetnetdir_byname() 653 proto, ndbuf4switch->result, in _get_hostserv_inetnetdir_byname() 791 args->arg.nss.serv.proto, in _get_hostserv_inetnetdir_byname() 913 char *proto = in _get_hostserv_inetnetdir_byaddr() local 952 args->arg.nss.serv.proto, in _get_hostserv_inetnetdir_byaddr() 1402 arg.key.serv.proto = proto; in _switch_getservbyname_r() 1419 arg.key.serv.proto = proto; in _switch_getservbyport_r() 2329 i = strlen(proto) + 1; in ndaddr2srent() 2332 (void) memcpy(buffer, proto, i); in ndaddr2srent() [all …]
|