/freebsd-11-stable/sbin/ifconfig/ |
H A D | ifconfig.c | 109 const struct afswtch *afp); 110 static void status(const struct afswtch *afp, const struct sockaddr_dl *sdl, 400 const struct afswtch *afp = NULL; local 508 afp = af_getbyname(*argv); 509 if (afp == NULL) { 513 if (afp->af_name != NULL) 515 /* leave with afp non-zero */ 577 afp = af_getbyname(*argv); 578 if (afp != NULL) 634 if (afp ! 751 struct afswtch *afp; local 762 struct afswtch *afp; local 773 struct afswtch *afp; local 790 struct afswtch *afp; local 863 const struct afswtch *afp, *nafp; local 1017 setifaddr(const char *addr, int param, int s, const struct afswtch *afp) argument 1033 settunnel(const char *src, const char *dst, int s, const struct afswtch *afp) argument 1064 deletetunnel(const char *vname, int param, int s, const struct afswtch *afp) argument 1073 setifvnet(const char *jname, int dummy __unused, int s, const struct afswtch *afp) argument 1087 setifrvnet(const char *jname, int dummy __unused, int s, const struct afswtch *afp) argument 1102 setifnetmask(const char *addr, int dummy __unused, int s, const struct afswtch *afp) argument 1112 setifbroadaddr(const char *addr, int dummy __unused, int s, const struct afswtch *afp) argument 1120 notealias(const char *addr, int param, int s, const struct afswtch *afp) argument 1139 setifdstaddr(const char *addr, int param __unused, int s, const struct afswtch *afp) argument 1152 setifflags(const char *vname, int value, int s, const struct afswtch *afp) argument 1178 setifcap(const char *vname, int value, int s, const struct afswtch *afp) argument 1199 setifmetric(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument 1209 setifmtu(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument 1219 setifpcp(const char *val, int arg __unused, int s, const struct afswtch *afp) argument 1235 disableifpcp(const char *val, int arg __unused, int s, const struct afswtch *afp) argument 1245 setifname(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument 1267 setifdescr(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument 1295 unsetifdescr(const char *val, int value, int s, const struct afswtch *afp) argument 1317 status(const struct afswtch *afp, const struct sockaddr_dl *sdl, struct ifaddrs *ifa) argument [all...] |
H A D | ifbridge.c | 293 setbridge_add(const char *val, int d, int s, const struct afswtch *afp) argument 304 setbridge_delete(const char *val, int d, int s, const struct afswtch *afp) argument 315 setbridge_discover(const char *val, int d, int s, const struct afswtch *afp) argument 322 unsetbridge_discover(const char *val, int d, int s, const struct afswtch *afp) argument 329 setbridge_learn(const char *val, int d, int s, const struct afswtch *afp) argument 336 unsetbridge_learn(const char *val, int d, int s, const struct afswtch *afp) argument 343 setbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) argument 350 unsetbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) argument 357 setbridge_span(const char *val, int d, int s, const struct afswtch *afp) argument 368 unsetbridge_span(const char *val, int d, int s, const struct afswtch *afp) argument 379 setbridge_stp(const char *val, int d, int s, const struct afswtch *afp) argument 386 unsetbridge_stp(const char *val, int d, int s, const struct afswtch *afp) argument 393 setbridge_edge(const char *val, int d, int s, const struct afswtch *afp) argument 399 unsetbridge_edge(const char *val, int d, int s, const struct afswtch *afp) argument 405 setbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) argument 411 unsetbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) argument 417 setbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) argument 423 unsetbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) argument 429 setbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) argument 435 unsetbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) argument 441 setbridge_flush(const char *val, int d, int s, const struct afswtch *afp) argument 452 setbridge_flushall(const char *val, int d, int s, const struct afswtch *afp) argument 463 setbridge_static(const char *val, const char *mac, int s, const struct afswtch *afp) argument 485 setbridge_deladdr(const char *val, int d, int s, const struct afswtch *afp) argument 503 setbridge_addr(const char *val, int d, int s, const struct afswtch *afp) argument 510 setbridge_maxaddr(const char *arg, int d, int s, const struct afswtch *afp) argument 525 setbridge_hellotime(const char *arg, int d, int s, const struct afswtch *afp) argument 540 setbridge_fwddelay(const char *arg, int d, int s, const struct afswtch *afp) argument 555 setbridge_maxage(const char *arg, int d, int s, const struct afswtch *afp) argument 570 setbridge_priority(const char *arg, int d, int s, const struct afswtch *afp) argument 585 setbridge_protocol(const char *arg, int d, int s, const struct afswtch *afp) argument 602 setbridge_holdcount(const char *arg, int d, int s, const struct afswtch *afp) argument 617 setbridge_ifpriority(const char *ifn, const char *pri, int s, const struct afswtch *afp) argument 636 setbridge_ifpathcost(const char *ifn, const char *cost, int s, const struct afswtch *afp) argument 655 setbridge_ifmaxaddr(const char *ifn, const char *arg, int s, const struct afswtch *afp) argument 674 setbridge_timeout(const char *arg, int d, int s, const struct afswtch *afp) argument 689 setbridge_private(const char *val, int d, int s, const struct afswtch *afp) argument 696 unsetbridge_private(const char *val, int d, int s, const struct afswtch *afp) argument [all...] |
H A D | carp.c | 95 setcarp_vhid(const char *val, int d, int s, const struct afswtch *afp) argument 104 switch (afp->af_af) { 110 ifra = (struct in_aliasreq *)afp->af_addreq; 120 ifra = (struct in6_aliasreq *)afp->af_addreq; 126 errx(1, "%s doesn't support carp(4)", afp->af_name); 160 setcarp_passwd(const char *val, int d, int s, const struct afswtch *afp) argument 170 setcarp_advskew(const char *val, int d, int s, const struct afswtch *afp) argument 180 setcarp_advbase(const char *val, int d, int s, const struct afswtch *afp) argument 190 setcarp_state(const char *val, int d, int s, const struct afswtch *afp) argument
|
H A D | ifconfig.h | 44 typedef void c_func(const char *cmd, int arg, int s, const struct afswtch *afp); 45 typedef void c_func2(const char *arg1, const char *arg2, int s, const struct afswtch *afp); 69 void name(const char *cmd, int arg, int s, const struct afswtch *afp) 71 void name(const char *arg1, const char *arg2, int s, const struct afswtch *afp)
|
H A D | ifgre.c | 69 const struct afswtch *afp) 80 setifgreopts(const char *val, int d, int s, const struct afswtch *afp) argument 68 setifgrekey(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument
|
H A D | iffib.c | 68 const struct afswtch *afp) 87 const struct afswtch *afp) 67 setiffib(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument 86 settunfib(const char *val, int dummy __unused, int s, const struct afswtch *afp) argument
|
H A D | af_inet6.c | 78 const struct afswtch *afp) 80 if (afp->af_getprefix != NULL) 81 afp->af_getprefix(addr, MASK); 87 const struct afswtch *afp) 89 if (afp->af_af != AF_INET6) 100 const struct afswtch *afp) 110 if (afp->af_af != AF_INET6) 123 const struct afswtch *afp) 125 setip6lifetime("pltime", seconds, s, afp); 130 const struct afswtch *afp) 77 setifprefixlen(const char *addr, int dummy __unused, int s, const struct afswtch *afp) argument 86 setip6flags(const char *dummyaddr __unused, int flag, int dummysoc __unused, const struct afswtch *afp) argument 99 setip6lifetime(const char *cmd, const char *val, int s, const struct afswtch *afp) argument 122 setip6pltime(const char *seconds, int dummy __unused, int s, const struct afswtch *afp) argument 129 setip6vltime(const char *seconds, int dummy __unused, int s, const struct afswtch *afp) argument 136 setip6eui64(const char *cmd, int dummy __unused, int s, const struct afswtch *afp) argument 420 in6_postproc(int s, const struct afswtch *afp) argument [all...] |
H A D | iflagg.c | 36 setlaggport(const char *val, int d, int s, const struct afswtch *afp) argument 50 unsetlaggport(const char *val, int d, int s, const struct afswtch *afp) argument 63 setlaggproto(const char *val, int d, int s, const struct afswtch *afp) argument 87 setlaggflowidshift(const char *val, int d, int s, const struct afswtch *afp) argument 103 setlaggrr_limit(const char *val, int d, int s, const struct afswtch *afp) argument 116 setlaggsetopt(const char *val, int d, int s, const struct afswtch *afp) argument 144 setlagghash(const char *val, int d, int s, const struct afswtch *afp) argument
|
H A D | ifgif.c | 75 setgifopts(const char *val, int d, int s, const struct afswtch *afp) argument
|
H A D | af_nd6.c | 72 const struct afswtch *afp) 96 const struct afswtch *afp) 70 setnd6flags(const char *dummyaddr __unused, int d, int s, const struct afswtch *afp) argument 94 setnd6defif(const char *dummyaddr __unused, int d, int s, const struct afswtch *afp) argument
|
H A D | ifmedia.c | 294 setmedia(const char *val, int d, int s, const struct afswtch *afp) argument 321 setmediaopt(const char *val, int d, int s, const struct afswtch *afp) argument 328 unsetmediaopt(const char *val, int d, int s, const struct afswtch *afp) argument 360 setmediainst(const char *val, int d, int s, const struct afswtch *afp) argument 379 setmediamode(const char *val, int d, int s, const struct afswtch *afp) argument
|
H A D | ifvxlan.c | 576 setvxlan_flush(const char *val, int d, int s, const struct afswtch *afp) argument
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/types/ |
H A D | tst.complex.d | 67 int (*afp[2])();
|
/freebsd-11-stable/sys/net/altq/ |
H A D | altq_subr.c | 1361 struct acc_filter *afp, *prev, *tmp; local 1373 afp = malloc(sizeof(struct acc_filter), 1375 if (afp == NULL) 1377 bzero(afp, sizeof(struct acc_filter)); 1379 afp->f_filter = *filter; 1380 afp->f_class = class; 1384 struct flow_filter *filter4 = &afp->f_filter; 1417 (struct flow_filter6 *)&afp->f_filter; 1449 afp->f_handle = get_filt_handle(classifier, i); 1452 afp 1482 struct acc_filter *afp; local 1509 struct acc_filter *afp; local 1540 struct acc_filter *afp; local 1764 struct acc_filter *afp; local 1789 struct acc_filter *afp; local [all...] |
H A D | altq_cbq.c | 767 cbq_add_filter(afp) 768 struct cbq_add_filter *afp; 774 ifacename = afp->cbq_iface.cbq_ifacename; 779 if ((cl = clh_to_clp(cbqp, afp->cbq_class_handle)) == NULL) 782 return acc_add_filter(&cbqp->cbq_classifier, &afp->cbq_filter, 783 cl, &afp->cbq_filter_handle);
|
/freebsd-11-stable/sys/kern/ |
H A D | uipc_accf.c | 197 struct accept_filter *afp; local 239 afp = accept_filt_get(afap->af_name); 240 if (afp == NULL) { 252 if (afp->accf_create != NULL && afap->af_name[0] != '\0') { 275 if (afp->accf_create != NULL) { 277 afp->accf_create(so, afap->af_arg); 283 newaf->so_accept_filter = afp;
|
/freebsd-11-stable/contrib/ipfilter/ |
H A D | radix_ipf.c | 1103 setaddr(afp, str) 1104 addrfamily_t *afp; 1108 bzero((char *)afp, sizeof(*afp)); 1111 afp->adf_family = AF_INET; 1112 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 4; 1114 afp->adf_family = AF_INET6; 1115 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 16; 1117 inet_pton(afp->adf_family, str, &afp [all...] |
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | radix_ipf.c | 1103 setaddr(afp, str) 1104 addrfamily_t *afp; 1108 bzero((char *)afp, sizeof(*afp)); 1111 afp->adf_family = AF_INET; 1112 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 4; 1114 afp->adf_family = AF_INET6; 1115 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 16; 1117 inet_pton(afp->adf_family, str, &afp [all...] |
/freebsd-11-stable/contrib/ipfilter/tools/ |
H A D | ippool_y.y | 815 setadflen(afp) 816 addrfamily_t *afp; 818 afp->adf_len = offsetof(addrfamily_t, adf_addr); 819 switch (afp->adf_family) 822 afp->adf_len += sizeof(struct in_addr); 826 afp->adf_len += sizeof(struct in6_addr);
|
/freebsd-11-stable/usr.bin/getaddrinfo/ |
H A D | getaddrinfo.c | 181 parse_af(const char *string, int *afp) argument 184 return parse_numeric_tabular(string, afp, address_families,
|
/freebsd-11-stable/sbin/etherswitchcfg/ |
H A D | ifmedia.c | 254 setmedia(const char *val, int d, int s, const struct afswtch *afp) 281 setmediaopt(const char *val, int d, int s, const struct afswtch *afp) 288 unsetmediaopt(const char *val, int d, int s, const struct afswtch *afp) 320 setmediainst(const char *val, int d, int s, const struct afswtch *afp) 339 setmediamode(const char *val, int d, int s, const struct afswtch *afp)
|
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_stream.c | 1656 struct file *afp; local 1661 afp = NULL; 1800 error = kern_accept(td, uap->fd, &sa, &sasize, &afp); 1832 fdclose(td, afp, st->s_afd); 1833 fdrop(afp, td); 1969 if (afp) { 1970 fdclose(td, afp, st->s_afd); 1971 fdrop(afp, td); 1978 if (afp) 1979 fdrop(afp, t [all...] |
/freebsd-11-stable/usr.sbin/cxgbetool/ |
H A D | cxgbetool.c | 640 * The value return parameter "afp" is used to specify the expected address 654 parse_ipaddr(const char *param, const char *args[], int *afp, uint8_t addr[], argument 682 if (*afp == AF_UNSPEC) 683 *afp = af; 684 else if (*afp != af) { 686 args[1], *afp == AF_INET ? "IP" : "IPv6");
|