Home
last modified time | relevance | path

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

/freebsd-13-stable/sbin/ifconfig/
HDifconfig.c114 const struct afswtch *afp);
115 static void status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
420 const struct afswtch *afp = NULL; in main() local
557 afp = af_getbyname(*argv); in main()
558 if (afp == NULL) { in main()
562 if (afp->af_name != NULL) in main()
626 afp = af_getbyname(*argv); in main()
627 if (afp != NULL) in main()
645 ifconfig(argc, argv, 0, afp); in main()
702 if (afp != NULL) { in main()
[all …]
HDifbridge.c223 setbridge_add(const char *val, int d, int s, const struct afswtch *afp) in setbridge_add() argument
234 setbridge_delete(const char *val, int d, int s, const struct afswtch *afp) in setbridge_delete() argument
245 setbridge_discover(const char *val, int d, int s, const struct afswtch *afp) in setbridge_discover() argument
252 unsetbridge_discover(const char *val, int d, int s, const struct afswtch *afp) in unsetbridge_discover() argument
259 setbridge_learn(const char *val, int d, int s, const struct afswtch *afp) in setbridge_learn() argument
266 unsetbridge_learn(const char *val, int d, int s, const struct afswtch *afp) in unsetbridge_learn() argument
273 setbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) in setbridge_sticky() argument
280 unsetbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) in unsetbridge_sticky() argument
287 setbridge_span(const char *val, int d, int s, const struct afswtch *afp) in setbridge_span() argument
298 unsetbridge_span(const char *val, int d, int s, const struct afswtch *afp) in unsetbridge_span() argument
[all …]
HDcarp.c91 setcarp_vhid(const char *val, int d, int s, const struct afswtch *afp) in setcarp_vhid() argument
100 switch (afp->af_af) { in setcarp_vhid()
106 ifra = (struct in_aliasreq *)afp->af_addreq; in setcarp_vhid()
116 ifra = (struct in6_aliasreq *)afp->af_addreq; in setcarp_vhid()
122 errx(1, "%s doesn't support carp(4)", afp->af_name); in setcarp_vhid()
156 setcarp_passwd(const char *val, int d, int s, const struct afswtch *afp) in setcarp_passwd() argument
166 setcarp_advskew(const char *val, int d, int s, const struct afswtch *afp) in setcarp_advskew() argument
176 setcarp_advbase(const char *val, int d, int s, const struct afswtch *afp) in setcarp_advbase() argument
186 setcarp_state(const char *val, int d, int s, const struct afswtch *afp) in setcarp_state() argument
HDaf_inet6.c75 const struct afswtch *afp) in setifprefixlen() argument
77 if (afp->af_getprefix != NULL) in setifprefixlen()
78 afp->af_getprefix(addr, MASK); in setifprefixlen()
84 const struct afswtch *afp) in setip6flags() argument
86 if (afp->af_af != AF_INET6) in setip6flags()
97 const struct afswtch *afp) in setip6lifetime() argument
107 if (afp->af_af != AF_INET6) in setip6lifetime()
120 const struct afswtch *afp) in setip6pltime() argument
122 setip6lifetime("pltime", seconds, s, afp); in setip6pltime()
127 const struct afswtch *afp) in setip6vltime() argument
[all …]
HDifconfig.h46 typedef void c_func(const char *cmd, int arg, int s, const struct afswtch *afp);
47 typedef void c_func2(const char *arg1, const char *arg2, int s, const struct afswtch *afp);
71 void name(const char *cmd, int arg, int s, const struct afswtch *afp)
73 void name(const char *arg1, const char *arg2, int s, const struct afswtch *afp)
HDiflagg.c37 setlaggport(const char *val, int d, int s, const struct afswtch *afp) in setlaggport() argument
59 unsetlaggport(const char *val, int d, int s, const struct afswtch *afp) in unsetlaggport() argument
72 setlaggproto(const char *val, int d, int s, const struct afswtch *afp) in setlaggproto() argument
96 setlaggflowidshift(const char *val, int d, int s, const struct afswtch *afp) in setlaggflowidshift() argument
112 setlaggrr_limit(const char *val, int d, int s, const struct afswtch *afp) in setlaggrr_limit() argument
128 setlaggsetopt(const char *val, int d, int s, const struct afswtch *afp) in setlaggsetopt() argument
158 setlagghash(const char *val, int d, int s, const struct afswtch *afp) in setlagghash() argument
HDifgre.c73 const struct afswtch *afp) in setifgrekey() argument
85 const struct afswtch *afp) in setifgreport() argument
96 setifgreopts(const char *val, int d, int s, const struct afswtch *afp) in setifgreopts() argument
HDifmedia.c192 setmedia(const char *val, int d, int s, const struct afswtch *afp) in setmedia() argument
219 setmediaopt(const char *val, int d, int s, const struct afswtch *afp) in setmediaopt() argument
226 unsetmediaopt(const char *val, int d, int s, const struct afswtch *afp) in unsetmediaopt() argument
258 setmediainst(const char *val, int d, int s, const struct afswtch *afp) in setmediainst() argument
277 setmediamode(const char *val, int d, int s, const struct afswtch *afp) in setmediamode() argument
HDiffib.c66 const struct afswtch *afp) in setiffib() argument
85 const struct afswtch *afp) in settunfib() argument
HDaf_nd6.c75 const struct afswtch *afp) in setnd6flags() argument
99 const struct afswtch *afp) in setnd6defif() argument
HDifgif.c70 setgifopts(const char *val, int d, int s, const struct afswtch *afp) in setgifopts() argument
HDaf_inet.c174 in_postproc(int s, const struct afswtch *afp, int newaddr, int ifflags) in in_postproc() argument
HDifvxlan.c574 setvxlan_flush(const char *val, int d, int s, const struct afswtch *afp) in setvxlan_flush() argument
/freebsd-13-stable/sys/net/altq/
HDaltq_subr.c1351 struct acc_filter *afp, *prev, *tmp; local
1363 afp = malloc(sizeof(*afp), M_DEVBUF, M_WAITOK | M_ZERO);
1364 afp->f_filter = *filter;
1365 afp->f_class = class;
1369 struct flow_filter *filter4 = &afp->f_filter;
1402 (struct flow_filter6 *)&afp->f_filter;
1434 afp->f_handle = get_filt_handle(classifier, i);
1437 afp->f_fbmask = filt2fibmask(filter);
1438 classifier->acc_fbmask |= afp->f_fbmask;
1447 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
[all …]
/freebsd-13-stable/sys/kern/
HDuipc_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()
289 if (afp->accf_create != NULL) { in accept_filt_setopt()
290 accept_filter_arg = afp->accf_create(so, afap->af_arg); in accept_filt_setopt()
296 so->sol_accept_filter = afp; in accept_filt_setopt()
/freebsd-13-stable/sys/netpfil/ipfilter/netinet/
HDradix_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-13-stable/sbin/etherswitchcfg/
HDifmedia.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-13-stable/sbin/ipf/ippool/
HDippool_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-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/types/
HDtst.complex.d67 int (*afp[2])(); member
/freebsd-13-stable/usr.bin/getaddrinfo/
HDgetaddrinfo.c179 parse_af(const char *string, int *afp) in parse_af() argument
182 return parse_numeric_tabular(string, afp, address_families, in parse_af()
/freebsd-13-stable/usr.sbin/cxgbetool/
HDcxgbetool.c652 parse_ipaddr(const char *param, const char *args[], int *afp, uint8_t addr[], in parse_ipaddr() argument
680 if (*afp == AF_UNSPEC) in parse_ipaddr()
681 *afp = af; in parse_ipaddr()
682 else if (*afp != af) { in parse_ipaddr()
684 args[1], *afp == AF_INET ? "IP" : "IPv6"); in parse_ipaddr()
/freebsd-13-stable/contrib/tcpdump/
HDprint-bgp.c1654 uint16_t *afp, uint8_t *safip) in bgp_mp_af_print() argument
1660 *afp = af; in bgp_mp_af_print()