Home
last modified time | relevance | path

Searched refs:af (Results 1 – 25 of 105) sorted by relevance

12345

/f-stack/freebsd/netpfil/pf/
H A Dpf_lb.c91 switch (af) { in pf_hash()
157 else if (r->af && r->af != pd->af) in pf_match_translation()
233 key.af = af; in pf_get_sport()
353 switch (af) { in pf_map_addr()
385 PF_ACPY(naddr, raddr, af); in pf_map_addr()
392 switch (af) { in pf_map_addr()
516 pf_print_host(naddr, 0, af); in pf_map_addr()
593 switch (pd->af) { in pf_get_translation()
623 pd->af); in pf_get_translation()
627 switch (pd->af) { in pf_get_translation()
[all …]
H A Dpf.c761 (*sn)->af = af; in pf_insert_src_node()
1238 sk->af = pd->af; in pf_state_key_setup()
3545 else if (r->af && r->af != af) in pf_test_rule()
3985 else if (r->af && r->af != af) in pf_test_fragment()
4467 key.af = pd->af; in pf_test_state_tcp()
4632 key.af = pd->af; in pf_test_state_udp()
4738 key.af = pd->af; in pf_test_state_icmp()
4827 pd2.af = pd->af; in pf_test_state_icmp()
4956 key.af = pd2.af; in pf_test_state_icmp()
5077 key.af = pd2.af; in pf_test_state_icmp()
[all …]
H A Dpf_if.c432 switch (af) { in pfi_match_addr()
520 dyn->pfid_af = af; in pfi_dynaddr_setup()
626 int net2, af; in pfi_instance_add() local
634 if (af != AF_INET && af != AF_INET6) in pfi_instance_add()
655 af == AF_INET6 && in pfi_instance_add()
665 if (af == AF_INET) in pfi_instance_add()
667 else if (af == AF_INET6) in pfi_instance_add()
671 if (af == AF_INET) in pfi_instance_add()
674 else if (af == AF_INET6) in pfi_instance_add()
720 p->pfra_af = af; in pfi_address_add()
[all …]
/f-stack/tools/netstat/
H A Dmain.c261 af = AF_UNSPEC; in main()
281 af = AF_INET; in main()
594 if (af == AF_INET || af == AF_UNSPEC) in main()
597 if (af == AF_INET6 || af == AF_UNSPEC) in main()
601 if (af == AF_INET || af == AF_UNSPEC) in main()
604 if (af == AF_INET6 || af == AF_UNSPEC) in main()
630 if (af == AF_INET || af == AF_UNSPEC) in main()
634 if (af == AF_INET6 || af == AF_UNSPEC) in main()
639 if (af == PF_KEY || af == AF_UNSPEC) in main()
644 if (af == AF_NETGRAPH || af == AF_UNSPEC) in main()
[all …]
H A Dnhgrp.c55 #define WID_GW_DEFAULT(af) (((af) == AF_INET6) ? 40 : 18) argument
209 mib[3] = af; in dump_nhgrp_sysctl()
215 af, fibnum); in dump_nhgrp_sysctl()
259 dump_nhgrp_sysctl(fibnum, af, &nd); in print_nhgrp_sysctl()
264 wid_gw = WID_GW_DEFAULT(af); in print_nhgrp_sysctl()
266 pr_family(af); in print_nhgrp_sysctl()
269 print_nhgroup_header(af); in print_nhgrp_sysctl()
312 prepare_nh_map(int fibnum, int af) in prepare_nh_map() argument
330 nhgrp_print(int fibnum, int af) in nhgrp_print() argument
345 prepare_nh_map(fibnum, af); in nhgrp_print()
[all …]
H A Dnhops.c72 #define WID_GW_DEFAULT(af) 18 /* width of gateway column */ argument
75 #define WID_DST_DEFAULT(af) \ argument
76 ((af) == AF_INET6 ? (numeric_addr ? 33: 18) : 18)
77 #define WID_GW_DEFAULT(af) \ argument
78 ((af) == AF_INET6 ? (numeric_addr ? 29 : 18) : 18)
79 #define WID_IF_DEFAULT(af) ((af) == AF_INET6 ? 8 : (Wflag ? 10 : 8)) argument
357 mib[3] = af; in dump_nhops_sysctl()
401 print_nhops_sysctl(int fibnum, int af) in print_nhops_sysctl() argument
408 dump_nhops_sysctl(fibnum, af, &nd); in print_nhops_sysctl()
463 nhops_print(int fibnum, int af) in nhops_print() argument
[all …]
H A Droute.c121 routepr(int fibnum, int af) in routepr() argument
154 p_rtable_sysctl(fibnum, af); in routepr()
198 #define WID_GW_DEFAULT(af) 18 /* width of gateway column */ argument
201 #define WID_DST_DEFAULT(af) \ argument
202 ((af) == AF_INET6 ? (numeric_addr ? 33: 18) : 18)
203 #define WID_GW_DEFAULT(af) \ argument
204 ((af) == AF_INET6 ? (numeric_addr ? 29 : 18) : 18)
205 #define WID_IF_DEFAULT(af) ((af) == AF_INET6 ? 8 : (Wflag ? 10 : 8)) argument
245 p_rtable_sysctl(int fibnum, int af) in p_rtable_sysctl() argument
260 mib[3] = af; in p_rtable_sysctl()
[all …]
/f-stack/freebsd/netipsec/
H A Dipsec_input.c167 dst_address.sa.sa_family = af; in ipsec_common_input()
168 switch (af) { in ipsec_common_input()
291 af = saidx->dst.sa.sa_family; in ipsec4_common_input_cb()
292 IPSEC_ASSERT(af == AF_INET, ("unexpected af %u", af)); in ipsec4_common_input_cb()
403 af = AF_INET; in ipsec4_common_input_cb()
408 af = AF_INET6; in ipsec4_common_input_cb()
500 int prot, af, sproto; in ipsec6_common_input_cb() local
508 af = saidx->dst.sa.sa_family; in ipsec6_common_input_cb()
509 IPSEC_ASSERT(af == AF_INET6, ("unexpected af %u", af)); in ipsec6_common_input_cb()
594 af = AF_INET; in ipsec6_common_input_cb()
[all …]
/f-stack/freebsd/net/
H A Dif_gif.c292 uint32_t af; in gif_transmit() local
317 af = AF_LINK; in gif_transmit()
322 BPF_MTAP2(ifp, &af, sizeof(af), m); in gif_transmit()
327 switch (af) { in gif_transmit()
407 uint32_t af; in gif_output() local
410 bcopy(dst->sa_data, &af, sizeof(af)); in gif_output()
435 int isr, n, af; in gif_input() local
449 af = AF_INET; in gif_input()
464 af = AF_INET6; in gif_input()
479 af = AF_LINK; in gif_input()
[all …]
H A Dif_loop.c207 u_int32_t af; in looutput() local
236 bcopy(dst->sa_data, &af, sizeof(af)); in looutput()
238 af = dst->sa_family; in looutput()
241 switch (af) { in looutput()
267 printf("looutput: af=%d unexpected\n", af); in looutput()
272 return (if_simloop(ifp, m, af, 0)); in looutput()
286 if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen) in if_simloop() argument
316 u_int32_t af1 = af; in if_simloop()
346 switch (af) { in if_simloop()
359 printf("if_simloop: can't handle af=%d\n", af); in if_simloop()
H A Dif_gre.c515 int hlen, isr, af; in gre_input() local
577 af = AF_INET;
581 af = AF_INET6;
593 BPF_MTAP2(ifp, &af, sizeof(af), m);
611 uint32_t af;
614 bcopy(dst->sa_data, &af, sizeof(af));
651 switch (af) {
668 switch (af) {
697 uint32_t af, flowid;
722 BPF_MTAP2(ifp, &af, sizeof(af), m);
[all …]
H A Dif_disc.c180 u_int32_t af; in discoutput() local
186 bcopy(dst->sa_data, &af, sizeof(af)); in discoutput()
188 af = dst->sa_family; in discoutput()
191 bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m); in discoutput()
H A Dif_enc.c83 u_int32_t af; member
211 int32_t hhook_type, uint8_t enc, uint8_t af) in enc_bpftap() argument
223 hdr.af = af; in enc_bpftap()
258 if (ctx->af != hhook_id) in enc_hhook()
261 enc_bpftap(ifp, *ctx->mp, ctx->sav, hhook_type, ctx->enc, ctx->af); in enc_hhook()
315 IPSEC_ENC_AFTER_PFIL, ctx->af); in enc_hhook()
H A Dif_ipsec.c320 ipsec_getpolicy(struct ipsec_softc *sc, int dir, sa_family_t af) in ipsec_getpolicy() argument
323 switch (af) { in ipsec_getpolicy()
341 ipsec_getsaidx(struct ipsec_softc *sc, int dir, sa_family_t af) in ipsec_getsaidx() argument
345 sp = ipsec_getpolicy(sc, dir, af); in ipsec_getsaidx()
358 uint32_t af; in ipsec_transmit() local
383 af = AF_INET; in ipsec_transmit()
388 af = AF_INET6; in ipsec_transmit()
408 sp = ipsec_getpolicy(sc, IPSEC_DIR_OUTBOUND, af); in ipsec_transmit()
412 BPF_MTAP2(ifp, &af, sizeof(af), m); in ipsec_transmit()
416 switch (af) { in ipsec_transmit()
[all …]
/f-stack/freebsd/net/route/
H A Droute_ddb.c217 int af; in _DB_FUNC() local
230 af = AF_INET6; in _DB_FUNC()
231 u.dest_sin6.sin6_family = af; in _DB_FUNC()
235 af = AF_INET; in _DB_FUNC()
236 u.dest_sin.sin_family = af; in _DB_FUNC()
241 if (inet_pton(af, buf, dst_addrp) != 1) in _DB_FUNC()
244 if (inet_ntop(af, dst_addrp, abuf, sizeof(abuf)) != NULL) in _DB_FUNC()
250 rh = rt_tables_get_rnh(RT_DEFAULT_FIB, af); in _DB_FUNC()
/f-stack/freebsd/netgraph/
H A Dng_gif.c106 static void ng_gif_input(struct ifnet *ifp, struct mbuf **mp, int af);
112 static void ng_gif_input2(node_p node, struct mbuf **mp, int af);
113 static int ng_gif_glue_af(struct mbuf **mp, int af);
170 ng_gif_input(struct ifnet *ifp, struct mbuf **mp, int af) in ng_gif_input() argument
178 ng_gif_input2(node, mp, af); in ng_gif_input()
186 ng_gif_input_orphan(struct ifnet *ifp, struct mbuf *m, int af) in ng_gif_input_orphan() argument
196 ng_gif_input2(node, &m, af); in ng_gif_input_orphan()
206 ng_gif_input2(node_p node, struct mbuf **mp, int af) in ng_gif_input2() argument
212 if ((error = ng_gif_glue_af(mp, af)) != 0) in ng_gif_input2()
286 ng_gif_glue_af(struct mbuf **mp, int af) in ng_gif_glue_af() argument
[all …]
H A Dng_cisco.c93 uint16_t af; /* address family, -1 = downstream */ member
198 sc->downstream.af = 0xffff; in cisco_constructor()
199 sc->inet.af = AF_INET; in cisco_constructor()
200 sc->inet6.af = AF_INET6; in cisco_constructor()
201 sc->atalk.af = AF_APPLETALK; in cisco_constructor()
202 sc->ipx.af = AF_IPX; in cisco_constructor()
352 if (pep->af == 0xffff) in cisco_rcvdata()
368 switch (pep->af) { in cisco_rcvdata()
423 if (pep->af == 0xffff) in cisco_disconnect()
/f-stack/freebsd/contrib/device-tree/src/arm/
H A Dpxa2xx.dtsi11 #define PMMUX(func, pin, af) \ argument
14 function = #af; \
16 #define PMMUX_LPM_LOW(func, pin, af) \ argument
19 function = #af; \
22 #define PMMUX_LPM_HIGH(func, pin, af) \ argument
25 function = #af; \
/f-stack/tools/compat/
H A Dioctl.c56 int af = AF_INET; in ioctl_va() local
73 af = va_arg(ap, int); in ioctl_va()
102 if (af == AF_INET6) { in ioctl_va()
106 if (af == AF_INET) in ioctl_va()
/f-stack/dpdk/lib/librte_eal/windows/include/arpa/
H A Dinet.h23 inet_pton(int af, const char *src, void *dst);
28 inet_ntop(int af, const void *src, char *dst, socklen_t size);
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dradix_ipf.c1233 addrfamily_t af; in main() local
1261 setaddr(&af, ttable[i].host); in main()
1270 test_addr(rnh, i, &af, -1); in main()
1275 setaddr(&af, mtable[i][0]); in main()
1276 test_addr(rnh, i, &af, -1); in main()
1285 test_addr(rnh, i, &af, 3); in main()
1333 addrfamily_t af; local
1338 memset(&af, 0, sizeof(af));
1348 rn = ipf_rx_match(rnh, &af);
1371 addrfamily_t af; local
[all …]
/f-stack/tools/ipfw/
H A Dtables.c1183 int mask, af; in tentry_fill_key_type() local
1193 af = 0; in tentry_fill_key_type()
1210 af = AF_INET; in tentry_fill_key_type()
1220 af = AF_INET6; in tentry_fill_key_type()
1228 af = AF_INET; in tentry_fill_key_type()
1251 af = 0; in tentry_fill_key_type()
1259 if (af != 0 && af != AF_INET) in tentry_fill_key_type()
1265 if (af != 0 && af != AF_INET6) in tentry_fill_key_type()
1325 if (af != 0 && af != AF_INET) in tentry_fill_key_type()
1331 if (af != 0 && af != AF_INET6) in tentry_fill_key_type()
[all …]
/f-stack/tools/compat/include/net/
H A Dpfvar.h173 &(aw)->v.a.mask, (x), (af))) || \
175 !PF_AZERO(&(aw)->v.a.mask, (af)) && \
177 &(aw)->v.a.mask, (x), (af))))) != \
278 sa_family_t af; member
316 sa_family_t af; member
360 sa_family_t af; member
368 sa_family_t af; member
475 sa_family_t af; member
779 sa_family_t af; member
883 u_int8_t af; member
[all …]
/f-stack/dpdk/app/test-fib/
H A Dmain.c412 gen_rnd_lookup_tbl(int af) in gen_rnd_lookup_tbl() argument
420 if (af == AF_INET) { in gen_rnd_lookup_tbl()
459 ret = inet_pton(af, s, addr); in _inet_net_pton()
539 parse_lookup(FILE *f, int af) in parse_lookup() argument
559 dump_lookup(int af) in dump_lookup() argument
572 if (af == AF_INET) { in dump_lookup()
1283 if (af == AF_INET) { in main()
1295 if (af == AF_INET) in main()
1308 gen_rnd_lookup_tbl(af); in main()
1310 ret = parse_lookup(fl, af); in main()
[all …]
/f-stack/dpdk/app/test-sad/
H A Dmain.c435 print_addr(int af, const void *addr) in print_addr() argument
440 ret = inet_ntop(af, addr, str, sizeof(str)); in print_addr()
446 print_tuple(int af, uint32_t spi, const void *dip, const void *sip) in print_tuple() argument
450 print_addr(af, dip); in print_tuple()
452 print_addr(af, sip); in print_tuple()
468 int af; in print_result() local
470 af = (config.ipv6) ? AF_INET6 : AF_INET; in print_result()
479 print_tuple(af, spi, dip, sip); in print_result()
498 print_tuple(af, spi, dip, sip); in print_result()
506 print_tuple(af, spi, dip, sip); in print_result()

12345