Lines Matching defs:afp
371 struct afswtch *afp; /* the address family being set or asked about */
408 for (myafp = afp = afs; myafp->af_name; myafp++) {
410 afp = myafp; argc--; argv++;
414 af = lifr.lifr_addr.ss_family = afp->af_af;
664 if (!scan_netmask && afp->af_af == AF_INET) {
726 " supported for %s\n", *argv, afp->af_name);
895 assert(afp->af_af == AF_INET);
935 (*afp->af_getaddr)(addr, (struct sockaddr *)&laddr, &prefixlen);
938 netmask.ss_family = afp->af_af;
948 if (afp->af_af == AF_INET6) {
1045 void *addr = (afp->af_af == AF_INET) ?
1050 lifr.lifr_name, afp->af_af,
1051 inet_ntop(afp->af_af, addr, abuf, sizeof (abuf)));
1054 lifr.lifr_addr.ss_family = afp->af_af;
1309 if (afp->af_af == AF_INET6) {
1332 (*afp->af_getaddr)(addr, &subnet, &prefixlen);
1363 assert(afp->af_af != AF_INET6);
1388 int af = afp->af_af;
1438 assert(afp->af_af != AF_INET6);
1474 (*afp->af_getaddr)(addr, (struct sockaddr *)&lifr.lifr_addr, NULL);
1832 (*afp->af_getaddr)(str, (struct sockaddr *)&laddr, &prefixlen);
1844 mask.ss_family = afp->af_af;
1845 if (afp->af_af == AF_INET6) {
1987 (*afp->af_getaddr)(str, &laddr, NULL);
2107 af = afp->af_af;
2963 struct afswtch *p = afp;
3022 struct afswtch *p = afp;
3626 istatus = ipadm_delete_if(iph, name, afp->af_af, IPADM_OPT_ACTIVE);
3647 istatus = ipadm_create_if(iph, name, afp->af_af, IPADM_OPT_ACTIVE);
3670 retval = create_ipmp(name, afp->af_af, name, _B_FALSE);