Home
last modified time | relevance | path

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

123456789

/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_net_secure.c48 sa_family_t af; member
55 static int addrequal(sa_family_t af, inaddr_t *laddr, inaddr_t *mask,
114 tmp1->af = netaf; in get_secure_nets()
139 sa_family_t af; in check_secure_net_ti() local
146 af = ((struct sockaddr_storage *)caller->buf)->ss_family; in check_secure_net_ti()
147 if (af == AF_INET) { in check_secure_net_ti()
149 } else if (af == AF_INET6) { in check_secure_net_ti()
157 if (af == tmp->af && in check_secure_net_ti()
158 addrequal(af, &tmp->net, &tmp->mask, &addr)) { in check_secure_net_ti()
164 ypname, inet_ntop(af, in check_secure_net_ti()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/
H A D64.rv64a.out2 libdis_test+0x4: af 34 09 14 lr.d.aq s1,(s2)
4 libdis_test+0xc: af 39 0a 16 lr.d.aqrl s3,(s4)
6 libdis_test+0x14: af b4 34 1d sc.d.aq s1,s3,(s1)
8 libdis_test+0x1c: af b9 54 1f sc.d.aqrl s3,s5,(s1)
9 libdis_test+0x20: af b2 63 08 amoswap.d t0,t1,(t2)
11 libdis_test+0x28: af b3 ce 0b amoswap.d.rl t2,t3,(t4)
13 libdis_test+0x30: af b2 63 00 amoadd.d t0,t1,(t2)
15 libdis_test+0x38: af b3 ce 03 amoadd.d.rl t2,t3,(t4)
17 libdis_test+0x40: af b2 63 20 amoxor.d t0,t1,(t2)
19 libdis_test+0x48: af b3 ce 23 amoxor.d.rl t2,t3,(t4)
[all …]
H A Dtst.rv32a.out2 libdis_test+0x4: af 24 09 14 lr.w.aq s1,(s2)
4 libdis_test+0xc: af 29 0a 16 lr.w.aqrl s3,(s4)
6 libdis_test+0x14: af a4 34 1d sc.w.aq s1,s3,(s1)
8 libdis_test+0x1c: af a9 54 1f sc.w.aqrl s3,s5,(s1)
9 libdis_test+0x20: af a2 63 08 amoswap.w t0,t1,(t2)
11 libdis_test+0x28: af a3 ce 0b amoswap.w.rl t2,t3,(t4)
13 libdis_test+0x30: af a2 63 00 amoadd.w t0,t1,(t2)
15 libdis_test+0x38: af a3 ce 03 amoadd.w.rl t2,t3,(t4)
17 libdis_test+0x40: af a2 63 20 amoxor.w t0,t1,(t2)
19 libdis_test+0x48: af a3 ce 23 amoxor.w.rl t2,t3,(t4)
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c88 gethostbyname2(const char *name, int af) { in gethostbyname2() argument
91 return (gethostbyname2_p(name, af, net_data)); in gethostbyname2()
95 gethostbyaddr(const char *addr, int len, int af) { in gethostbyaddr() argument
98 return (gethostbyaddr_p(addr, len, af, net_data)); in gethostbyaddr()
139 gethostbyname2_p(const char *name, int af, struct net_data *net_data) { in gethostbyname2_p() argument
149 net_data->ho_last->h_addrtype == af) { in gethostbyname2_p()
159 if ((hp = fakeaddr(name, af, net_data)) != NULL) in gethostbyname2_p()
164 net_data->ho_last = (*ho->byname2)(ho, name, af); in gethostbyname2_p()
174 gethostbyaddr_p(const char *addr, int len, int af, struct net_data *net_data) { in gethostbyaddr_p() argument
187 net_data->ho_last = (*ho->byaddr)(ho, addr, len, af); in gethostbyaddr_p()
[all …]
H A Dirp_ho.c70 int af);
72 int len, int af);
165 ho_byname2(struct irs_ho *this, const char *name, int af) { in ho_byname2() argument
175 af == ho->h_addrtype) { in ho_byname2()
184 name, ADDR_T_STR(af)) != 0) in ho_byname2()
218 ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) { in ho_byaddr() argument
229 af == ho->h_addrtype && in ho_byaddr()
241 if (inet_ntop(af, addr, paddr, sizeof paddr) == NULL) { in ho_byaddr()
246 paddr, ADDR_T_STR(af)) != 0) { in ho_byaddr()
H A Dlcl_ho.c126 int af);
128 int len, int af);
214 ho_byname2(struct irs_ho *this, const char *name, int af) { in ho_byname2() argument
228 if (hp->h_addrtype != af) in ho_byname2()
249 ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) { in ho_byaddr() argument
258 if (af == AF_INET6 && len == IN6ADDRSZ && in ho_byaddr()
264 af = AF_INET; in ho_byaddr()
267 switch (af) { in ho_byaddr()
305 if (taf == af && tlen == len && in ho_byaddr()
324 int c, af, len, bufsiz, offset; in ho_next() local
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dmisc.c98 int numeric_addr(str, addr, af, len) in numeric_addr() argument
101 int *af;
110 if (af) *af = AF_INET6;
117 if (af) *af = AF_INET;
125 #define getipnodebyname(h,af,flags,err) gethostbyname2(h,af) argument
131 struct hostent *tcpd_gethostbyname(host, af) in tcpd_gethostbyname() argument
133 int af;
140 if (af == AF_INET6) { /* must be AF_INET6 */
146 if (hp != NULL || af == AF_INET) { /* found or must be AF_INET */
/illumos-gate/usr/src/cmd/getent/
H A Ddogetipnodes.c52 int af; in puthostent() local
60 af = AF_INET; in puthostent()
63 af = AF_INET6; in puthostent()
67 af = AF_INET; in puthostent()
70 res = inet_ntop(af, addr, obuf, sizeof (obuf)); in puthostent()
97 int af, len; in dogetipnodes() local
106 af = AF_INET6; in dogetipnodes()
110 af = AF_INET; in dogetipnodes()
114 if (inet_pton(af, *list, addr) == 1) in dogetipnodes()
115 hp = getipnodebyaddr(addr, len, af, &err_ret); in dogetipnodes()
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c40 kivoid_to_sock(int af, void *source, void *dest) in kivoid_to_sock() argument
48 if (af == AF_INET) { in kivoid_to_sock()
52 sin->sin_family = af; in kivoid_to_sock()
53 } else if (af == AF_INET6) { in kivoid_to_sock()
57 sin6->sin6_family = af; in kivoid_to_sock()
65 kdlifconfig(TIUSER *tiptr, int af, void *myIPaddr, void *mymask, in kdlifconfig() argument
79 if (af == AF_INET) { in kdlifconfig()
80 rc = kivoid_to_sock(af, mymask, &sin); in kdlifconfig()
87 rc = kivoid_to_sock(af, mymask, &sin6); in kdlifconfig()
98 if (af == AF_INET) { in kdlifconfig()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c247 int af; in set_sockaddr() local
264 af = AF_INET; in set_sockaddr()
272 af = AF_INET6; in set_sockaddr()
285 return (af); in set_sockaddr()
288 if (af == AF_INET) { in set_sockaddr()
305 return (af); in set_sockaddr()
318 int sd, af; in tcp_query() local
328 af = set_sockaddr(&dst_addr, &dst_addr_len, &next_hop, param); in tcp_query()
330 if ((sd = socket(af, SOCK_STREAM, param->proto)) == -1) in tcp_query()
335 if (af == AF_INET) { in tcp_query()
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c604 i_ipadm_if_pexists(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_if_pexists() argument
621 *exists = ((af == AF_INET && in i_ipadm_if_pexists()
623 (af == AF_INET6 && in i_ipadm_if_pexists()
672 i_ipadm_create_ipmp(ipadm_handle_t iph, char *ifname, sa_family_t af, in i_ipadm_create_ipmp() argument
683 status = i_ipadm_create_if(iph, ifname, af, ipadm_flags); in i_ipadm_create_ipmp()
691 if (af == AF_INET6) in i_ipadm_create_ipmp()
694 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6); in i_ipadm_create_ipmp()
707 (void) i_ipadm_delete_if(iph, ifname, af, in i_ipadm_create_ipmp()
722 i_ipadm_create_ipmp_peer(ipadm_handle_t iph, char *ifname, sa_family_t af) in i_ipadm_create_ipmp_peer() argument
729 assert(af == AF_INET || af == AF_INET6); in i_ipadm_create_ipmp_peer()
[all …]
H A Dipadm_addr.c268 sa_family_t af = AF_UNSPEC; in i_ipadm_get_static_addr_db() local
297 af = AF_INET; in i_ipadm_get_static_addr_db()
300 af = AF_INET6; in i_ipadm_get_static_addr_db()
304 assert(af != AF_UNSPEC); in i_ipadm_get_static_addr_db()
308 ipadm_set_addr(ipaddr, sname, af) != IPADM_SUCCESS) in i_ipadm_get_static_addr_db()
351 ipadm_add_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_add_aobjname() argument
362 larg.ia_family = af; in ipadm_add_aobjname()
374 ipadm_delete_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_delete_aobjname() argument
380 aobj.ipadm_af = af; in ipadm_delete_aobjname()
565 i_ipadm_name2atype(const char *name, sa_family_t *af, ipadm_addr_type_t *type) in i_ipadm_name2atype() argument
[all …]
H A Dlibipadm.c305 i_ipadm_get_index(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_get_index() argument
313 if (af == AF_INET) in i_ipadm_get_index()
341 i_ipadm_dad_wait(ipadm_handle_t handle, const char *lifname, sa_family_t af, in i_ipadm_dad_wait() argument
358 retv = i_ipadm_get_index(handle, lifname, af, &index); in i_ipadm_dad_wait()
379 retv = i_ipadm_get_flags(handle, lifname, af, &flags); in i_ipadm_dad_wait()
397 i_ipadm_set_flags(ipadm_handle_t iph, const char *lifname, sa_family_t af, in i_ipadm_set_flags() argument
406 ret = i_ipadm_get_flags(iph, lifname, af, &oflags); in i_ipadm_set_flags()
410 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6); in i_ipadm_set_flags()
418 rtsock = socket(PF_ROUTE, SOCK_RAW, af); in i_ipadm_set_flags()
435 ret = i_ipadm_dad_wait(iph, lifname, af, rtsock); in i_ipadm_set_flags()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_sadb.c98 uint32_t *dst, sa_family_t af, uint8_t protocol, ts_label_t *tsl) in ipsec_getassocbyconn() argument
209 if (!IPSA_ARE_ADDR_EQUAL(dst, retval->ipsa_dstaddr, af)) in ipsec_getassocbyconn()
213 if (!IPSA_ARE_ADDR_EQUAL(src, retval->ipsa_srcaddr, af) && in ipsec_getassocbyconn()
214 !IPSA_IS_ADDR_UNSPEC(retval->ipsa_srcaddr, af)) in ipsec_getassocbyconn()
379 if (IPSA_IS_ADDR_UNSPEC(candidate->ipsa_srcaddr, af) && in ipsec_getassocbyconn()
380 !IPSA_IS_ADDR_UNSPEC(retval->ipsa_srcaddr, af)) { in ipsec_getassocbyconn()
466 if (IPSA_IS_ADDR_UNSPEC(retval->ipsa_srcaddr, af)) { in ipsec_getassocbyconn()
477 IPSA_COPY_ADDR(retval->ipsa_srcaddr, src, af); in ipsec_getassocbyconn()
511 sa_family_t af) in ipsec_getassocbyspi() argument
531 if (!IPSA_ARE_ADDR_EQUAL(dst, retval->ipsa_dstaddr, af)) in ipsec_getassocbyspi()
[all …]
H A Dinet_ntop.c178 __inet_ntop(int af, const void *addr, char *buf, int addrlen, int compat) in __inet_ntop() argument
192 switch (af) { in __inet_ntop()
230 _inet_ntop(int af, const void *addr, char *buf, int addrlen) in _inet_ntop() argument
232 return (__inet_ntop(af, addr, buf, addrlen, 0)); in _inet_ntop()
240 inet_ntop(int af, const void *addr, char *buf, int addrlen) in inet_ntop() argument
253 return (__inet_ntop(af, addr, buf, addrlen, 1)); in inet_ntop()
267 __inet_pton(int af, char *inp, void *outp, int compat) in __inet_pton() argument
273 switch (af) { in __inet_pton()
412 _inet_pton(int af, char *inp, void *outp) in _inet_pton() argument
414 return (__inet_pton(af, inp, outp, 0)); in _inet_pton()
[all …]
H A Dip_rts.c77 #define RTS_MSG_SIZE(type, rtm_addrs, af, sacnt) \ argument
78 (rts_data_msg_size(rtm_addrs, af, sacnt) + rts_header_msg_size(type))
92 const in6_addr_t *setsrc, tsol_ire_gw_secattr_t *attrp, sa_family_t af);
113 rts_queue_input(mblk_t *mp, conn_t *o_connp, sa_family_t af, uint_t flags, in rts_queue_input() argument
136 (connp->conn_proto != af)) in rts_queue_input()
193 sa_family_t af = { 0 }; in ip_rts_rtmsg() local
209 af = AF_INET; in ip_rts_rtmsg()
210 mp = rts_alloc_msg(type, rtm_addrs, af, 0); in ip_rts_rtmsg()
218 af = AF_INET6; in ip_rts_rtmsg()
219 mp = rts_alloc_msg(type, rtm_addrs, af, 0); in ip_rts_rtmsg()
[all …]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgethostent.c104 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, in __str2hostent() argument
119 if (af != AF_INET && af != AF_INET6) { in __str2hostent()
161 if (af == AF_INET6) { in __str2hostent()
203 if (addrlen > ((af == AF_INET6) ? INET6_ADDRSTRLEN in __str2hostent()
207 if (af == AF_INET) { in __str2hostent()
225 if (inet_pton(af, addrbuf, &addrp6[i]) != 1) in __str2hostent()
268 if (af == AF_INET6) { in __str2hostent()
273 host->h_addrtype = af; in __str2hostent()
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprinthostmask.c30 int af; local
33 af = AF_INET;
35 af = AF_INET6;
37 af = 0;
38 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof(ipbuf)));
H A Dprintnat.c28 int bits, af; local
90 af = AF_INET;
92 af = AF_INET6;
94 af = 0;
99 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
109 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
113 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
149 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
156 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
159 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
[all …]
/illumos-gate/usr/src/lib/libvrrpadm/common/
H A Dlibvrrpadm.h191 #define addr_len(af) ((af) == AF_INET ? sizeof (in_addr_t): sizeof (in6_addr_t)) argument
193 #define VRRPADDR_UNSPECIFIED(af, addr) \ argument
194 (((af) == AF_INET6 && IN6_IS_ADDR_UNSPECIFIED( \
195 &(addr)->in6.sin6_addr)) || ((af) == AF_INET && \
198 #define VRRPADDR2STR(af, addr, abuf, size, append) { \ argument
201 if (VRRPADDR_UNSPECIFIED(af, addr)) { \
203 } else if ((af) == AF_INET) { \
204 (void) inet_ntop((af), &(addr)->in4.sin_addr, ap, \
207 (void) inet_ntop((af), &(addr)->in6.sin6_addr, ap, \
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dalias.c503 SM_FILE_T *af; local
523 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
528 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
543 fstat(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), &stb) < 0 ||
551 !lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), map->map_file,
560 (void) lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL),
563 (void) sm_io_close(af, SM_TIME_DEFAULT);
585 readaliases(map, af, !automatic, true);
599 (void) sm_io_close(af, SM_TIME_DEFAULT);
639 readaliases(map, af, announcestats, logstats) in readaliases() argument
[all …]
/illumos-gate/usr/src/lib/libadutils/common/
H A Dsrv_query.c361 sa_family_t af; in srv_parse() local
380 af = AF_INET; in srv_parse()
383 af = AF_INET6; in srv_parse()
393 ap = inet_ntop(af, ptr, abuf, sizeof (abuf)); in srv_parse()
395 (af == AF_INET) ? "A " : "AAAA", in srv_parse()
402 save_addr(cds, af, ptr, size); in srv_parse()
419 save_addr(ad_disc_cds_t *cds, sa_family_t af, uchar_t *addr, size_t alen) in save_addr() argument
423 new_ai = make_addrinfo(af, addr, alen); in save_addr()
450 make_addrinfo(sa_family_t af, uchar_t *addr, size_t alen) in make_addrinfo() argument
466 switch (af) { in make_addrinfo()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dforeachaddr.c138 get_lifconf (int af, int s, size_t *lenp, char *buf) in get_lifconf() argument
144 lifc.lifc_family = af; in get_lifconf()
196 int af; in foreach_localaddr() member
213 P.af = afs[afidx]; in foreach_localaddr()
220 KRB5_LOG (KRB5_INFO, "foreach_localaddr() trying af %d", P.af); in foreach_localaddr()
221 P.sock = socket (P.af, USE_TYPE, USE_PROTO); in foreach_localaddr()
228 P.lifnum.lifn_family = P.af; in foreach_localaddr()
247 code = get_lifconf (P.af, P.sock, &P.buf_size, P.buf); in foreach_localaddr()
/illumos-gate/usr/src/test/libc-tests/tests/regex/data/
H A Dbasic.dat165 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Qaddafi (0,15)(?,?)(10,…
166 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Mo'ammar Gadhafi (0,16)(?,?)(11…
167 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Kaddafi (0,15)(?,?)(10,…
168 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Qadhafi (0,15)(?,?)(10,…
169 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Gadafi (0,14)(?,?)(10,1…
170 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Mu'ammar Qadafi (0,15)(?,?)(11,…
171 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Moamar Gaddafi (0,14)(?,?)(9,11)
172 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Mu'ammar Qadhdhafi (0,18)(?,?)(…
173 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Khaddafi (0,16)(?,?)(11…
174 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Ghaddafy (0,16)(?,?)(11…
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dibft.c61 int af; member
386 iscsi_parse_ipaddr(uchar_t *source, char *dest, int *af) in iscsi_parse_ipaddr() argument
407 if (af != NULL) { in iscsi_parse_ipaddr()
408 *af = AF_INET; in iscsi_parse_ipaddr()
420 if (af != NULL) { in iscsi_parse_ipaddr()
421 *af = AF_INET6; in iscsi_parse_ipaddr()
433 iscsi_copy_ibft_ipaddr(uchar_t *source, void *dest, int *af) in iscsi_copy_ibft_ipaddr() argument
454 if (af != NULL) { in iscsi_copy_ibft_ipaddr()
455 *af = sin_family; in iscsi_copy_ibft_ipaddr()
468 int af = 0; in iscsi_parse_ibft_NIC() local
[all …]

123456789