/netbsd-6-1-5-RELEASE/external/bsd/libbind/dist/irs/ |
H A D | dns_pr.c | 53 struct protoent proto; member in struct:pvt 114 if (pvt->proto.p_aliases) 115 free(pvt->proto.p_aliases); 127 struct protoent *proto; local 133 proto = parse_hes_list(this, hes_list); 135 return (proto); 142 struct protoent *proto; local 150 proto = parse_hes_list(this, hes_list); 152 return (proto); 220 pvt->proto [all...] |
H A D | getservent.c | 60 getservbyname(const char *name, const char *proto) { argument 63 return (getservbyname_p(name, proto, net_data)); 67 getservbyport(int port, const char *proto) { argument 70 return (getservbyport_p(port, proto, net_data)); 100 getservbyname_p(const char *name, const char *proto, argument 108 if (!proto || !strcmp(net_data->sv_last->s_proto, proto)) { 116 net_data->sv_last = (*sv->byname)(sv, name, proto); 123 getservbyport_p(int port, const char *proto, struct net_data *net_data) { argument 130 ( !proto || [all...] |
H A D | nis_pr.c | 68 struct protoent proto; member in struct:pvt 128 if (pvt->proto.p_aliases) 129 free(pvt->proto.p_aliases); 240 pvt->proto.p_name = p; 249 pvt->proto.p_proto = atoi(p); 255 if ((n + 1) >= m || !pvt->proto.p_aliases) { 257 t = realloc(pvt->proto.p_aliases, 263 pvt->proto.p_aliases = t; 265 pvt->proto.p_aliases[n++] = p; 271 if (!pvt->proto [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/wire-test/ |
H A D | wire-test.c | 61 char *testhost, *proto, *tmp_buf; local 97 fprintf(stderr, "NFS vers/proto failed: no such hostname \"%s\"\n", testhost); 108 proto = "udp"; 110 fprintf(stderr, "\ttesting vers=%d, proto=\"%s\" -> ", nv, proto); 111 ret = get_nfs_version(testhost, ip, nv, proto); 118 proto = "tcp"; 120 fprintf(stderr, "\ttesting vers=%d, proto=\"%s\" -> ", nv, proto); 121 ret = get_nfs_version(testhost, ip, nv, proto); [all...] |
/netbsd-6-1-5-RELEASE/dist/ipf/rules/ |
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 65 #pass in quick proto udp from any to w.x.y.z/32 port = 53 keep state group 202 66 #pass out quick on ppp0 proto udp from a.b.c.d/32 to any port = 53 keep state 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 ud [all...] |
/netbsd-6-1-5-RELEASE/lib/libc/net/ |
H A D | getservbyname_r.c | 56 const char *name, const char *proto) 72 if (proto != NULL) { 73 protolen = strlen(proto); 84 memcpy(buf + 2 + namelen, proto, protolen); 98 if (memcmp(data + 3, proto, protolen + 1)) 130 if (proto == NULL || strcmp(sp->s_proto, proto) == 0) 138 getservbyname_r(const char *name, const char *proto, struct servent *sp, argument 142 /* proto may be NULL */ 145 sp = _servent_getbyname(sd, sp, name, proto); 55 _servent_getbyname(struct servent_data *sd, struct servent *sp, const char *name, const char *proto) argument [all...] |
H A D | getprotobynumber_r.c | 52 getprotobynumber_r(int proto, struct protoent *pr, struct protoent_data *pd) 58 if (p->p_proto == proto)
|
H A D | protoent.h | 36 struct protoent proto; member in struct:protoent_data
|
/netbsd-6-1-5-RELEASE/tests/lib/libc/net/ |
H A D | h_protoent.c | 42 printf("name=%s, proto=%d, aliases=", 53 "\t%s -p <proto>\n" 63 const char *proto = NULL, *name = NULL; local 72 proto = optarg; 79 if (proto && name) 81 if (proto) { 82 if ((prp = getprotobynumber(atoi(proto))) != NULL)
|
H A D | h_servent.c | 42 printf("name=%s, port=%d, proto=%s, aliases=", 53 "\t%s -p <port> [-P <proto>]\n" 54 "\t%s -n <name> [-P <proto>]\n", getprogname(), getprogname(), 63 const char *port = NULL, *proto = NULL, *name = NULL; local 75 proto = optarg; 85 if ((svp = getservbyport(htons(atoi(port)), proto)) != NULL) 90 if ((svp = getservbyname(name, proto)) != NULL)
|
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/setkey/ |
H A D | scriptdump.pl | 23 ($proto, $ipsecmode, $spi, $reqid) = ($1, $2, $3, $4); 35 print "$mode $src $dst $proto $spi"; 40 if ($proto eq 'esp') { 43 } elsif ($proto eq 'ah') {
|
/netbsd-6-1-5-RELEASE/gnu/usr.bin/groff/font/ |
H A D | Makefile.tty | 17 $(FONTS): R.proto 30 DESC: DESC.proto
|
/netbsd-6-1-5-RELEASE/usr.sbin/npf/npftest/libnpftest/ |
H A D | npf_mbuf_subr.c | 31 mbuf_construct_ether(int proto) argument 42 m1 = mbuf_construct(proto); 49 mbuf_fill_proto(int proto, void *l4data) argument 54 switch (proto) { 71 mbuf_construct(int proto) argument 85 iphdr->ip_p = proto; 89 size += mbuf_fill_proto(proto, l4data); 99 mbuf_construct6(int proto) argument 110 ip6->ip6_nxt = proto; 115 size += mbuf_fill_proto(proto, l4dat [all...] |
/netbsd-6-1-5-RELEASE/share/examples/npf/ |
H A D | soho_gw-npf.conf | 41 pass stateful in final family inet proto tcp to $ext_v4 port ssh \ 43 pass stateful in final proto tcp to $ext_addrs port $services_tcp 44 pass stateful in final proto udp to $ext_addrs port $services_udp 47 pass stateful in final proto tcp to $ext_addrs port 49151-65535 49 pass stateful in final proto udp to $ext_addrs port 33434-33600
|
/netbsd-6-1-5-RELEASE/usr.bin/netstat/ |
H A D | ipsec.c | 146 int proto; local 150 for (proto = 0; proto < histmax; proto++) { 151 if (hist[proto] <= 0) 158 if (p->val == proto) 162 printf("\t\t%s: %llu\n", p->str, (unsigned long long)hist[proto]); 164 printf("\t\t#%ld: %llu\n", (long)proto, 165 (unsigned long long)hist[proto]);
|
/netbsd-6-1-5-RELEASE/lib/libc/rpc/ |
H A D | bindresvport.c | 91 int proto, portrange, portlow; local 110 proto = IPPROTO_IP; 119 proto = IPPROTO_IPV6; 137 error = getsockopt(sd, proto, portrange, &old, &oldlen); 140 error = setsockopt(sd, proto, portrange, &portlow, 152 if (setsockopt(sd, proto, portrange, &old,
|
/netbsd-6-1-5-RELEASE/tests/fs/common/nfsrpc/ |
H A D | bindresvport.c | 88 int proto, portrange, portlow; local 107 proto = IPPROTO_IP; 116 proto = IPPROTO_IPV6; 134 error = getsockopt(sd, proto, portrange, &old, &oldlen); 137 error = setsockopt(sd, proto, portrange, &portlow, 149 if (setsockopt(sd, proto, portrange, &old,
|
/netbsd-6-1-5-RELEASE/sys/net/npf/ |
H A D | npf_state.c | 97 const int proto = npc->npc_proto; local 106 switch (proto) { 142 const int proto = npc->npc_proto; local 147 switch (proto) { 171 npf_state_etime(const npf_state_t *nst, const int proto) argument 176 switch (proto) {
|
/netbsd-6-1-5-RELEASE/dist/pf/libexec/tftp-proxy/ |
H A D | filter.c | 64 struct sockaddr *dst, u_int16_t d_port, u_int8_t proto) 66 if (!src || !dst || !d_port || !proto) { 71 if (prepare_rule(id, PF_RULESET_FILTER, src, dst, d_port, proto) == -1) 84 u_int16_t nat_range_high, u_int8_t proto) 86 if (!src || !dst || !d_port || !nat || !nat_range_low || !proto || 92 if (prepare_rule(id, PF_RULESET_NAT, src, dst, d_port, proto) == -1) 117 u_int16_t d_port, struct sockaddr *rdr, u_int16_t rdr_port, u_int8_t proto) 119 if (!src || !dst || !d_port || !rdr || !rdr_port || !proto || 125 if (prepare_rule(id, PF_RULESET_RDR, src, dst, d_port, proto) == -1) 232 struct sockaddr *dst, u_int16_t d_port, u_int8_t proto) 63 add_filter(u_int32_t id, u_int8_t dir, struct sockaddr *src, struct sockaddr *dst, u_int16_t d_port, u_int8_t proto) argument 82 add_nat(u_int32_t id, struct sockaddr *src, struct sockaddr *dst, u_int16_t d_port, struct sockaddr *nat, u_int16_t nat_range_low, u_int16_t nat_range_high, u_int8_t proto) argument 116 add_rdr(u_int32_t id, struct sockaddr *src, struct sockaddr *dst, u_int16_t d_port, struct sockaddr *rdr, u_int16_t rdr_port, u_int8_t proto) argument 231 prepare_rule(u_int32_t id, int rs_num, struct sockaddr *src, struct sockaddr *dst, u_int16_t d_port, u_int8_t proto) argument 329 server_lookup(struct sockaddr *client, struct sockaddr *proxy, struct sockaddr *server, u_int8_t proto) argument 345 server_lookup4(struct sockaddr_in *client, struct sockaddr_in *proxy, struct sockaddr_in *server, u_int8_t proto) argument 373 server_lookup6(struct sockaddr_in6 *client, struct sockaddr_in6 *proxy, struct sockaddr_in6 *server, u_int8_t proto) argument [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsck_ext2fs/ |
H A D | pass2.c | 230 struct ext2fs_direct proto; local 258 proto.e2d_ino = h2fs32(idesc->id_number); 259 proto.e2d_namlen = 1; 262 proto.e2d_type = EXT2_FT_DIR; 264 proto.e2d_type = 0; 265 (void)strlcpy(proto.e2d_name, ".", sizeof(proto.e2d_name)); 266 entrysize = EXT2FS_DIRSIZ(proto.e2d_namlen); 273 proto.e2d_reclen = dirp->e2d_reclen; 274 memcpy(dirp, &proto, (size_ [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/ |
H A D | pass2.c | 330 struct direct proto; local 367 proto.d_ino = iswap32(idesc->id_number); 369 proto.d_type = DT_DIR; 371 proto.d_type = 0; 372 proto.d_namlen = 1; 373 (void)strlcpy(proto.d_name, ".", sizeof(proto.d_name)); 381 tmp = proto.d_type; 382 proto.d_type = proto [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/services_mkdb/ |
H A D | output_cdb.c | 64 cdb_add(StringList *sl, size_t port, const char *proto, size_t *cnt, argument 73 protolen = strlen(proto); 75 errx(1, "Invalid protocol ``%s'', entry skipped", proto); 91 memcpy(data_iter, proto, protolen + 1); 108 memcpy(key + 4, proto, protolen); 111 warnx("duplicate service: `%zu/%s'", port, proto); 124 memcpy(key + 2 + len, proto, protolen); 127 warnx("duplicate service: `%s/%s'", sl->sl_str[i], proto);
|
/netbsd-6-1-5-RELEASE/sbin/fsck_lfs/ |
H A D | pass2.c | 209 struct direct proto; local 234 proto.d_ino = idesc->id_number; 235 proto.d_type = DT_DIR; 236 proto.d_namlen = 1; 237 (void) strlcpy(proto.d_name, ".", sizeof(proto.d_name)); 238 entrysize = DIRSIZ(0, &proto, 0); 245 proto.d_reclen = dirp->d_reclen; 246 memcpy(dirp, &proto, (size_t) entrysize); 251 proto [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libssp/ssp/ |
H A D | ssp.h.in | 54 # define __SSP_REDIRECT(name, proto, alias) \ 55 name proto __asm__ (__SSP_ASMNAME (#alias))
|
/netbsd-6-1-5-RELEASE/external/mit/expat/dist/amiga/ |
H A D | launch.c | 25 #include <proto/exec.h>
|