Home
last modified time | relevance | path

Searched refs:aip (Results 1 – 20 of 20) sorted by relevance

/freebsd/usr.sbin/apm/
H A Dapm.c128 apm_getinfo(int fd, apm_info_t aip) in apm_getinfo() argument
130 if (ioctl(fd, APMIO_GETINFO, aip) == -1) in apm_getinfo()
191 print_all_info(int fd, apm_info_t aip, int bioscall_available) in print_all_info() argument
197 printf("APM version: %d.%d\n", aip->ai_major, aip->ai_minor); in print_all_info()
198 printf("APM Management: %s\n", aip->ai_status ? "Enabled" : "Disabled"); in print_all_info()
200 if (aip->ai_acline == APM_UNKNOWN) in print_all_info()
202 else if (aip->ai_acline > 2) in print_all_info()
203 printf("invalid value (0x%x)\n", aip->ai_acline); in print_all_info()
205 printf("%s\n", line_msg[aip->ai_acline]); in print_all_info()
207 print_batt_stat(aip->ai_batt_stat); in print_all_info()
[all …]
/freebsd/contrib/wireguard-tools/
H A Dipc-freebsd.h122 struct wgallowedip *aip = NULL; in kernel_get_device() local
177 aip = calloc(1, sizeof(*aip)); in kernel_get_device()
178 if (!aip) in kernel_get_device()
187 aip->family = AF_INET; in kernel_get_device()
188 aip->cidr = number; in kernel_get_device()
189 memcpy(&aip->ip4, binary, sizeof(aip->ip4)); in kernel_get_device()
197 aip->family = AF_INET6; in kernel_get_device()
198 aip->cidr = number; in kernel_get_device()
199 memcpy(&aip->ip6, binary, sizeof(aip->ip6)); in kernel_get_device()
203 peer->first_allowedip = aip; in kernel_get_device()
[all …]
/freebsd/sbin/ipf/iplang/
H A Diplang_y.y636 aniphdr_t *aip, *oip = canip; in new_header() local
639 aip = (aniphdr_t *)calloc(1, sizeof(*aip)); in new_header()
640 *aniptail = aip; in new_header()
641 aniptail = &aip->ah_next; in new_header()
642 aip->ah_p = type; in new_header()
643 aip->ah_prev = oip; in new_header()
644 canip = aip; in new_header()
663 for (aip = aniphead; aip; aip = aip->ah_next) { in new_header()
664 aip->ah_len += sz; in new_header()
665 if (aip->ah_p == IPPROTO_IP) in new_header()
[all …]
/freebsd/sys/x86/acpica/
H A Dacpi_apm.c132 acpi_capm_get_info(apm_info_t aip) in acpi_capm_get_info() argument
137 aip->ai_infoversion = 1; in acpi_capm_get_info()
138 aip->ai_major = 1; in acpi_capm_get_info()
139 aip->ai_minor = 2; in acpi_capm_get_info()
140 aip->ai_status = apm_active; in acpi_capm_get_info()
141 aip->ai_capabilities= 0xff00; /* unknown */ in acpi_capm_get_info()
144 aip->ai_acline = 1; /* no info -- on-line best guess */ in acpi_capm_get_info()
146 aip->ai_acline = acline; /* on/off */ in acpi_capm_get_info()
149 aip->ai_batt_stat = 0; /* "high" old I/F has no unknown state */ in acpi_capm_get_info()
150 aip->ai_batt_life = 255; /* N/A, not -1 */ in acpi_capm_get_info()
[all …]
/freebsd/tools/regression/netinet/ipmulticast/
H A Dipmulticast.c361 struct addrinfo *aip; in main() local
442 aip = NULL; in main()
443 error = getaddrinfo(basegroup_str, NULL, &aih, &aip); in main()
449 memcpy(&basegroup, aip->ai_addr, aip->ai_addrlen); in main()
454 freeaddrinfo(aip); in main()
470 aip = NULL; in main()
471 error = getaddrinfo(ifaddr_str, NULL, &aih, &aip); in main()
477 memcpy(&ifaddr, aip->ai_addr, aip->ai_addrlen); in main()
482 freeaddrinfo(aip); in main()
534 aip = NULL; in main()
[all …]
/freebsd/tests/sys/netinet/
H A Dip6_v4mapped_test.c220 struct addrinfo ai_hint, *aip; in ATF_TC_BODY() local
258 error = getaddrinfo("127.0.0.1", NULL, &ai_hint, &aip); in ATF_TC_BODY()
260 memcpy(&su_mapped.saddr6, aip->ai_addr, sizeof(su_mapped.saddr6)); in ATF_TC_BODY()
262 freeaddrinfo(aip); in ATF_TC_BODY()
329 struct addrinfo ai_hint, *aip; in ATF_TC_BODY() local
344 error = getaddrinfo("127.0.0.1", NULL, &ai_hint, &aip); in ATF_TC_BODY()
346 memcpy(&sin, aip->ai_addr, sizeof(sin)); in ATF_TC_BODY()
364 error = getaddrinfo("127.0.0.1", NULL, &ai_hint, &aip); in ATF_TC_BODY()
366 memcpy(&sin6, aip->ai_addr, sizeof(sin6)); in ATF_TC_BODY()
368 freeaddrinfo(aip); in ATF_TC_BODY()
/freebsd/usr.sbin/nfscbd/
H A Dnfscbd.c105 struct addrinfo *aip, hints; in main() local
130 error = getaddrinfo(myname, NULL, &hints, &aip); in main()
132 if (aip->ai_canonname != NULL && in main()
133 (cp = strchr(aip->ai_canonname, '.')) != NULL in main()
135 cp = aip->ai_canonname; in main()
138 freeaddrinfo(aip); in main()
186 freeaddrinfo(aip); in main()
/freebsd/sys/dev/wg/
H A Dif_wg.c519 struct wg_aip *aip; in wg_aip_add() local
522 aip = malloc(sizeof(*aip), M_WG, M_WAITOK | M_ZERO); in wg_aip_add()
523 aip->a_peer = peer; in wg_aip_add()
524 aip->a_af = af; in wg_aip_add()
531 aip->a_addr.in = *(const struct in_addr *)addr; in wg_aip_add()
532 aip->a_mask.ip = htonl(~((1LL << (32 - cidr)) - 1) & 0xffffffff); in wg_aip_add()
533 aip->a_addr.ip &= aip->a_mask.ip; in wg_aip_add()
534 aip->a_addr.length = aip->a_mask.length = offsetof(struct aip_addr, in) + sizeof(struct in_addr); in wg_aip_add()
541 aip->a_addr.in6 = *(const struct in6_addr *)addr; in wg_aip_add()
542 in6_prefixlen2mask(&aip->a_mask.in6, cidr); in wg_aip_add()
[all …]
/freebsd/sbin/umount/
H A Dumount.c574 struct addrinfo *aip; in namematch() local
580 aip = nfshost_ai; in namematch()
581 while (aip != NULL) { in namematch()
582 if (sacmp(ai->ai_addr, aip->ai_addr) == 0) in namematch()
584 aip = aip->ai_next; in namematch()
/freebsd/sys/security/audit/
H A Daudit_pipe.c692 struct auditpipe_ioctl_preselect *aip; in audit_pipe_ioctl() local
807 aip = (struct auditpipe_ioctl_preselect *)data; in audit_pipe_ioctl()
808 error = audit_pipe_preselect_get(ap, aip->aip_auid, in audit_pipe_ioctl()
809 &aip->aip_mask); in audit_pipe_ioctl()
813 aip = (struct auditpipe_ioctl_preselect *)data; in audit_pipe_ioctl()
814 audit_pipe_preselect_set(ap, aip->aip_auid, aip->aip_mask); in audit_pipe_ioctl()
/freebsd/sys/ufs/ffs/
H A Dffs_softdep.c6039 struct allocindir *aip; in newallocindir() local
6055 aip = (struct allocindir *)newblk; in newallocindir()
6056 aip->ai_offset = ptrno; in newallocindir()
6057 aip->ai_oldblkno = oldblkno; in newallocindir()
6058 aip->ai_lbn = lbn; in newallocindir()
6067 return (aip); in newallocindir()
6086 struct allocindir *aip; in softdep_setup_allocindir_page() local
6102 aip = newallocindir(ip, ptrno, newblkno, oldblkno, lbn); in softdep_setup_allocindir_page()
6111 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_block.nb_list); in softdep_setup_allocindir_page()
6112 freefrag = setup_allocindir_phase2(bp, ip, inodedep, aip, lb in softdep_setup_allocindir_page()
6131 struct allocindir *aip; softdep_setup_allocindir_meta() local
6154 struct allocindir *aip; indirdep_complete() local
6255 setup_allocindir_phase2(struct buf * bp,struct inode * ip,struct inodedep * inodedep,struct allocindir * aip,ufs_lbn_t lbn) setup_allocindir_phase2() argument
6308 allocindir_merge(struct allocindir * aip,struct allocindir * oldaip) allocindir_merge() argument
6439 struct allocindir *aip, *aipn; trunc_indirdep() local
8129 struct allocindir *aip; handle_workitem_freeblocks() local
8522 cancel_allocindir(struct allocindir * aip,struct buf * bp,struct freeblks * freeblks,int trunc) cancel_allocindir() argument
10813 struct allocindir *aip; cancel_indirdep() local
11502 handle_allocindir_partdone(struct allocindir * aip) handle_allocindir_partdone() argument
11944 struct allocindir *aip; handle_written_indirdep() local
12966 struct allocindir *aip; softdep_sync_buf() local
14333 struct allocindir *aip; softdep_count_dependencies() local
14867 allocindir_print(struct allocindir * aip) allocindir_print() argument
[all...]
/freebsd/usr.sbin/nfsuserd/
H A Dnfsuserd.c118 struct addrinfo *aip, hints; in main() local
149 error = getaddrinfo(hostname, NULL, &hints, &aip); in main()
151 if (aip->ai_canonname != NULL && in main()
152 (cp = strchr(aip->ai_canonname, '.')) != NULL in main()
157 freeaddrinfo(aip); in main()
449 freeaddrinfo(aip); in main()
/freebsd/usr.sbin/rpc.tlsservd/
H A Drpc.tlsservd.c854 struct addrinfo *aip, hints; in rpctls_getdnsname() local
866 error = getaddrinfo(hostname, NULL, &hints, &aip); in rpctls_getdnsname()
868 if (aip->ai_canonname != NULL && in rpctls_getdnsname()
869 (cp = strchr(aip->ai_canonname, '.')) != in rpctls_getdnsname()
876 freeaddrinfo(aip); in rpctls_getdnsname()
/freebsd/usr.sbin/nfsd/
H A Dnfsd.c1038 struct addrinfo *aip, hints; in start_server() local
1051 error = getaddrinfo(hostname, NULL, &hints, &aip); in start_server()
1053 if (aip->ai_canonname != NULL && in start_server()
1054 (cp = strchr(aip->ai_canonname, '.')) != in start_server()
1057 "nfs@%s", aip->ai_canonname); in start_server()
1058 freeaddrinfo(aip); in start_server()
/freebsd/sbin/nvmecontrol/
H A Dfabrics.c151 const char *address, const char *port, struct addrinfo **aip, in tcp_qpair_params() argument
178 *aip = ai; in tcp_qpair_params()
/freebsd/contrib/telnet/telnet/
H A Dcommands.c2150 switch_af(struct addrinfo **aip) in switch_af() argument
2155 ai = *aip; in switch_af()
2160 *aip = ai; in switch_af()
2161 if (*aip != NULL) { in switch_af()
/freebsd/lib/libc/net/
H A Dgetaddrinfo.c676 struct addrinfo *ai, **aip; in reorder() local
716 for (i = 0, aip = &sentinel->ai_next; i < n; i++) { in reorder()
717 *aip = aio[i].aio_ai; in reorder()
718 aip = &aio[i].aio_ai->ai_next; in reorder()
720 *aip = NULL; in reorder()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_ptrace_wait.c2427 AuxInfo ai[100], *aip; in ATF_TC_BODY() local
2461 for (aip = ai; aip->a_type != AT_NULL; aip++) in ATF_TC_BODY()
2463 (long long int)aip->a_type, (long long int)aip->a_v); in ATF_TC_BODY()
/freebsd/sys/netinet/
H A Dsctp_pcb.c6190 *aip; in sctp_load_addresses_from_init() local
6194 aip = (struct sctp_adaptation_layer_indication *)phdr; in sctp_load_addresses_from_init()
6195 if (aip) { in sctp_load_addresses_from_init()
6196 stcb->asoc.peers_adaptation = ntohl(aip->indication); in sctp_load_addresses_from_init()
/freebsd/contrib/tzdata/
H A Dasia2932 # https://ais.mn/files/aip/eAIP/2023-12-25/html/eSUP/ZM-eSUP-23-04-en-MN.html