Home
last modified time | relevance | path

Searched refs:af (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/NextBSD/usr.sbin/autofs/
HDautounmountd.c65 struct automounted_fs *af; in automounted_find() local
67 TAILQ_FOREACH(af, &automounted, af_next) { in automounted_find()
68 if (af->af_fsid.val[0] == fsid.val[0] && in automounted_find()
69 af->af_fsid.val[1] == fsid.val[1]) in automounted_find()
70 return (af); in automounted_find()
79 struct automounted_fs *af; in automounted_add() local
81 af = calloc(sizeof(*af), 1); in automounted_add()
82 if (af == NULL) in automounted_add()
84 af->af_mount_time = time(NULL); in automounted_add()
85 af->af_fsid = fsid; in automounted_add()
[all …]
/NextBSD/contrib/amd/fsinfo/
HDwr_atab.c56 write_amount_info(FILE *af, automount *ap, u_int sk) in write_amount_info() argument
70 fprintf(af, "%s type:=auto;fs:=${map};pref:=%s/\n", in write_amount_info()
74 errors += write_amount_info(af, ap2, sk); in write_amount_info()
95 fputs(key, af); in write_amount_info()
96 fprintf(af, " rhost:=%s", hostname); in write_amount_info()
97 fprintf(af, ";rfs:=%s", path); in write_amount_info()
99 fprintf(af, ";%s", ap->a_opts); in write_amount_info()
101 fputc('\n', af); in write_amount_info()
119 fputs(key, af); in write_amount_info()
157 fputs(" -type:=link", af); in write_amount_info()
[all …]
/NextBSD/lib/libthr/thread/
HDthr_fork.c82 struct pthread_atfork *af; in _pthread_atfork() local
86 if ((af = malloc(sizeof(struct pthread_atfork))) == NULL) in _pthread_atfork()
90 af->prepare = prepare; in _pthread_atfork()
91 af->parent = parent; in _pthread_atfork()
92 af->child = child; in _pthread_atfork()
95 TAILQ_INSERT_TAIL(&_thr_atfork_list, af, qe); in _pthread_atfork()
106 struct pthread_atfork *af, *af1; in __pthread_cxa_finalize() local
113 TAILQ_FOREACH_SAFE(af, &_thr_atfork_list, qe, af1) { in __pthread_cxa_finalize()
114 if (__elf_phdr_match_addr(phdr_info, af->prepare) || in __pthread_cxa_finalize()
115 __elf_phdr_match_addr(phdr_info, af->parent) || in __pthread_cxa_finalize()
[all …]
/NextBSD/crypto/openssh/
HDaddrmatch.c37 sa_family_t af; member
52 addr_unicast_masklen(int af) in addr_unicast_masklen() argument
54 switch (af) { in addr_unicast_masklen()
65 masklen_valid(int af, u_int masklen) in masklen_valid() argument
67 switch (af) { in masklen_valid()
93 xa->af = AF_INET; in addr_sa_to_xaddr()
99 xa->af = AF_INET6; in addr_sa_to_xaddr()
118 addr_netmask(int af, u_int l, struct xaddr *n) in addr_netmask() argument
122 if (masklen_valid(af, l) != 0 || n == NULL) in addr_netmask()
126 switch (af) { in addr_netmask()
[all …]
/NextBSD/lib/msun/tests/
HDnan_test.c51 float af[4]; in testnan() local
61 bzero(&af[i], sizeof(float)); in testnan()
67 af[0] = nanf(nan_format); in testnan()
68 assert(isnan(af[0])); in testnan()
69 af[1] = strtof(nan_str, &end); in testnan()
71 assert(sscanf(nan_str, "%e", &af[2]) == 1); in testnan()
72 assert(memcmp(&af[0], &af[1], sizeof(float)) == 0); in testnan()
73 assert(memcmp(&af[1], &af[2], sizeof(float)) == 0); in testnan()
76 af[3] = strtof("nan", NULL); in testnan()
77 assert(memcmp(&af[2], &af[3], sizeof(float)) == 0); in testnan()
/NextBSD/sys/netpfil/pf/
HDpf_lb.c86 struct pf_poolhashkey *key, sa_family_t af) in pf_hash() argument
90 switch (af) { in pf_hash()
156 else if (r->af && r->af != pd->af) in pf_match_translation()
160 else if (PF_MISMATCHAW(&src->addr, saddr, pd->af, in pf_match_translation()
169 PF_MISMATCHAW(&dst->addr, daddr, pd->af, dst->neg, NULL, in pf_match_translation()
172 else if (xdst != NULL && PF_MISMATCHAW(xdst, daddr, pd->af, in pf_match_translation()
214 pf_get_sport(sa_family_t af, u_int8_t proto, struct pf_rule *r, in pf_get_sport() argument
223 if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn)) in pf_get_sport()
232 key.af = af; in pf_get_sport()
235 PF_ACPY(&key.addr[0], daddr, key.af); in pf_get_sport()
[all …]
HDpf.c167 sa_family_t af; member
374 pf_addr_cmp(struct pf_addr *a, struct pf_addr *b, sa_family_t af) in pf_addr_cmp() argument
377 switch (af) { in pf_addr_cmp()
407 panic("%s: unknown address family %u", __func__, af); in pf_addr_cmp()
425 pf_hashsrc(struct pf_addr *addr, sa_family_t af) in pf_hashsrc() argument
429 switch (af) { in pf_hashsrc()
439 panic("%s: unknown address family %u", __func__, af); in pf_hashsrc()
461 pf_addrcpy(struct pf_addr *dst, struct pf_addr *src, sa_family_t af) in pf_addrcpy() argument
463 switch (af) { in pf_addrcpy()
550 pfoe->af = (*state)->key[PF_SK_WIRE]->af; in pf_src_connlimit()
[all …]
HDpf_if.c322 pfi_match_addr(struct pfi_dynaddr *dyn, struct pf_addr *a, sa_family_t af) in pfi_match_addr() argument
324 switch (af) { in pfi_match_addr()
357 pfi_dynaddr_setup(struct pf_addr_wrap *aw, sa_family_t af) in pfi_dynaddr_setup() argument
385 if (af == AF_INET && dyn->pfid_net == 32) in pfi_dynaddr_setup()
411 dyn->pfid_af = af; in pfi_dynaddr_setup()
502 int net2, af; in pfi_instance_add() local
508 af = ia->ifa_addr->sa_family; in pfi_instance_add()
509 if (af != AF_INET && af != AF_INET6) in pfi_instance_add()
519 (flags & PFI_AFLAG_NOALIAS) && (af == AF_INET)) in pfi_instance_add()
521 if ((flags & PFI_AFLAG_BROADCAST) && af == AF_INET6) in pfi_instance_add()
[all …]
/NextBSD/sys/nlm/
HDnlm_prot_impl.c563 struct nlm_async_lock *af = (struct nlm_async_lock *) arg; in nlm_lock_callback() local
567 " cookie %d:%d\n", af, af->af_host->nh_caller_name, in nlm_lock_callback()
568 af->af_host->nh_sysid, ng_sysid(&af->af_granted.cookie), in nlm_lock_callback()
569 ng_cookie(&af->af_granted.cookie)); in nlm_lock_callback()
581 if (af->af_host->nh_vers == NLM_VERS4) { in nlm_lock_callback()
582 nlm4_granted_msg_4(&af->af_granted, in nlm_lock_callback()
583 NULL, af->af_rpc, &ext, nlm_zero_tv); in nlm_lock_callback()
589 granted.cookie = af->af_granted.cookie; in nlm_lock_callback()
590 granted.exclusive = af->af_granted.exclusive; in nlm_lock_callback()
592 af->af_granted.alock.caller_name; in nlm_lock_callback()
[all …]
/NextBSD/usr.bin/netstat/
HDmain.c230 static int af; /* address family */ variable
242 af = AF_UNSPEC; in main()
253 af = AF_INET; in main()
260 af = AF_INET6; in main()
288 af = AF_INET; in main()
291 af = AF_INET6; in main()
295 af = PF_KEY; in main()
299 af = AF_UNIX; in main()
303 af = AF_NETGRAPH; in main()
306 af = AF_LINK; in main()
[all …]
/NextBSD/lib/libc/net/
HDgethostbynis.c52 _gethostbynis(const char *name, char *map, int af, struct hostent *he, in _gethostbynis() argument
63 switch(af) { in _gethostbynis()
101 switch (af) { in _gethostbynis()
109 af = AF_INET6; in _gethostbynis()
114 addrok = inet_pton(af, result, hed->host_addr); in _gethostbynis()
123 he->h_addrtype = af; in _gethostbynis()
164 _gethostbynisname_r(const char *name, int af, struct hostent *he, in _gethostbynisname_r() argument
169 switch (af) { in _gethostbynisname_r()
177 return (_gethostbynis(name, map, af, he, hed)); in _gethostbynisname_r()
181 _gethostbynisaddr_r(const void *addr, socklen_t len, int af, in _gethostbynisaddr_r() argument
[all …]
HDgethostnamadr.c432 fakeaddr(const char *name, int af, struct hostent *hp, char *buf, in fakeaddr() argument
444 if ((af != AF_INET || in fakeaddr()
446 inet_pton(af, name, hed->host_addr) != 1) { in fakeaddr()
452 if (af == AF_INET && (statp->options & RES_USE_INET6) != 0U) { in fakeaddr()
455 af = AF_INET6; in fakeaddr()
457 he.h_addrtype = af; in fakeaddr()
458 switch(af) { in fakeaddr()
509 gethostbyname2_r(const char *name, int af, struct hostent *he, char *buffer, in gethostbyname2_r() argument
519 return (gethostbyname_internal(name, af, he, buffer, buflen, result, in gethostbyname2_r()
524 gethostbyname_internal(const char *name, int af, struct hostent *hp, char *buf, in gethostbyname_internal() argument
[all …]
HDgethostbyht.c96 int af, len; in gethostent_p() local
117 af = AF_INET6; in gethostent_p()
123 af = AF_INET6; in gethostent_p()
126 af = AF_INET; in gethostent_p()
136 he->h_addrtype = af; in gethostent_p()
224 int af; in _ht_gethostbyname() local
235 af = va_arg(ap, int); in _ht_gethostbyname()
253 if (he.h_addrtype != af) in _ht_gethostbyname()
289 int af; in _ht_gethostbyaddr() local
300 af = va_arg(ap, int); in _ht_gethostbyaddr()
[all …]
/NextBSD/contrib/netbsd-tests/lib/libc/net/
HDh_hostent.c57 const int af = h->h_length == NS_INADDRSZ ? AF_INET : AF_INET6; in phostent() local
68 printf("%s%s", i == 0 ? "" : " ", inet_ntop(af, in phostent()
115 int c, af, e, byaddr, len; in main() local
120 af = AF_INET; in main()
131 af = AF_INET; in main()
134 af = AF_INET6; in main()
179 af = strchr(*argv, ':') ? AF_INET6 : AF_INET; in main()
180 len = af == AF_INET ? NS_INADDRSZ : NS_IN6ADDRSZ; in main()
181 if (inet_pton(af, *argv, &addr) == -1) in main()
184 geta(gethostbyaddr((const char *)&addr, len, af)); in main()
[all …]
/NextBSD/crypto/openssh/openbsd-compat/
HDport-tun.c211 u_int32_t *af; in sys_tun_infilter() local
215 if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af))) in sys_tun_infilter()
220 af = (u_int32_t *)ptr; in sys_tun_infilter()
225 *af = AF_INET6; in sys_tun_infilter()
229 *af = AF_INET; in sys_tun_infilter()
238 af = (u_int32_t *)ptr; in sys_tun_infilter()
239 if (*af == htonl(AF_INET6)) in sys_tun_infilter()
240 *af = htonl(OPENBSD_AF_INET6); in sys_tun_infilter()
242 *af = htonl(OPENBSD_AF_INET); in sys_tun_infilter()
253 u_int32_t *af; in sys_tun_outfilter() local
[all …]
HDbindresvport.c55 int error, af; in bindresvport_sa() local
71 af = sa->sa_family; in bindresvport_sa()
74 af = sa->sa_family; in bindresvport_sa()
76 if (af == AF_INET) { in bindresvport_sa()
80 } else if (af == AF_INET6) { in bindresvport_sa()
88 sa->sa_family = af; in bindresvport_sa()
HDrresvport.c58 rresvport_af(int *alport, sa_family_t af) in rresvport_af() argument
69 switch (af) { in rresvport_af()
82 sa->sa_family = af; in rresvport_af()
84 s = socket(af, SOCK_STREAM, 0); in rresvport_af()
99 sa->sa_family = af; in rresvport_af()
/NextBSD/usr.sbin/mtest/
HDmtest.c291 int af, error; in parse_cmd_args() local
297 af = AF_UNSPEC; in parse_cmd_args()
317 af = res->ai_family; in parse_cmd_args()
327 hints.ai_family = af; in parse_cmd_args()
333 if (af != res->ai_family) { in parse_cmd_args()
346 af2sock(const int af, int s, int s6) in af2sock() argument
350 if (af == AF_INET) in af2sock()
354 if (af == AF_INET6) in af2sock()
361 af2socklen(const int af) in af2socklen() argument
365 if (af == AF_INET) in af2socklen()
[all …]
/NextBSD/sbin/pfctl/
HDpf_print_state.c56 print_addr(struct pf_addr_wrap *addr, sa_family_t af, int verbose) in print_addr() argument
90 if (inet_ntop(af, &addr->v.a.addr, buf, sizeof(buf)) == NULL) in print_addr()
94 if (inet_ntop(af, &addr->v.a.mask, buf, sizeof(buf)) == NULL) in print_addr()
107 if (inet_ntop(af, &addr->v.a.addr, buf, in print_addr()
129 int bits = unmask(&addr->v.a.mask, af); in print_addr()
131 if (bits != (af == AF_INET ? 32 : 128)) in print_addr()
137 print_name(struct pf_addr *addr, sa_family_t af) in print_name() argument
142 switch (af) { in print_name()
170 print_host(struct pf_addr *addr, u_int16_t port, sa_family_t af, int opts) in print_host() argument
173 print_name(addr, af); in print_host()
[all …]
HDpfctl_parser.c211 geticmptypebynumber(u_int8_t type, sa_family_t af) in geticmptypebynumber() argument
215 if (af != AF_INET6) { in geticmptypebynumber()
232 geticmptypebyname(char *w, sa_family_t af) in geticmptypebyname() argument
236 if (af != AF_INET6) { in geticmptypebyname()
253 geticmpcodebynumber(u_int8_t type, u_int8_t code, sa_family_t af) in geticmpcodebynumber() argument
257 if (af != AF_INET6) { in geticmpcodebynumber()
276 geticmpcodebyname(u_long type, char *w, sa_family_t af) in geticmpcodebyname() argument
280 if (af != AF_INET6) { in geticmpcodebyname()
368 sa_family_t af, u_int8_t proto, int verbose, int numeric) in print_fromto() argument
385 print_addr(&src->addr, af, verbose); in print_fromto()
[all …]
HDparse.y396 sa_family_t af; member
468 %type <v.i> no dir af fragcache optimizer
780 anchorrule : ANCHOR anchorname dir quick interface af proto fromto
831 r.af = $6;
893 decide_address_family($8.src.host, &r.af);
894 decide_address_family($8.dst.host, &r.af);
903 | NATANCHOR string interface af proto fromto rtable {
913 r.af = $4;
916 decide_address_family($6.src.host, &r.af);
917 decide_address_family($6.dst.host, &r.af);
[all …]
/NextBSD/sys/netinet/
HDip_encap.c149 if (ep->af != AF_INET) in encap4_input()
239 if (ep->af != AF_INET6) in encap6_input()
299 encap_attach(int af, int proto, const struct sockaddr *sp, in encap_attach() argument
310 if (af != sp->sa_family || af != dp->sa_family) in encap_attach()
316 if (ep->af != af) in encap_attach()
340 ep->af = af; in encap_attach()
355 encap_attach_func(int af, int proto, in encap_attach_func() argument
370 ep->af = af; in encap_attach_func()
415 if (sp->sa_family != ep->af || dp->sa_family != ep->af) in mask_match()
/NextBSD/sys/net/
HDif_loop.c204 u_int32_t af; in looutput() local
229 bcopy(dst->sa_data, &af, sizeof(af)); in looutput()
231 af = dst->sa_family; in looutput()
234 switch (af) { in looutput()
260 printf("looutput: af=%d unexpected\n", af); in looutput()
265 return (if_simloop(ifp, m, af, 0)); in looutput()
279 if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen) in if_simloop() argument
309 u_int32_t af1 = af; in if_simloop()
339 switch (af) { in if_simloop()
352 printf("if_simloop: can't handle af=%d\n", af); in if_simloop()
/NextBSD/sys/netgraph/
HDng_gif.c104 static void ng_gif_input(struct ifnet *ifp, struct mbuf **mp, int af);
105 static void ng_gif_input_orphan(struct ifnet *ifp, struct mbuf *m, int af);
110 static void ng_gif_input2(node_p node, struct mbuf **mp, int af);
111 static int ng_gif_glue_af(struct mbuf **mp, int af);
168 ng_gif_input(struct ifnet *ifp, struct mbuf **mp, int af) in ng_gif_input() argument
176 ng_gif_input2(node, mp, af); in ng_gif_input()
184 ng_gif_input_orphan(struct ifnet *ifp, struct mbuf *m, int af) in ng_gif_input_orphan() argument
194 ng_gif_input2(node, &m, af); in ng_gif_input_orphan()
204 ng_gif_input2(node_p node, struct mbuf **mp, int af) in ng_gif_input2() argument
210 if ((error = ng_gif_glue_af(mp, af)) != 0) in ng_gif_input2()
[all …]
/NextBSD/tools/regression/priv/
HDpriv_netinet_ipsec.c56 struct test *test, int af) in priv_netinet_ipsec_policy_bypass_setup_af() argument
64 switch (af) { in priv_netinet_ipsec_policy_bypass_setup_af()
111 struct test *test, int af) in priv_netinet_ipsec_policy_entrust_setup_af() argument
119 switch (af) { in priv_netinet_ipsec_policy_entrust_setup_af()
196 int af) in priv_netinet_ipsec_policy_bypass_af() argument
200 switch (af) { in priv_netinet_ipsec_policy_bypass_af()
249 int af) in priv_netinet_ipsec_policy_entrust_af() argument
253 switch (af) { in priv_netinet_ipsec_policy_entrust_af()

12345678910>>...12