Searched defs:proto (Results 1 - 25 of 180) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libbc/libc/net/
H A Dgetrpcport.c35 getrpcport(char *host, int prognum, int versnum, int proto) argument
45 return (pmap_getport(&addr, prognum, versnum, proto));
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dgetrpcport.c37 getrpcport(char *host, rpcprog_t prognum, rpcvers_t versnum, rpcprot_t proto) argument
47 return (pmap_getport(&addr, prognum, versnum, proto));
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetprotoent.c62 getprotobynumber(int proto) argument
68 res = getprotobynumber_r(proto, b->result,
H A Dgetservent.c49 getservbyname(const char *nam, const char *proto) argument
55 res = getservbyname_r(nam, proto,
62 getservbyport(int port, const char *proto) argument
68 res = getservbyport_r(port, proto,
H A Dgetservbyname_r.c59 getservbyname_r(const char *name, const char *proto, struct servent *result, argument
73 nssin.arg.nss.serv.proto = proto;
93 getservbyport_r(int port, const char *proto, struct servent *result, argument
107 nssin.arg.nss.serv.proto = proto;
H A Dgetprotoent_r.c75 getprotobynumber_r(int proto, struct protoent *result, char *buffer, int buflen) argument
81 arg.key.number = proto;
133 struct protoent *proto = (struct protoent *)ent; local
161 proto->p_name = buffer;
167 /* Syntax error -- no proto number */
172 p++; /* Find the end of the proto number */
181 proto->p_proto = (int)strtol(numbuf, &numend, 10);
202 proto->p_aliases = 0;
206 proto->p_aliases = ptr;
210 proto
[all...]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetprotoent.c50 int proto; local
64 proto = (int)strtol(linep, NULL, 10);
65 return (proto == argp->key.number);
/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) argument
184 proto < 0 || proto >= IPPROTO_MAX) {
188 if (proto) {
189 if (proto >= (int)sizeof (proto_sw) / (int)sizeof (char *))
192 oproto = proto_sw[proto];
215 if (proto) {
/illumos-gate/usr/src/common/net/dhcp/
H A Dudp_sum.c41 uint8_t proto; /* protocol used */ member in struct:pseudo_udp
51 const struct in_addr *dst, uint8_t proto)
70 ck.proto = proto;
50 udp_chksum(struct udphdr *udph, const struct in_addr *src, const struct in_addr *dst, uint8_t proto) argument
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/
H A Dsharemgr_main.c47 extern void sub_command_help(char *proto);
127 run_command(char *command, int argc, char *argv[], char *proto, argument
149 cmdvec = sa_lookup(command, proto);
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetprotoent.c65 getprotobynumber(int proto) { argument
68 return (getprotobynumber_p(proto, net_data));
118 getprotobynumber_p(int proto, struct net_data *net_data) { argument
124 if (net_data->pr_last->p_proto == proto)
126 net_data->pr_last = (*pr->bynumber)(pr, proto);
H A Dgetprotoent_r.c60 getprotobynumber_r(int proto, struct protoent *pptr, PROTO_R_ARGS) { argument
61 struct protoent *pe = getprotobynumber(proto);
H A Dgetservent.c58 getservbyname(const char *name, const char *proto) { argument
61 return (getservbyname_p(name, proto, net_data));
65 getservbyport(int port, const char *proto) { argument
68 return (getservbyport_p(port, proto, net_data));
98 getservbyname_p(const char *name, const char *proto, argument
106 if (!proto || !strcmp(net_data->sv_last->s_proto, proto)) {
114 net_data->sv_last = (*sv->byname)(sv, name, proto);
121 getservbyport_p(int port, const char *proto, struct net_data *net_data) { argument
128 ( !proto ||
[all...]
H A Ddns_pr.c51 struct protoent proto; member in struct:pvt
112 if (pvt->proto.p_aliases)
113 free(pvt->proto.p_aliases);
125 struct protoent *proto; local
131 proto = parse_hes_list(this, hes_list);
133 return (proto);
140 struct protoent *proto; local
148 proto = parse_hes_list(this, hes_list);
150 return (proto);
218 pvt->proto
[all...]
H A Dgen_pr.c148 pr_bynumber(struct irs_pr *this, int proto) { argument
157 rval = (*pr->bynumber)(pr, proto);
H A Dgen_sv.c132 sv_byname(struct irs_sv *this, const char *name, const char *proto) { argument
141 rval = (*sv->byname)(sv, name, proto);
149 sv_byport(struct irs_sv *this, int port, const char *proto) { argument
158 rval = (*sv->byport)(sv, port, proto);
H A Dgetservent_r.c41 getservbyname_r(const char *name, const char *proto, argument
43 struct servent *se = getservbyname(name, proto);
62 getservbyport_r(int port, const char *proto, argument
64 struct servent *se = getservbyport(port, proto);
183 /* copy proto */
226 /* copy proto */
H A Dirp_pr.c56 struct protoent proto; member in struct:pvt
119 free_proto(&pvt->proto);
133 struct protoent *pr = &pvt->proto;
175 * struct protoent * pr_bynumber(struct irs_pr *this, int proto)
180 pr_bynumber(struct irs_pr *this, int proto) { argument
182 struct protoent *pr = &pvt->proto;
189 if (pr->p_name != NULL && proto == pr->p_proto) {
197 i = irs_irp_send_command(pvt->girpdata, "getprotobynumber %d", proto);
260 struct protoent *pr = &pvt->proto;
H A Dirp_sv.c176 * const char *proto)
181 sv_byname(struct irs_sv *this, const char *name, const char *proto) { argument
191 strcasecmp(proto, sv->s_proto) == 0) {
200 name, proto) != 0)
227 * const char *proto)
232 sv_byport(struct irs_sv *this, int port, const char *proto) { argument
242 strcasecmp(proto, sv->s_proto) == 0) {
251 ntohs((short)port), proto) != 0) {
H A Dlcl_sv.c171 sv_byname(struct irs_sv *this, const char *name, const char *proto) { argument
184 if ((strlen(name) + sizeof "/" + proto ? strlen(proto) : 0)
189 proto ? proto : "")) + 1;
190 if (proto != NULL) {
209 if (proto == NULL || strcmp(p->s_proto, proto) == 0)
216 sv_byport(struct irs_sv *this, int port, const char *proto) { argument
233 if (proto
[all...]
H A Ddns_sv.c138 sv_byname(struct irs_sv *this, const char *name, const char *proto) { argument
147 s = parse_hes_list(this, hes_list, proto);
153 sv_byport(struct irs_sv *this, int port, const char *proto) { argument
164 s = parse_hes_list(this, hes_list, proto);
185 parse_hes_list(struct irs_sv *this, char **hes_list, const char *proto) { argument
205 if (proto) {
206 proto_len = strlen(proto);
207 if (strncasecmp(++p, proto, proto_len) != 0)
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipsec.c113 uint8_t proto; local
188 proto = aligned_ah->ah_nexthdr;
193 if (proto == IPPROTO_HOPOPTS || proto == IPPROTO_DSTOPTS ||
194 proto == IPPROTO_ROUTING || proto == IPPROTO_FRAGMENT) {
195 (void) print_ipv6_extensions(flags, &data, &proto, &iplen,
200 switch (proto) {
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.h68 uint8_t proto; /* protocol field */ member in struct:ipgpc_packet_s
/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)
105 if ((keyp = argp->key.serv.proto) == NULL) {
158 const char *proto = argp->key.serv.proto; local
173 if (proto == 0) {
177 int len = strlen(name) + strlen(proto)
278 const char *proto = argp->key.serv.proto; local
[all...]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetzcent.c58 * Parse an MLP specification in port1-port2/proto or port/proto form.
67 struct protoent proto; local
95 else if (getprotobyname_r(fieldp, &proto, gbuf,
97 zone_mlp->mlp_ipp = proto.p_proto;

Completed in 77 milliseconds

12345678