Home
last modified time | relevance | path

Searched refs:afp (Results 1 – 15 of 15) sorted by relevance

/freebsd/sbin/ifconfig/
H A Difconfig.c560 const struct afswtch *afp = af_getbyname(*argv); in args_parse() local
562 if (afp == NULL) { in args_parse()
566 if (afp->af_name != NULL) in args_parse()
569 args->afp = afp; in args_parse()
704 args->afp = af_getbyname(args_peek(args)); in main()
705 if (args->afp != NULL) in main()
722 ifconfig(&ctx, 0, args->afp); in main()
727 args->allfamilies = args->afp == NULL; in main()
765 match_afp(const struct afswtch *afp, int sa_family, const struct sockaddr_dl *sdl) in match_afp() argument
767 if (afp == NULL) in match_afp()
[all …]
H A Difconfig_netlink.c265 if (args->afp == NULL) in match_iface()
268 if (!strcmp(args->afp->af_name, "ether")) { in match_iface()
279 } else if (args->afp->af_af == AF_LINK) in match_iface()
288 if (args->afp->af_af == ifa->addr.ifa_family) in match_iface()
384 if (args->allfamilies | (args->afp != NULL && args->afp->af_af == AF_LINK)) { in status_nl()
399 } else if (args->afp->af_af == ifa->addr.ifa_family) { in status_nl()
400 const struct afswtch *p = args->afp; in status_nl()
409 else if (args->afp->af_other_status != NULL) in status_nl()
410 args->afp->af_other_status(ctx); in status_nl()
483 ifconfig_ioctl(ctx, 0, args->afp); in list_interfaces_nl()
H A Daf_inet6.c100 const struct afswtch *afp = ctx->afp; in setifprefixlen() local
102 if (afp->af_getprefix != NULL) in setifprefixlen()
103 afp->af_getprefix(addr, MASK); in setifprefixlen()
117 const struct afswtch *afp = ctx->afp; in setip6flags() local
119 if (afp->af_af != AF_INET6) in setip6flags()
138 const struct afswtch *afp = ctx->afp; in setip6lifetime() local
152 if (afp->af_af != AF_INET6) in setip6lifetime()
178 const struct afswtch *afp = ctx->afp; in setip6eui64() local
184 if (afp->af_af != AF_INET6) in setip6eui64()
H A Dcarp.c113 const struct afswtch *afp = ctx->afp; in setcarp_vhid() local
121 if (afp->af_setvhid == NULL) in setcarp_vhid()
122 errx(1, "%s doesn't support carp(4)", afp->af_name); in setcarp_vhid()
123 afp->af_setvhid(carpr_vhid); in setcarp_vhid()
/freebsd/sys/net/altq/
H A Daltq_subr.c1318 struct acc_filter *afp, *prev, *tmp; local
1330 afp = malloc(sizeof(*afp), M_DEVBUF, M_WAITOK | M_ZERO);
1331 afp->f_filter = *filter;
1332 afp->f_class = class;
1336 struct flow_filter *filter4 = &afp->f_filter;
1369 (struct flow_filter6 *)&afp->f_filter;
1401 afp->f_handle = get_filt_handle(classifier, i);
1404 afp->f_fbmask = filt2fibmask(filter);
1405 classifier->acc_fbmask |= afp->f_fbmask;
1414 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
[all …]
/freebsd/sys/kern/
H A Duipc_accf.c196 struct accept_filter *afp; in accept_filt_setopt() local
263 afp = accept_filt_get(afap->af_name); in accept_filt_setopt()
264 if (afp == NULL) { in accept_filt_setopt()
268 if (afp->accf_create != NULL && afap->af_name[0] != '\0') { in accept_filt_setopt()
293 if (afp->accf_create != NULL) { in accept_filt_setopt()
294 accept_filter_arg = afp->accf_create(so, afap->af_arg); in accept_filt_setopt()
300 so->sol_accept_filter = afp; in accept_filt_setopt()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dradix_ipf.c1072 setaddr(addrfamily_t *afp, char *str) in setaddr() argument
1075 bzero((char *)afp, sizeof(*afp)); in setaddr()
1078 afp->adf_family = AF_INET; in setaddr()
1079 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 4; in setaddr()
1081 afp->adf_family = AF_INET6; in setaddr()
1082 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 16; in setaddr()
1084 inet_pton(afp->adf_family, str, &afp->adf_addr); in setaddr()
1089 setmask(addrfamily_t *afp, char *str) in setmask() argument
1092 afp->adf_addr.in4.s_addr = inet_addr(str); in setmask()
1093 afp->adf_len = offsetof(addrfamily_t, adf_addr) + 4; in setmask()
[all …]
/freebsd/sbin/etherswitchcfg/
H A Difmedia.c247 setmedia(const char *val, int d, int s, const struct afswtch *afp)
274 setmediaopt(const char *val, int d, int s, const struct afswtch *afp)
281 unsetmediaopt(const char *val, int d, int s, const struct afswtch *afp)
313 setmediainst(const char *val, int d, int s, const struct afswtch *afp)
332 setmediamode(const char *val, int d, int s, const struct afswtch *afp)
/freebsd/sbin/ipf/ippool/
H A Dippool_y.y807 setadflen(addrfamily_t *afp) in setadflen() argument
809 afp->adf_len = offsetof(addrfamily_t, adf_addr); in setadflen()
810 switch (afp->adf_family) in setadflen()
813 afp->adf_len += sizeof(struct in_addr); in setadflen()
817 afp->adf_len += sizeof(struct in6_addr); in setadflen()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/types/
H A Dtst.complex.d67 int (*afp[2])(); member
/freebsd/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c178 parse_af(const char *string, int *afp) in parse_af() argument
181 return parse_numeric_tabular(string, afp, address_families, in parse_af()
/freebsd/usr.sbin/cxgbetool/
H A Dcxgbetool.c651 parse_ipaddr(const char *param, const char *args[], int *afp, uint8_t addr[], in parse_ipaddr() argument
679 if (*afp == AF_UNSPEC) in parse_ipaddr()
680 *afp = af; in parse_ipaddr()
681 else if (*afp != af) { in parse_ipaddr()
683 args[1], *afp == AF_INET ? "IP" : "IPv6"); in parse_ipaddr()
/freebsd/contrib/tcpdump/
H A Dprint-bgp.c1654 uint16_t *afp, uint8_t *safip) in bgp_mp_af_print() argument
1660 *afp = af; in bgp_mp_af_print()
/freebsd/contrib/arm-optimized-routines/math/test/traces/
H A Dsincosf.txt8874 0x1.136afp-2
10164 -0x1.768afp-4
H A Dexp.txt6375 -0x1.7609375851afp-1