/freebsd-11-stable/usr.sbin/autofs/ |
H A D | autounmountd.c | 67 struct automounted_fs *af; local 69 TAILQ_FOREACH(af, &automounted, af_next) { 70 if (af->af_fsid.val[0] == fsid.val[0] && 71 af->af_fsid.val[1] == fsid.val[1]) 72 return (af); 81 struct automounted_fs *af; local 83 af = calloc(sizeof(*af), 1); 84 if (af == NULL) 86 af 96 automounted_remove(struct automounted_fs *af) argument 106 struct automounted_fs *af, *tmpaf; local 185 struct automounted_fs *af, *tmpaf; local [all...] |
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_fork.c | 83 struct pthread_atfork *af; local 87 if ((af = malloc(sizeof(struct pthread_atfork))) == NULL) 91 af->prepare = prepare; 92 af->parent = parent; 93 af->child = child; 96 TAILQ_INSERT_TAIL(&_thr_atfork_list, af, qe); 107 struct pthread_atfork *af, *af1; local 114 TAILQ_FOREACH_SAFE(af, &_thr_atfork_list, qe, af1) { 115 if (__elf_phdr_match_addr(phdr_info, af->prepare) || 116 __elf_phdr_match_addr(phdr_info, af 138 struct pthread_atfork *af; local [all...] |
/freebsd-11-stable/lib/msun/tests/ |
H A D | nan_test.c | 52 float af[4]; local 62 bzero(&af[i], sizeof(float)); 67 af[0] = nanf(nan_format); 68 assert(isnan(af[0])); 69 af[1] = strtof(nan_str, &end); 71 assert(sscanf(nan_str, "%e", &af[2]) == 1); 72 assert(memcmp(&af[0], &af[1], sizeof(float)) == 0); 73 assert(memcmp(&af[1], &af[ [all...] |
/freebsd-11-stable/contrib/amd/fsinfo/ |
H A D | wr_atab.c | 52 write_amount_info(FILE *af, automount *ap, u_int sk) argument 66 fprintf(af, "%s type:=auto;fs:=${map};pref:=%s/\n", 70 errors += write_amount_info(af, ap2, sk); 91 fputs(key, af); 92 fprintf(af, " rhost:=%s", hostname); 93 fprintf(af, ";rfs:=%s", path); 95 fprintf(af, ";%s", ap->a_opts); 97 fputc('\n', af); 115 fputs(key, af); 153 fputs(" -type:=link", af); 259 FILE *af; local 296 FILE *af = pref_open(mount_pref, "direct.map", info_hdr, "direct mount"); local [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | netscope.h | 39 isc_netscope_pton(int af, char *scopename, void *addr, isc_uint32_t *zoneid);
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | getipnodebyname.c | 43 * lookup `name' (address family `af') in DNS and return a pointer 48 getipnodebyname (const char *name, int af, int flags, int *error_num) argument 53 tmp = gethostbyname2 (name, af); 55 if (af != AF_INET) {
|
H A D | getipnodebyaddr.c | 39 * lookup `src, len' (address family `af') in DNS and return a pointer 44 getipnodebyaddr (const void *src, size_t len, int af, int *error_num) argument 48 tmp = gethostbyaddr (src, len, af);
|
H A D | inet_pton.c | 41 inet_pton(int af, const char *csrc, void *dst) argument 50 switch (af) { 107 inet_pton(int af, const char *src, void *dst) argument 109 if (af != AF_INET) {
|
H A D | getnameinfo.c | 39 doit (int af, argument 49 if (inet_ntop (af, addr, host, hostlen) == NULL) 54 af); 64 } else if (inet_ntop (af, addr, host, hostlen) == NULL)
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | ip_addr.c | 20 if (addr->af == AF_INET) { 26 if (addr->af == AF_INET6) { 40 addr->af = AF_INET; 46 addr->af = AF_INET6;
|
H A D | ip_addr.h | 13 int af; /* AF_INET / AF_INET6 */ member in struct:hostapd_ip_addr
|
/freebsd-11-stable/sys/net/ |
H A D | if_enc.h | 37 uint8_t af; member in struct:ipsec_ctx_data
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | bindresvport.c | 55 int error, af; local 72 af = sa->sa_family; 75 af = sa->sa_family; 77 if (af == AF_INET) { 81 } else if (af == AF_INET6) { 89 sa->sa_family = af;
|
H A D | rresvport.c | 58 rresvport_af(int *alport, sa_family_t af) argument 69 switch (af) { 82 sa->sa_family = af; 84 s = socket(af, SOCK_STREAM, 0); 99 sa->sa_family = af;
|
H A D | port-tun.c | 212 u_int32_t *af; local 217 if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af))) 222 af = (u_int32_t *)ptr; 227 *af = AF_INET6; 231 *af = AF_INET; 240 af = (u_int32_t *)ptr; 241 if (*af == htonl(AF_INET6)) 242 *af = htonl(OPENBSD_AF_INET6); 244 *af = htonl(OPENBSD_AF_INET); 256 u_int32_t *af; local [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | addrmatch.c | 36 sa_family_t af; member in struct:xaddr 51 addr_unicast_masklen(int af) argument 53 switch (af) { 64 masklen_valid(int af, u_int masklen) argument 66 switch (af) { 92 xa->af = AF_INET; 98 xa->af = AF_INET6; 112 * Calculate a netmask of length 'l' for address family 'af' and 117 addr_netmask(int af, u_int l, struct xaddr *n) argument 121 if (masklen_valid(af, 260 addr_hostmask(int af, u_int l, struct xaddr *n) argument [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/net/ |
H A D | h_hostent.c | 57 const int af = h->h_length == NS_INADDRSZ ? AF_INET : AF_INET6; local 68 printf("%s%s", i == 0 ? "" : " ", inet_ntop(af, 115 int c, af, e, byaddr, len; local 120 af = AF_INET; 128 while ((c = getopt(argc, argv, "46af:r:t:")) != -1) { 131 af = AF_INET; 134 af = AF_INET6; 179 af = strchr(*argv, ':') ? AF_INET6 : AF_INET; 180 len = af == AF_INET ? NS_INADDRSZ : NS_IN6ADDRSZ; 181 if (inet_pton(af, *arg [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | is_ip_address.c | 29 u_short af, 54 if (AF_UNSPEC == af || AF_INET == af) 62 if (AF_UNSPEC == af || AF_INET6 == af) 27 is_ip_address( const char * host, u_short af, sockaddr_u * addr ) argument
|
/freebsd-11-stable/lib/libc/net/ |
H A D | gethostbynis.c | 52 _gethostbynis(const char *name, char *map, int af, struct hostent *he, argument 63 switch(af) { 102 switch (af) { 110 af = AF_INET6; 115 addrok = inet_pton(af, result, hed->host_addr); 124 he->h_addrtype = af; 165 _gethostbynisname_r(const char *name, int af, struct hostent *he, argument 170 switch (af) { 178 return (_gethostbynis(name, map, af, he, hed)); 182 _gethostbynisaddr_r(const void *addr, socklen_t len, int af, argument 207 int af; local 256 int af; local [all...] |
/freebsd-11-stable/lib/libc/resolv/ |
H A D | res_private.h | 9 int af; member in struct:__res_state_ext::sort_list
|
/freebsd-11-stable/usr.bin/netstat/ |
H A D | main.c | 230 static int af; /* address family */ variable 242 af = AF_UNSPEC; 253 af = AF_INET; 260 af = AF_INET6; 288 af = AF_INET; 291 af = AF_INET6; 295 af = PF_KEY; 299 af = AF_UNIX; 303 af = AF_NETGRAPH; 306 af [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_lb.c | 85 struct pf_poolhashkey *key, sa_family_t af) 89 switch (af) { 155 else if (r->af && r->af != pd->af) 159 else if (PF_MISMATCHAW(&src->addr, saddr, pd->af, 168 PF_MISMATCHAW(&dst->addr, daddr, pd->af, dst->neg, NULL, 171 else if (xdst != NULL && PF_MISMATCHAW(xdst, daddr, pd->af, 213 pf_get_sport(sa_family_t af, u_int8_t proto, struct pf_rule *r, argument 222 if (pf_map_addr(af, 84 pf_hash(struct pf_addr *inaddr, struct pf_addr *hash, struct pf_poolhashkey *key, sa_family_t af) argument 308 pf_map_addr(sa_family_t af, struct pf_rule *r, struct pf_addr *saddr, struct pf_addr *naddr, struct pf_addr *init_addr, struct pf_src_node **sn) argument 427 pf_hash(saddr, (struct pf_addr *)&hash, &rpool->key, af); local [all...] |
/freebsd-11-stable/contrib/unbound/ipset/ |
H A D | ipset.c | 61 static int add_to_ipset(struct mnl_socket *mnl, const char *setname, const void *ipaddr, int af) { argument 71 if (af != AF_INET && af != AF_INET6) { 81 nfg->nfgen_family = af; 89 mnl_attr_put(nlh, (af == AF_INET ? IPSET_ATTR_IPADDR_IPV4 : IPSET_ATTR_IPADDR_IPV6) 90 | NLA_F_NET_BYTEORDER, (af == AF_INET ? sizeof(struct in_addr) : sizeof(struct in6_addr)), ipaddr); 102 struct packed_rrset_data *d, const char* setname, int af, 115 if(af == AF_INET && rd_len != INET_SIZE) 117 if(af == AF_INET6 && rd_len != INET6_SIZE) 122 if(inet_ntop(af, rr_dat 101 ipset_add_rrset_data(struct ipset_env *ie, struct mnl_socket *mnl, struct packed_rrset_data *d, const char* setname, int af, const char* dname) argument 139 ipset_check_zones_for_rrset(struct module_env *env, struct ipset_env *ie, struct mnl_socket *mnl, struct ub_packed_rrset_key *rrset, const char *setname, int af) argument 185 int af; local [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/ |
H A D | netscope.c | 33 isc_netscope_pton(int af, char *scopename, void *addr, isc_uint32_t *zoneid) { argument 43 if (af != AF_INET6)
|
/freebsd-11-stable/sys/netinet/ |
H A D | ip_encap.h | 40 int af; member in struct:encaptab
|