Home
last modified time | relevance | path

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

123456789

/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_net_secure.c50 sa_family_t af; member
116 tmp1->af = netaf; in get_secure_nets()
141 sa_family_t af; in check_secure_net_ti() local
149 if (af == AF_INET) { in check_secure_net_ti()
159 if (af == tmp->af && in check_secure_net_ti()
166 ypname, inet_ntop(af, in check_secure_net_ti()
182 if (*af == AF_INET) { in string2inaddr()
191 *af = stringaf; in string2inaddr()
192 if (inet_pton(*af, string, (*af == AF_INET6) ? (void *)&addr->in6 : in string2inaddr()
204 if (af == AF_INET6) { in addrequal()
[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)
13 libdis_test+0x30: af b2 63 00 amoadd.d t0,t1,(t2)
17 libdis_test+0x40: af b2 63 20 amoxor.d t0,t1,(t2)
21 libdis_test+0x50: af b2 63 60 amoand.d t0,t1,(t2)
25 libdis_test+0x60: af b2 63 40 amoor.d t0,t1,(t2)
29 libdis_test+0x70: af b2 63 80 amomin.d t0,t1,(t2)
[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)
13 libdis_test+0x30: af a2 63 00 amoadd.w t0,t1,(t2)
17 libdis_test+0x40: af a2 63 20 amoxor.w t0,t1,(t2)
21 libdis_test+0x50: af a2 63 60 amoand.w t0,t1,(t2)
25 libdis_test+0x60: af a2 63 40 amoor.w t0,t1,(t2)
29 libdis_test+0x70: af a2 63 80 amomin.w t0,t1,(t2)
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dmisc.c99 int numeric_addr(str, addr, af, len) in numeric_addr() argument
102 int *af;
111 if (af) *af = AF_INET6;
118 if (af) *af = AF_INET;
126 #define getipnodebyname(h,af,flags,err) gethostbyname2(h,af) argument
132 struct hostent *tcpd_gethostbyname(host, af) in tcpd_gethostbyname() argument
134 int af;
141 if (af == AF_INET6) { /* must be AF_INET6 */
147 if (hp != NULL || af == AF_INET) { /* found or must be AF_INET */
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c375 switch (af) {
396 if ((af == AF_INET6 &&
398 (af == AF_INET6 &&
400 (af == AF_INET)) {
403 if (af == AF_INET6)
416 if (af == AF_INET6)
933 he->h_addrtype = af;
1023 if ((af != AF_INET ||
1034 af = AF_INET6;
1037 switch(af) {
[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);
228 if (hp->h_addrtype != af) in ho_byname2()
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
380 af = AF_INET6; in ho_next()
386 af = AF_INET6; in ho_next()
389 af = AF_INET; in ho_next()
[all …]
/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.c48 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()
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()
99 rc = kivoid_to_sock(af, myIPaddr, &sin); in kdlifconfig()
120 if (af == AF_INET && mybraddr != NULL) { 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
335 if (af == AF_INET) { in tcp_query()
654 if ((recv_sd = socket(af, SOCK_RAW, (af == AF_INET) ? IPPROTO_ICMP : in udp_query()
760 int sd, af; in ping_query() local
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c691 if (af == AF_INET6) in i_ipadm_create_ipmp()
729 assert(af == AF_INET || af == AF_INET6); in i_ipadm_create_ipmp_peer()
797 sa_family_t af; in i_ipadm_slifname() local
876 af = AF_INET; in i_ipadm_slifname()
878 af = AF_INET6; in i_ipadm_slifname()
944 if (af == AF_INET) in i_ipadm_plumb_if()
1564 if ((af == AF_INET || af == AF_UNSPEC) && in ipadm_create_if()
1571 if (af == AF_INET6 || af == AF_UNSPEC) { in ipadm_create_if()
1709 if (af == AF_INET || af == AF_UNSPEC) in ipadm_delete_if()
1711 if (af == AF_INET6 || af == AF_UNSPEC) in ipadm_delete_if()
[all …]
H A Dipadm_addr.c296 af = AF_INET; in i_ipadm_get_static_addr_db()
299 af = AF_INET6; in i_ipadm_get_static_addr_db()
569 *af = AF_INET; in i_ipadm_name2atype()
572 *af = AF_INET6; in i_ipadm_name2atype()
575 *af = AF_INET; in i_ipadm_name2atype()
578 *af = AF_INET6; in i_ipadm_name2atype()
607 sa_family_t af; in i_ipadm_nvl2ainfo_common() local
729 sa_family_t af; in i_ipadm_nvl2ainfo_persist() local
1603 sa_family_t af; in ipadm_get_addrprop() local
1676 sa_family_t af; in ipadm_set_addrprop() local
[all …]
H A Dlibipadm.c313 if (af == AF_INET) in i_ipadm_get_index()
406 ret = i_ipadm_get_flags(iph, lifname, af, &oflags); 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()
454 if (af == AF_INET) in i_ipadm_get_flags()
543 switch (af) { in ipadm_if_enabled()
606 sa_family_t af = AF_UNSPEC; in i_ipadm_init_addrobj() local
620 } else if (i_ipadm_name2atype(name, &af, &atype)) { in i_ipadm_init_addrobj()
697 uint16_t af = afs[nelem]; in i_ipadm_init_ifobj() local
699 assert(af == AF_INET || af == AF_INET6); in i_ipadm_init_ifobj()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_sadb.c511 sa_family_t af) in ipsec_getassocbyspi() argument
579 sa_family_t af; in ipsec_outbound_sa() local
608 af = AF_INET; in ipsec_outbound_sa()
623 af = AF_INET6; in ipsec_outbound_sa()
671 sa_family_t af; in ipsec_inbound_ah_sa() local
719 af = AF_INET6; in ipsec_inbound_ah_sa()
724 af = AF_INET; in ipsec_inbound_ah_sa()
796 sa_family_t af; in ipsec_inbound_esp_sa() local
854 af = AF_INET6; in ipsec_inbound_esp_sa()
862 af = AF_INET; in ipsec_inbound_esp_sa()
[all …]
H A Dinet_ntop.c192 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()
422 inet_pton(int af, char *inp, void *outp) in inet_pton() argument
[all …]
H A Dip_rts.c209 af = AF_INET; in ip_rts_rtmsg()
218 af = AF_INET6; in ip_rts_rtmsg()
295 sa_family_t af; in ip_rts_request_common() local
374 switch (af) { in ip_rts_request_common()
413 ASSERT(af == AF_INET || af == AF_INET6); in ip_rts_request_common()
513 switch (af) { in ip_rts_request_common()
616 switch (af) { in ip_rts_request_common()
701 switch (af) { in ip_rts_request_common()
1321 ASSERT(af == AF_INET || af == AF_INET6); in rts_rtmget()
1322 switch (af) { in rts_rtmget()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprinthostmask.c32 int af; local
35 af = AF_INET;
37 af = AF_INET6;
39 af = 0;
40 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof(ipbuf)));
H A Dprintnat.c30 int bits, af; local
92 af = AF_INET;
94 af = AF_INET6;
96 af = 0;
101 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
111 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
115 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
151 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
158 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
161 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof (ipbuf)));
[all …]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgethostent.c106 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, in __str2hostent() argument
121 if (af != AF_INET && af != AF_INET6) { in __str2hostent()
163 if (af == AF_INET6) { in __str2hostent()
205 if (addrlen > ((af == AF_INET6) ? INET6_ADDRSTRLEN in __str2hostent()
209 if (af == AF_INET) { in __str2hostent()
227 if (inet_pton(af, addrbuf, &addrp6[i]) != 1) in __str2hostent()
270 if (af == AF_INET6) { in __str2hostent()
275 host->h_addrtype = af; in __str2hostent()
/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
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
641 SM_FILE_T *af;
672 if (sm_io_fgets(af, SM_TIME_DEFAULT, p,
680 else if (!sm_io_eof(af))
775 c = sm_io_getc(af, SM_TIME_DEFAULT);
776 if (!sm_io_eof(af))
[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/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()
395 (af == AF_INET) ? "A " : "AAAA", in srv_parse()
402 save_addr(cds, af, ptr, size); in srv_parse()
423 new_ai = make_addrinfo(af, addr, alen); in save_addr()
466 switch (af) { in make_addrinfo()
474 sin->sin_family = af; in make_addrinfo()
486 sin6->sin6_family = af; in make_addrinfo()
495 ai->ai_family = af; in make_addrinfo()
[all …]
/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)
175 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Ghadafi (0,15)(?,?)(11,…
177 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muamar Kaddafi (0,14)(?,?)(9,11)
180 E M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Moammar Khadafy (0,15)(?,?)(11,…
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dibft.c61 int af; member
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()
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
486 boot_property.boot_nic.sin_family = af; in iscsi_parse_ibft_NIC()
516 int af = 0; in iscsi_parse_ibft_target() local
[all …]

123456789