Home
last modified time | relevance | path

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

12345678

/titanic_41/usr/src/cmd/ypcmd/
H A Dypserv_net_secure.c50 sa_family_t af; member
57 static int addrequal(sa_family_t af, inaddr_t *laddr, inaddr_t *mask,
116 tmp1->af = netaf; in get_secure_nets()
141 sa_family_t af; in check_secure_net_ti() local
148 af = ((struct sockaddr_storage *)caller->buf)->ss_family; in check_secure_net_ti()
149 if (af == AF_INET) { in check_secure_net_ti()
151 } else if (af == AF_INET6) { in check_secure_net_ti()
159 if (af == tmp->af && in check_secure_net_ti()
160 addrequal(af, &tmp->net, &tmp->mask, &addr)) { in check_secure_net_ti()
166 ypname, inet_ntop(af, in check_secure_net_ti()
[all …]
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Daddrmatch.c37 sa_family_t af; member
52 addr_unicast_masklen(int af) in addr_unicast_masklen() argument
54 switch (af) { in addr_unicast_masklen()
65 masklen_valid(int af, u_int masklen) in masklen_valid() argument
67 switch (af) { in masklen_valid()
95 xa->af = AF_INET; in addr_sa_to_xaddr()
101 xa->af = AF_INET6; in addr_sa_to_xaddr()
120 addr_netmask(int af, u_int l, struct xaddr *n) in addr_netmask() argument
124 if (masklen_valid(af, l) != 0 || n == NULL) in addr_netmask()
128 switch (af) { in addr_netmask()
[all …]
/titanic_41/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 */
/titanic_41/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
107 af = AF_INET6; in dogetipnodes()
111 af = AF_INET; in dogetipnodes()
115 if (inet_pton(af, *list, addr) == 1) in dogetipnodes()
116 hp = getipnodebyaddr(addr, len, af, &err_ret); in dogetipnodes()
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c92 gethostbyname2(const char *name, int af) { in gethostbyname2() argument
95 return (gethostbyname2_p(name, af, net_data)); in gethostbyname2()
99 gethostbyaddr(const char *addr, int len, int af) { in gethostbyaddr() argument
102 return (gethostbyaddr_p(addr, len, af, net_data)); in gethostbyaddr()
143 gethostbyname2_p(const char *name, int af, struct net_data *net_data) { in gethostbyname2_p() argument
153 net_data->ho_last->h_addrtype == af) { in gethostbyname2_p()
163 if ((hp = fakeaddr(name, af, net_data)) != NULL) in gethostbyname2_p()
168 net_data->ho_last = (*ho->byname2)(ho, name, af); in gethostbyname2_p()
178 gethostbyaddr_p(const char *addr, int len, int af, struct net_data *net_data) { in gethostbyaddr_p() argument
191 net_data->ho_last = (*ho->byaddr)(ho, addr, len, af); in gethostbyaddr_p()
[all …]
H A Dirp_ho.c74 int af);
76 int len, int af);
169 ho_byname2(struct irs_ho *this, const char *name, int af) { in ho_byname2() argument
179 af == ho->h_addrtype) { in ho_byname2()
188 name, ADDR_T_STR(af)) != 0) in ho_byname2()
222 ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) { in ho_byaddr() argument
233 af == ho->h_addrtype && in ho_byaddr()
245 if (inet_ntop(af, addr, paddr, sizeof paddr) == NULL) { in ho_byaddr()
250 paddr, ADDR_T_STR(af)) != 0) { in ho_byaddr()
H A Dlcl_ho.c130 int af);
132 int len, int af);
218 ho_byname2(struct irs_ho *this, const char *name, int af) { in ho_byname2() argument
232 if (hp->h_addrtype != af) in ho_byname2()
253 ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) { in ho_byaddr() argument
262 if (af == AF_INET6 && len == IN6ADDRSZ && in ho_byaddr()
268 af = AF_INET; in ho_byaddr()
271 switch (af) { in ho_byaddr()
309 if (taf == af && tlen == len && in ho_byaddr()
328 int c, af, len, bufsiz, offset; in ho_next() local
[all …]
/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_if.c375 i_ipadm_if_pexists(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_if_pexists() argument
392 *exists = ((af == AF_INET && in i_ipadm_if_pexists()
394 (af == AF_INET6 && in i_ipadm_if_pexists()
443 i_ipadm_create_ipmp(ipadm_handle_t iph, char *ifname, sa_family_t af, in i_ipadm_create_ipmp() argument
454 status = i_ipadm_create_if(iph, ifname, af, ipadm_flags); in i_ipadm_create_ipmp()
462 if (af == AF_INET6) in i_ipadm_create_ipmp()
465 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6); in i_ipadm_create_ipmp()
478 (void) i_ipadm_delete_if(iph, ifname, af, in i_ipadm_create_ipmp()
493 i_ipadm_create_ipmp_peer(ipadm_handle_t iph, char *ifname, sa_family_t af) in i_ipadm_create_ipmp_peer() argument
500 assert(af == AF_INET || af == AF_INET6); in i_ipadm_create_ipmp_peer()
[all …]
H A Dipadm_addr.c227 sa_family_t af = AF_UNSPEC; in i_ipadm_get_static_addr_db() local
253 af = AF_INET; in i_ipadm_get_static_addr_db()
256 af = AF_INET6; in i_ipadm_get_static_addr_db()
260 assert(af != AF_UNSPEC); in i_ipadm_get_static_addr_db()
263 ipadm_set_addr(ipaddr, sname, af) != IPADM_SUCCESS) { in i_ipadm_get_static_addr_db()
310 ipadm_add_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_add_aobjname() argument
321 larg.ia_family = af; in ipadm_add_aobjname()
333 ipadm_delete_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_delete_aobjname() argument
339 aobj.ipadm_af = af; in ipadm_delete_aobjname()
521 i_ipadm_name2atype(const char *name, sa_family_t *af, ipadm_addr_type_t *type) in i_ipadm_name2atype() argument
[all …]
H A Dlibipadm.c304 i_ipadm_get_index(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_get_index() argument
312 if (af == AF_INET) in i_ipadm_get_index()
340 i_ipadm_dad_wait(ipadm_handle_t handle, const char *lifname, sa_family_t af, in i_ipadm_dad_wait() argument
357 retv = i_ipadm_get_index(handle, lifname, af, &index); in i_ipadm_dad_wait()
378 retv = i_ipadm_get_flags(handle, lifname, af, &flags); in i_ipadm_dad_wait()
396 i_ipadm_set_flags(ipadm_handle_t iph, const char *lifname, sa_family_t af, in i_ipadm_set_flags() argument
405 ret = i_ipadm_get_flags(iph, lifname, af, &oflags); in i_ipadm_set_flags()
409 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6); in i_ipadm_set_flags()
417 rtsock = socket(PF_ROUTE, SOCK_RAW, af); in i_ipadm_set_flags()
434 ret = i_ipadm_dad_wait(iph, lifname, af, rtsock); in i_ipadm_set_flags()
[all …]
/titanic_41/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 …]
/titanic_41/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 …]
/titanic_41/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 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; in ip_rts_rtmsg() local
208 af = AF_INET; in ip_rts_rtmsg()
209 mp = rts_alloc_msg(type, rtm_addrs, af, 0); in ip_rts_rtmsg()
217 af = AF_INET6; in ip_rts_rtmsg()
218 mp = rts_alloc_msg(type, rtm_addrs, af, 0); in ip_rts_rtmsg()
[all …]
H A Dinet_ntop.c59 inet_ntop(int af, const void *addr, char *buf, int addrlen) in inet_ntop() argument
91 switch (af) { in inet_ntop()
269 __inet_pton(int af, char *inp, void *outp, int compat) in __inet_pton() argument
275 switch (af) { in __inet_pton()
414 _inet_pton(int af, char *inp, void *outp) in _inet_pton() argument
416 return (__inet_pton(af, inp, outp, 0)); in _inet_pton()
424 inet_pton(int af, char *inp, void *outp) in inet_pton() argument
426 return (__inet_pton(af, inp, outp, 1)); in inet_pton()
/titanic_41/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 …]
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbindresvport.c60 int error, af; local
76 af = sa->sa_family;
79 af = sa->sa_family;
81 if (af == AF_INET) {
86 } else if (af == AF_INET6) {
95 sa->sa_family = af;
H A Drresvport.c56 rresvport_af(int *alport, sa_family_t af) in rresvport_af() argument
67 switch (af) { in rresvport_af()
80 sa->sa_family = af; in rresvport_af()
82 s = socket(af, SOCK_STREAM, 0); in rresvport_af()
97 sa->sa_family = af; in rresvport_af()
/titanic_41/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()
/titanic_41/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, \
/titanic_41/usr/src/cmd/sendmail/src/
H A Dalias.c505 SM_FILE_T *af; local
525 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
530 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
545 fstat(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), &stb) < 0 ||
553 !lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), map->map_file,
562 (void) lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL),
565 (void) sm_io_close(af, SM_TIME_DEFAULT);
587 readaliases(map, af, !automatic, true);
601 (void) sm_io_close(af, SM_TIME_DEFAULT);
641 readaliases(map, af, announcestats, logstats) in readaliases() argument
[all …]
/titanic_41/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()
/titanic_41/usr/src/uts/i86pc/os/
H A Dibft.c64 int af; member
389 iscsi_parse_ipaddr(uchar_t *source, char *dest, int *af) in iscsi_parse_ipaddr() argument
410 if (af != NULL) { in iscsi_parse_ipaddr()
411 *af = AF_INET; in iscsi_parse_ipaddr()
423 if (af != NULL) { in iscsi_parse_ipaddr()
424 *af = AF_INET6; in iscsi_parse_ipaddr()
436 iscsi_copy_ibft_ipaddr(uchar_t *source, void *dest, int *af) in iscsi_copy_ibft_ipaddr() argument
457 if (af != NULL) { in iscsi_copy_ibft_ipaddr()
458 *af = sin_family; in iscsi_copy_ibft_ipaddr()
471 int af = 0; in iscsi_parse_ibft_NIC() local
[all …]
/titanic_41/usr/src/lib/libsocket/inet/
H A Drexec.c70 const char *pass, const char *cmd, int *fd2p, int af) in rexec_af() argument
81 if (!(af == AF_INET || af == AF_INET6 || af == AF_UNSPEC)) { in rexec_af()
84 "supported\n"), af); in rexec_af()
92 hints.ai_family = af; in rexec_af()

12345678