Searched defs:af (Results 1 - 25 of 146) sorted by relevance

123456

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dcan_use_af.c45 __can_use_af(sa_family_t af) argument
52 lifn.lifn_family = af;
/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, pt
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_private.h7 int af; member in struct:__res_state_ext::sort_list
/illumos-gate/usr/src/cmd/getent/
H A Ddogetipnodes.c52 int af; local
60 af = AF_INET;
63 af = AF_INET6;
67 af = AF_INET;
70 res = inet_ntop(af, addr, obuf, sizeof (obuf));
97 int af, len; local
107 af = AF_INET6;
111 af = AF_INET;
115 if (inet_pton(af, *list, addr) == 1)
116 hp = getipnodebyaddr(addr, len, af,
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dgetaddr.c71 printf("ai[%d]: af=%d, len=%d", i,
87 int af = sa->sa_family; local
90 printf(" saf=%d,", af);
91 switch (af) {
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dinet_ntop.c42 * inet_ntop(af, src, dst, size)
48 inet_ntop(int af, const void *src, char *dst, socklen_t size) argument
50 switch (af) {
H A Dinet_pton.c42 * inet_pton(af, src, dst)
53 inet_pton(int af, const char *src, void *dst) argument
55 switch (af) {
H A Dgethostent.c106 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, argument
121 if (af != AF_INET && af != AF_INET6) {
163 if (af == AF_INET6) {
205 if (addrlen > ((af == AF_INET6) ? INET6_ADDRSTRLEN
209 if (af == AF_INET) {
227 if (inet_pton(af, addrbuf, &addrp6[i]) != 1)
270 if (af == AF_INET6) {
275 host->h_addrtype = af;
/illumos-gate/usr/src/lib/nsswitch/mdns/common/
H A Dgethostent6.c46 int af = argp->key.ipnode.af_family; local
54 return (_nss_mdns_querybyname(be, hname, af, &qdata));
90 qdata.af = AF_INET;
99 qdata.af = AF_INET6;
111 return (_nss_mdns_querybyaddr(be, addrqryname, qdata.af, &qdata));
H A Dmdns_common.h83 int af; member in struct:mdns_querydata
92 int af, struct mdns_querydata *data);
94 int af, struct mdns_querydata *data);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetifaddrs.c92 getallifaddrs(sa_family_t af, struct ifaddrs **ifap, int64_t flags) argument
116 ret = getallifs(sock4, af, &buf, &numifs, (flags & ~LIFC_ENABLED));
133 if (af != AF_UNSPEC && lifr_af != af)
221 getallifs(int s, sa_family_t af, struct lifreq **lifr, int *numifs, argument
230 lifn.lifn_family = af;
250 lifc.lifc_family = af;
H A Drexec.c70 const char *pass, const char *cmd, int *fd2p, int af)
81 if (!(af == AF_INET || af == AF_INET6 || af == AF_UNSPEC)) {
84 "supported\n"), af);
92 hints.ai_family = af;
69 rexec_af(char **ahost, unsigned short rport, const char *name, const char *pass, const char *cmd, int *fd2p, int af) argument
H A Dgetnameinfo.c355 * This is a wrapper function for inet_ntop(). In case the af is AF_INET6
361 _inet_ntop_native(int af, const void *src, char *dst, size_t size) argument
366 if (af == AF_INET6) {
374 result = inet_ntop(af, src, dst, size);
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_cidr_ntop.c50 * inet_cidr_ntop(af, src, bits, dst, size)
52 * "src"'s size is determined from its "af".
63 inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size) { argument
64 switch (af) {
99 * "src"'s size is determined from its "af".
H A Dinet_cidr_pton.c54 * inet_cidr_pton(af, src, dst, *bits)
56 * accepts inet_pton()'s input for this "af" plus trailing "/CIDR".
57 * "dst" is assumed large enough for its "af". "bits" is set to the
70 inet_cidr_pton(int af, const char *src, void *dst, int *bits) { argument
71 switch (af) {
H A Dinet_net_pton.c383 * inet_net_pton(af, src, dst, size)
395 inet_net_pton(int af, const char *src, void *dst, size_t size) { argument
396 switch (af) {
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dinetutil.c112 plen2mask(uint_t prefixlen, sa_family_t af, struct sockaddr *mask) argument
116 if (af == AF_INET) {
129 mask->sa_family = af;
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_map.c219 sa_family_t af; local
223 af = ((struct sockaddr_storage *)nbuf->buf)->ss_family;
224 if (af != AF_INET && af != AF_INET6)
237 if (af == AF_INET6) {
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c40 kivoid_to_sock(int af, void *source, void *dest) argument
48 if (af == AF_INET) {
52 sin->sin_family = af;
53 } else if (af == AF_INET6) {
57 sin6->sin6_family = af;
65 kdlifconfig(TIUSER *tiptr, int af, void *myIPaddr, void *mymask, argument
79 if (af == AF_INET) {
80 rc = kivoid_to_sock(af, mymask, &sin);
87 rc = kivoid_to_sock(af, mymask, &sin6);
98 if (af
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_init.c242 sctp_addr_params(sctp_t *sctp, int af, uchar_t *p, boolean_t modify) argument
257 param_len = sctp_saddr_info(sctp, af, p, modify);
/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) argument
144 lifc.lifc_family = af;
196 int af; member in struct:__anon2530
213 P.af = afs[afidx];
220 KRB5_LOG (KRB5_INFO, "foreach_localaddr() trying af %d", P.af);
221 P.sock = socket (P.af, USE_TYPE, USE_PROTO);
228 P.lifnum.lifn_family = P.af;
247 code = get_lifconf (P.af, P.sock, &P.buf_size, P.buf);
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_getrhent.c58 tsol_getrhbyaddr(const void *addrp, size_t len, int af) argument
71 arg.key.hostaddr.type = af;
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgen_ho.c61 int af);
63 int len, int af);
168 ho_byname2(struct irs_ho *this, const char *name, int af) { argument
183 rval = (*ho->byname2)(ho, name, af);
207 ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) { argument
223 rval = (*ho->byaddr)(ho, addr, len, af);
H A Dgetnetent.c62 static struct netent *fakeaddr(const char *, int af, struct net_data *);
251 fakeaddr(const char *name, int af, struct net_data *net_data) { argument
256 if (af != AF_INET) {

Completed in 77 milliseconds

123456