Home
last modified time | relevance | path

Searched refs:addrs (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintpacket6.c11 u_short plen, *addrs; local
21 addrs = (u_short *)buf + 4;
25 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
26 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
27 ntohs(addrs[6]), ntohs(addrs[7]));
32 addrs += 8;
34 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
35 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
36 ntohs(addrs[6]), ntohs(addrs[7]));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhostaddr.c41 krb5_address **addrs; in krb5_os_hostaddr() local
83 addrs = malloc ((i+1) * sizeof(*addrs)); in krb5_os_hostaddr()
84 if (!addrs) in krb5_os_hostaddr()
88 addrs[j] = 0; in krb5_os_hostaddr()
114 if (!addrs[i]) { in krb5_os_hostaddr()
119 addrs[i]->addrtype = atype; in krb5_os_hostaddr()
121 addrs[i]->contents = malloc(addrs[i]->length); in krb5_os_hostaddr()
122 if (!addrs[i]->contents) { in krb5_os_hostaddr()
126 memcpy (addrs[i]->contents, ptr, addrs[i]->length); in krb5_os_hostaddr()
130 *ret_addrs = addrs; in krb5_os_hostaddr()
[all …]
H A Dchangepw.c76 struct addrinfo *a = addrlist->addrs[i].ai; in krb5_locate_kpasswd()
131 krb5_address **addrs; in kpasswd_sendto_msg_callback() local
133 code = krb5_os_localaddr(ctx->context, &addrs); in kpasswd_sendto_msg_callback()
137 local_kaddr.magic = addrs[0]->magic; in kpasswd_sendto_msg_callback()
138 local_kaddr.addrtype = addrs[0]->addrtype; in kpasswd_sendto_msg_callback()
139 local_kaddr.length = addrs[0]->length; in kpasswd_sendto_msg_callback()
140 local_kaddr.contents = malloc(addrs[0]->length); in kpasswd_sendto_msg_callback()
141 if (local_kaddr.contents == NULL && addrs[0]->length != 0) { in kpasswd_sendto_msg_callback()
143 krb5_free_addresses(ctx->context, addrs); in kpasswd_sendto_msg_callback()
146 memcpy(local_kaddr.contents, addrs[0]->contents, addrs[0]->length); in kpasswd_sendto_msg_callback()
[all …]
H A Dsendto_kdc.c276 dprint("%s%p=%A", i ? "," : "", (void*)a->addrs[i].ai, a->addrs[i].ai); in print_addrlist()
307 dest->addrs[dest->naddrs + i] = src->addrs[i]; in merge_addrlists()
308 src->addrs[i].ai = 0; in merge_addrlists()
309 src->addrs[i].freefn = 0; in merge_addrlists()
467 if (addrs.naddrs > 0) { in krb5_sendto_kdc2()
481 addrs.addrs[addr_used].ai->ai_socktype, in krb5_sendto_kdc2()
482 addrs.addrs[addr_used].ai->ai_family); in krb5_sendto_kdc2()
484 if (in_addrlist(addrs.addrs[addr_used].ai, &addrs3)) in krb5_sendto_kdc2()
496 sa = addrs.addrs[addr_used].ai->ai_addr; in krb5_sendto_kdc2()
1297 print_addrlist(addrs); in krb5int_sendto()
[all …]
H A Dlocate_kdc.c138 lp->addrs = newaddrs; in krb5int_grow_addrlist()
140 lp->addrs[i].ai = NULL; in krb5int_grow_addrlist()
141 lp->addrs[i].freefn = NULL; in krb5int_grow_addrlist()
142 lp->addrs[i].data = NULL; in krb5int_grow_addrlist()
156 if (lp->addrs[i].freefn) in krb5int_free_addrlist()
157 (lp->addrs[i].freefn)(lp->addrs[i].data); in krb5int_free_addrlist()
158 free (lp->addrs); in krb5int_free_addrlist()
159 lp->addrs = NULL; in krb5int_free_addrlist()
248 lp->addrs[lp->naddrs].ai = a; in add_addrinfo_to_list()
249 lp->addrs[lp->naddrs].freefn = freefn; in add_addrinfo_to_list()
[all …]
/illumos-gate/usr/src/lib/libsctp/common/
H A Dsctp.c111 if (addrs == NULL) { in sctp_getpaddrs()
117 *addrs = NULL; in sctp_getpaddrs()
139 opt.sopt_val = *addrs; in sctp_getpaddrs()
142 free(*addrs); in sctp_getpaddrs()
143 *addrs = NULL; in sctp_getpaddrs()
162 free(addrs); in sctp_freepaddrs()
172 if (addrs == NULL) { in sctp_getladdrs()
178 *addrs = NULL; in sctp_getladdrs()
203 free(*addrs); in sctp_getladdrs()
204 *addrs = NULL; in sctp_getladdrs()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/secflags/
H A DMakefile31 PROG += addrs-32 addrs-64 stacky
41 addrs-32: addrs.c
42 $(LINK.c) addrs.c -o $@ $(LDLIBS)
45 addrs-64: addrs.c
46 $(LINK64.c) addrs.c -o $@ $(LDLIBS64)
H A Dsecflags_aslr.sh69 check 32bit /opt/os-tests/tests/secflags/addrs-32
71 check 64bit /opt/os-tests/tests/secflags/addrs-64
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c1164 if (addrs != NULL)
1165 free_wordlist(addrs);
1441 addrs = NULL;
1621 addrs = NULL;
1646 if (addrs != NULL)
1848 for (; ; ++addrs)
1849 if ((addr & addrs->mask) == addrs->base)
1878 some_ip_ok(addrs) in some_ip_ok() argument
1881 for (; addrs != NULL; addrs = addrs->next) {
1947 *addrs = NULL;
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Drouting_events.c116 char *addrs, *if_name; in routing_events_v4() local
162 addrs = (char *)ifa + sizeof (*ifa); in routing_events_v4()
169 ifa->ifam_addrs, addrs)) == NULL) in routing_events_v4()
182 ifa->ifam_addrs, addrs)) == NULL) in routing_events_v4()
186 (RTA_IFP, ifa->ifam_addrs, addrs)) == NULL) in routing_events_v4()
206 printaddrs(ifa->ifam_addrs, addrs); in routing_events_v4()
231 char *addrs, *if_name; in routing_events_v6() local
278 addrs = (char *)ifa + sizeof (*ifa); in routing_events_v6()
285 ifa->ifam_addrs, addrs)) == NULL) in routing_events_v6()
306 ifa->ifam_addrs, addrs)) == NULL) in routing_events_v6()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c56 rrset_a addrs; member
168 addrs[i] = u[i].sin.sin_addr; in res_findzonecut()
220 union res_sockaddr_union *addrs, int naddrs) in satisfy() argument
228 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
229 addrs += x; in satisfy()
238 addrs += x; in satisfy()
256 *addrs++ = arr->addr; in add_addrs()
498 if (EMPTY(nsrr->addrs)) { in get_glue()
557 INIT_LIST(nsrr->addrs); in save_ns()
627 APPEND(nsrr->addrs, arr, link); in save_a()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchangepw.c216 krb5_address **addrs; local
218 krb5_os_localaddr(context, &addrs);
220 local_kaddr.magic = addrs[0]->magic;
221 local_kaddr.addrtype = addrs[0]->addrtype;
222 local_kaddr.length = addrs[0]->length;
223 local_kaddr.contents = malloc(addrs[0]->length);
224 memcpy(local_kaddr.contents, addrs[0]->contents,
225 addrs[0]->length);
227 krb5_free_addresses(context, addrs);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dfwd_tgt.c53 krb5_address **addrs = NULL; in krb5_fwd_tgt_creds() local
172 retval = krb5_os_hostaddr(context, rhost, &addrs); in krb5_fwd_tgt_creds()
186 addrs, &creds, &pcreds))) { in krb5_fwd_tgt_creds()
190 addrs, &creds, &pcreds))) in krb5_fwd_tgt_creds()
213 if (addrs) in krb5_fwd_tgt_creds()
214 krb5_free_addresses(context, addrs); in krb5_fwd_tgt_creds()
H A Dsend_tgs.c136 krb5_const_principal sname, krb5_address *const *addrs, in krb5_send_tgs() argument
143 sname, addrs, in krb5_send_tgs()
158 krb5_const_principal sname, krb5_address *const *addrs, in krb5_send_tgs2() argument
201 tgsreq.addresses = (krb5_address **) addrs; in krb5_send_tgs2()
H A Dgic_pwd.c521 krb5_flags options, krb5_address * const *addrs, krb5_enctype *ktypes, in krb5int_populate_gic_opt() argument
530 if (addrs) in krb5int_populate_gic_opt()
531 krb5_get_init_creds_opt_set_address_list(&opt, (krb5_address **) addrs); in krb5int_populate_gic_opt()
579 krb5_address *const *addrs, krb5_enctype *ktypes, in krb5_get_in_tkt_with_password() argument
605 options, addrs, ktypes, in krb5_get_in_tkt_with_password()
/illumos-gate/usr/src/cmd/mdb/common/modules/arp/
H A Darp.c91 uchar_t addrs[4 * ARP_MAX_ADDR_LEN]; in arphdr_cmd() member
154 if (mdb_vread(&arp.addrs, blen, addr + sizeof (arp.arh)) == -1) { in arphdr_cmd()
159 print_arp('s', arp.addrs, &arp.arh, ptype); in arphdr_cmd()
160 print_arp('t', arp.addrs + arp.arh.arh_hlen + arp.arh.arh_plen, in arphdr_cmd()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_bind.c314 sctp_bindx(sctp_t *sctp, const void *addrs, int addrcnt, int bindop) in sctp_bindx() argument
317 ASSERT(addrs != NULL); in sctp_bindx()
322 return (sctp_bind_add(sctp, addrs, addrcnt, B_FALSE, in sctp_bindx()
325 return (sctp_bind_del(sctp, addrs, addrcnt, B_FALSE)); in sctp_bindx()
335 sctp_bind_add(sctp_t *sctp, const void *addrs, uint32_t addrcnt, in sctp_bind_add() argument
394 err = sctp_get_addrlist(sctp, addrs, &addrcnt, &addrlist, in sctp_bind_add()
431 err = sctp_valid_addr_list(sctp, addrs, addrcnt, NULL, 0); in sctp_bind_add()
440 err = sctp_add_ip(sctp, addrs, addrcnt); in sctp_bind_add()
442 sctp_del_saddr_list(sctp, addrs, addrcnt, B_FALSE); in sctp_bind_add()
457 sctp_bind_del(sctp_t *sctp, const void *addrs, uint32_t addrcnt, in sctp_bind_del() argument
[all …]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c2265 count = addrs->n_cnt; in ndaddr2hent()
2283 count = addrs->n_cnt; in ndaddr2hent()
2395 count = addrs->h_cnt; in ndhostserv2hent()
2462 count = addrs->h_cnt; in ndhostserv2srent()
2936 if (*addrs == NULL) { in getbroadcastnets()
2952 free(*addrs); in getbroadcastnets()
2980 (*addrs)[i++] = a; in getbroadcastnets()
2986 (*addrs)[i++] = a; in getbroadcastnets()
2995 (*addrs)[i++] = a; in getbroadcastnets()
3005 (*addrs)[i++] = a; in getbroadcastnets()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c241 krb5_address **addrs; in process_chpw_request() local
243 krb5_os_localaddr(context, &addrs); in process_chpw_request()
245 local_kaddr.magic = addrs[0]->magic; in process_chpw_request()
246 local_kaddr.addrtype = addrs[0]->addrtype; in process_chpw_request()
247 local_kaddr.length = addrs[0]->length; in process_chpw_request()
248 if ((local_kaddr.contents = malloc(addrs[0]->length)) == 0) { in process_chpw_request()
257 (void) memcpy(local_kaddr.contents, addrs[0]->contents, in process_chpw_request()
258 addrs[0]->length); in process_chpw_request()
261 krb5_free_addresses(context, addrs); in process_chpw_request()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinet6_rthdr.c99 struct in6_addr *addrs; in inet6_rth_add() local
106 addrs = (struct in6_addr *)((char *)rthdr + sizeof (*rthdr)); in inet6_rth_add()
107 addrs[rthdr->ip6r0_segleft++] = *addr; in inet6_rth_add()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dnfs_cast.c63 struct addrs { struct
64 struct addrs *addr_next; argument
77 struct addrs *tr_addrs; argument
136 struct addrs *a, *prev_addr; in nfs_cast()
232 a = (struct addrs *)malloc(sizeof (*a)); in nfs_cast()
461 struct addrs *curr_addr; in nfs_cast()
512 struct addrs *a;
673 struct addrs *a, *tmpa = NULL;
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_kstats.c1354 hxge_mac_octet_to_u64(hxgep->mmac.addrs[0].addr); in hxge_mmac_stat_update()
1356 hxge_mac_octet_to_u64(hxgep->mmac.addrs[1].addr); in hxge_mmac_stat_update()
1358 hxge_mac_octet_to_u64(hxgep->mmac.addrs[2].addr); in hxge_mmac_stat_update()
1360 hxge_mac_octet_to_u64(hxgep->mmac.addrs[3].addr); in hxge_mmac_stat_update()
1362 hxge_mac_octet_to_u64(hxgep->mmac.addrs[4].addr); in hxge_mmac_stat_update()
1364 hxge_mac_octet_to_u64(hxgep->mmac.addrs[5].addr); in hxge_mmac_stat_update()
1366 hxge_mac_octet_to_u64(hxgep->mmac.addrs[6].addr); in hxge_mmac_stat_update()
1368 hxge_mac_octet_to_u64(hxgep->mmac.addrs[7].addr); in hxge_mmac_stat_update()
1370 hxge_mac_octet_to_u64(hxgep->mmac.addrs[8].addr); in hxge_mmac_stat_update()
1372 hxge_mac_octet_to_u64(hxgep->mmac.addrs[9].addr); in hxge_mmac_stat_update()
[all …]
/illumos-gate/usr/src/lib/libnsl/netdir/
H A Dnetdir.c161 struct nd_addrlist **addrs) in netdir_getbyname() argument
182 nssout.nd_alist = addrs; in netdir_getbyname()
195 nssout.nd_alist = addrs; in netdir_getbyname()
198 return (__classic_netdir_getbyname(tp, serv, addrs)); in netdir_getbyname()
212 struct nd_addrlist **addrs) in __classic_netdir_getbyname() argument
226 *addrs = nn; in __classic_netdir_getbyname()
244 *addrs = nn; in __classic_netdir_getbyname()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_time.c129 struct nd_addrlist *addrs; in get_server() local
139 if (! netdir_getbyname(nc, &hs, &addrs)) { in get_server()
140 for (i = 0; (i < (addrs->n_cnt)) && (num_ep < maxep); in get_server()
143 taddr2uaddr(nc, &(addrs->n_addrs[i])); in get_server()
146 netdir_free((char *)addrs, ND_ADDRLIST); in get_server()
/illumos-gate/usr/src/uts/intel/pcbe/
H A Dopteron_pcbe.c941 uint64_t *addrs[OPT_PCBE_EXT_NCOUNTERS]; in opt_pcbe_sample() local
957 addrs[pcfg->opt_picno] = tmp; in opt_pcbe_sample()
966 *addrs[i] += diff; in opt_pcbe_sample()
967 DTRACE_PROBE4(opt__pcbe__sample, int, i, uint64_t, *addrs[i], in opt_pcbe_sample()
969 cfgs[i]->opt_rawpic = *addrs[i] & MASK48; in opt_pcbe_sample()

123