• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sbin/ifconfig/

Lines Matching refs:afp

113 		const struct afswtch *afp);
114 static void status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
409 const struct afswtch *afp = NULL;
522 afp = af_getbyname(*argv);
523 if (afp == NULL) {
527 if (afp->af_name != NULL)
529 /* leave with afp non-zero */
591 afp = af_getbyname(*argv);
592 if (afp != NULL)
610 ifconfig(argc, argv, 0, afp);
667 if (afp != NULL) {
669 if (!strcmp(afp->af_name, "ether")) {
678 != afp->af_af)
692 ifconfig(argc, argv, 0, afp);
694 status(afp, sdl, ifa);
786 struct afswtch *afp;
788 for (afp = afs; afp != NULL; afp = afp->af_next)
789 if (strcmp(afp->af_name, name) == 0)
790 return afp;
797 struct afswtch *afp;
799 for (afp = afs; afp != NULL; afp = afp->af_next)
800 if (afp->af_af == af)
801 return afp;
808 struct afswtch *afp;
812 for (afp = afs; afp != NULL; afp = afp->af_next) {
813 if (afp->af_other_status == NULL)
815 if (afp->af_af != AF_UNSPEC && isset(afmask, afp->af_af))
817 afp->af_other_status(s);
818 setbit(afmask, afp->af_af);
825 struct afswtch *afp;
829 for (afp = afs; afp != NULL; afp = afp->af_next) {
830 if (afp->af_status_tunnel == NULL)
832 if (afp->af_af != AF_UNSPEC && isset(afmask, afp->af_af))
834 afp->af_status_tunnel(s);
835 setbit(afmask, afp->af_af);
898 const struct afswtch *afp, *nafp;
904 afp = NULL;
906 afp = uafp;
918 if (afp == NULL && feature_present("inet"))
919 afp = af_getbyname("inet");
922 if (afp == NULL)
923 afp = af_getbyname("link");
924 if (afp == NULL) {
930 afp->af_af == AF_LINK || afp->af_af == AF_UNSPEC ?
931 AF_LOCAL : afp->af_af;
960 if (nafp != afp) {
962 afp = nafp;
982 p->c_u.c_func(argv[1], 0, s, afp);
985 p->c_u.c_func(argv[1], 0, s, afp);
992 p->c_u.c_func2(argv[1], argv[2], s, afp);
995 p->c_u.c_func(*argv, p->c_parameter, s, afp);
1002 if (afp->af_postproc != NULL)
1003 afp->af_postproc(s, afp);
1014 if (afp->af_ridreq == NULL || afp->af_difaddr == 0) {
1016 name, afp->af_name);
1022 strlcpy(((struct ifreq *)afp->af_ridreq)->ifr_name, name,
1024 ret = ioctl(s, afp->af_difaddr, afp->af_ridreq);
1033 if (afp->af_addreq == NULL || afp->af_aifaddr == 0) {
1035 name, afp->af_name);
1040 strlcpy(((struct ifreq *)afp->af_addreq)->ifr_name, name,
1042 if (ioctl(s, afp->af_aifaddr, afp->af_addreq) < 0)
1052 setifaddr(const char *addr, int param, int s, const struct afswtch *afp)
1054 if (afp->af_getaddr == NULL)
1062 if (doalias == 0 && afp->af_af != AF_LINK)
1064 afp->af_getaddr(addr, (doalias >= 0 ? ADDR : RIDADDR));
1068 settunnel(const char *src, const char *dst, int s, const struct afswtch *afp)
1073 if (afp->af_settunnel == NULL) {
1075 afp->af_name);
1091 afp->af_settunnel(s, srcres, dstres);
1099 deletetunnel(const char *vname, int param, int s, const struct afswtch *afp)
1109 const struct afswtch *afp)
1123 const struct afswtch *afp)
1138 const struct afswtch *afp)
1140 if (afp->af_getaddr != NULL) {
1142 afp->af_getaddr(addr, MASK);
1148 const struct afswtch *afp)
1150 if (afp->af_getaddr != NULL)
1151 afp->af_getaddr(addr, DSTADDR);
1155 notealias(const char *addr, int param, int s, const struct afswtch *afp)
1157 #define rqtosa(x) (&(((struct ifreq *)(afp->x))->ifr_addr))
1159 if (afp->af_addreq != NULL && afp->af_ridreq != NULL)
1175 const struct afswtch *afp)
1177 if (afp->af_getaddr != NULL)
1178 afp->af_getaddr(addr, DSTADDR);
1209 setifflags(const char *vname, int value, int s, const struct afswtch *afp)
1229 setifcap(const char *vname, int value, int s, const struct afswtch *afp)
1251 const struct afswtch *afp)
1261 const struct afswtch *afp)
1270 setifpcp(const char *val, int arg __unused, int s, const struct afswtch *afp)
1287 const struct afswtch *afp)
1297 const struct afswtch *afp)
1319 const struct afswtch *afp)
1346 unsetifdescr(const char *val, int value, int s, const struct afswtch *afp)
1369 status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
1376 if (afp == NULL) {
1382 afp->af_af == AF_LINK ? AF_LOCAL : afp->af_af;
1441 } else if (afp->af_af == ift->ifa_addr->sa_family)
1442 afp->af_status(s, ift);
1445 if (allfamilies || afp->af_af == AF_LINK) {
1463 else if (afp->af_other_status != NULL)
1464 afp->af_other_status(s);