Home
last modified time | relevance | path

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

123

/net/netfilter/
Dx_tables.c76 u_int8_t af = target->family; in xt_register_target() local
78 mutex_lock(&xt[af].mutex); in xt_register_target()
79 list_add(&target->list, &xt[af].target); in xt_register_target()
80 mutex_unlock(&xt[af].mutex); in xt_register_target()
88 u_int8_t af = target->family; in xt_unregister_target() local
90 mutex_lock(&xt[af].mutex); in xt_unregister_target()
92 mutex_unlock(&xt[af].mutex); in xt_unregister_target()
126 u_int8_t af = match->family; in xt_register_match() local
128 mutex_lock(&xt[af].mutex); in xt_register_match()
129 list_add(&match->list, &xt[af].match); in xt_register_match()
[all …]
/net/netfilter/ipvs/
Dip_vs_proto_ah_esp.c44 ah_esp_conn_fill_param_proto(struct net *net, int af, in ah_esp_conn_fill_param_proto() argument
49 ip_vs_conn_fill_param(net, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto()
53 ip_vs_conn_fill_param(net, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto()
59 ah_esp_conn_in_get(int af, const struct sk_buff *skb, in ah_esp_conn_in_get() argument
67 ah_esp_conn_fill_param_proto(net, af, iph, inverse, &p); in ah_esp_conn_in_get()
78 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get()
79 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get()
87 ah_esp_conn_out_get(int af, const struct sk_buff *skb, in ah_esp_conn_out_get() argument
94 ah_esp_conn_fill_param_proto(net, af, iph, inverse, &p); in ah_esp_conn_out_get()
101 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_out_get()
[all …]
Dip_vs_proto_udp.c32 udp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in udp_conn_schedule() argument
48 svc = ip_vs_service_find(net, af, skb->mark, iph->protocol, in udp_conn_schedule()
84 udp_fast_csum_update(int af, struct udphdr *uhdr, in udp_fast_csum_update() argument
90 if (af == AF_INET6) in udp_fast_csum_update()
106 udp_partial_csum_update(int af, struct udphdr *uhdr, in udp_partial_csum_update() argument
112 if (af == AF_INET6) in udp_partial_csum_update()
136 if (cp->af == AF_INET6 && iph->fragoffs) in udp_snat_handler()
149 if (pp->csum_check && !pp->csum_check(cp->af, skb, pp)) in udp_snat_handler()
171 udp_partial_csum_update(cp->af, udph, &cp->daddr, &cp->vaddr, in udp_snat_handler()
176 udp_fast_csum_update(cp->af, udph, &cp->daddr, &cp->vaddr, in udp_snat_handler()
[all …]
Dip_vs_conn.c111 static unsigned int ip_vs_conn_hashkey(struct net *net, int af, unsigned int proto, in ip_vs_conn_hashkey() argument
116 if (af == AF_INET6) in ip_vs_conn_hashkey()
144 return ip_vs_conn_hashkey(p->net, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param()
151 ip_vs_conn_fill_param(ip_vs_conn_net(cp), cp->af, cp->protocol, in ip_vs_conn_hashkey_conn()
277 cp->af == p->af && in __ip_vs_conn_in_get()
278 ip_vs_addr_equal(p->af, p->caddr, &cp->caddr) && in __ip_vs_conn_in_get()
279 ip_vs_addr_equal(p->af, p->vaddr, &cp->vaddr) && in __ip_vs_conn_in_get()
309 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get()
310 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get()
317 ip_vs_conn_fill_param_proto(int af, const struct sk_buff *skb, in ip_vs_conn_fill_param_proto() argument
[all …]
Dip_vs_lblc.c94 int af; /* address family */ member
153 ip_vs_lblc_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_lblc_hashkey() argument
158 if (af == AF_INET6) in ip_vs_lblc_hashkey()
173 unsigned int hash = ip_vs_lblc_hashkey(en->af, &en->addr); in ip_vs_lblc_hash()
182 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument
185 unsigned int hash = ip_vs_lblc_hashkey(af, addr); in ip_vs_lblc_get()
189 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblc_get()
202 u16 af, struct ip_vs_dest *dest) in ip_vs_lblc_new() argument
206 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new()
216 en->af = af; in ip_vs_lblc_new()
[all …]
Dip_vs_proto_tcp.c35 tcp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in tcp_conn_schedule() argument
54 (svc = ip_vs_service_find(net, af, skb->mark, iph->protocol, in tcp_conn_schedule()
89 tcp_fast_csum_update(int af, struct tcphdr *tcph, in tcp_fast_csum_update() argument
95 if (af == AF_INET6) in tcp_fast_csum_update()
110 tcp_partial_csum_update(int af, struct tcphdr *tcph, in tcp_partial_csum_update() argument
116 if (af == AF_INET6) in tcp_partial_csum_update()
140 if (cp->af == AF_INET6 && iph->fragoffs) in tcp_snat_handler()
153 if (pp->csum_check && !pp->csum_check(cp->af, skb, pp)) in tcp_snat_handler()
171 tcp_partial_csum_update(cp->af, tcph, &cp->daddr, &cp->vaddr, in tcp_snat_handler()
176 tcp_fast_csum_update(cp->af, tcph, &cp->daddr, &cp->vaddr, in tcp_snat_handler()
[all …]
Dip_vs_core.c212 ip_vs_conn_fill_param(svc->net, svc->af, protocol, caddr, cport, vaddr, in ip_vs_conn_fill_param_persist()
245 if (svc->af == AF_INET6) in ip_vs_sched_persist()
254 IP_VS_DBG_ADDR(svc->af, &iph->saddr), ntohs(src_port), in ip_vs_sched_persist()
255 IP_VS_DBG_ADDR(svc->af, &iph->daddr), ntohs(dst_port), in ip_vs_sched_persist()
256 IP_VS_DBG_ADDR(svc->af, &snet)); in ip_vs_sched_persist()
337 ct = ip_vs_conn_new(&param, dest->af, &dest->addr, dport, in ip_vs_sched_persist()
363 ip_vs_conn_fill_param(svc->net, svc->af, iph->protocol, &iph->saddr, in ip_vs_sched_persist()
366 cp = ip_vs_conn_new(&param, dest->af, &dest->addr, dport, flags, dest, in ip_vs_sched_persist()
433 IP_VS_DBG_PKT(12, svc->af, pp, skb, 0, in ip_vs_schedule()
442 (cp = pp->conn_in_get(svc->af, skb, iph, 1))) { in ip_vs_schedule()
[all …]
Dip_vs_ctl.c266 ip_vs_svc_hashkey(struct net *net, int af, unsigned int proto, in ip_vs_svc_hashkey() argument
274 if (af == AF_INET6) in ip_vs_svc_hashkey()
312 hash = ip_vs_svc_hashkey(svc->net, svc->af, svc->protocol, in ip_vs_svc_hash()
360 __ip_vs_service_find(struct net *net, int af, __u16 protocol, in __ip_vs_service_find() argument
367 hash = ip_vs_svc_hashkey(net, af, protocol, vaddr, vport); in __ip_vs_service_find()
370 if ((svc->af == af) in __ip_vs_service_find()
371 && ip_vs_addr_equal(af, &svc->addr, vaddr) in __ip_vs_service_find()
388 __ip_vs_svc_fwm_find(struct net *net, int af, __u32 fwmark) in __ip_vs_svc_fwm_find() argument
397 if (svc->fwmark == fwmark && svc->af == af in __ip_vs_svc_fwm_find()
409 ip_vs_service_find(struct net *net, int af, __u32 fwmark, __u16 protocol, in ip_vs_service_find() argument
[all …]
Dip_vs_lblcr.c204 IP_VS_DBG_ADDR(least->af, &least->addr), in ip_vs_dest_set_min()
250 IP_VS_DBG_ADDR(most->af, &most->addr), ntohs(most->port), in ip_vs_dest_set_max()
264 int af; /* address family */ member
316 ip_vs_lblcr_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_lblcr_hashkey() argument
321 if (af == AF_INET6) in ip_vs_lblcr_hashkey()
336 unsigned int hash = ip_vs_lblcr_hashkey(en->af, &en->addr); in ip_vs_lblcr_hash()
345 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument
348 unsigned int hash = ip_vs_lblcr_hashkey(af, addr); in ip_vs_lblcr_get()
352 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblcr_get()
365 u16 af, struct ip_vs_dest *dest) in ip_vs_lblcr_new() argument
[all …]
Dip_vs_sh.c89 ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_sh_hashkey() argument
95 if (af == AF_INET6) in ip_vs_sh_hashkey()
111 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get()
133 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback()
141 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_sh_get_fallback()
148 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback()
156 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_get_fallback()
195 i, IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_reassign()
344 IP_VS_DBG_ADDR(svc->af, &iph->saddr), in ip_vs_sh_schedule()
345 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_schedule()
Dip_vs_dh.c75 static inline unsigned int ip_vs_dh_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_dh_hashkey() argument
80 if (af == AF_INET6) in ip_vs_dh_hashkey()
92 ip_vs_dh_get(int af, struct ip_vs_dh_state *s, const union nf_inet_addr *addr) in ip_vs_dh_get() argument
94 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
226 dest = ip_vs_dh_get(svc->af, s, &iph->daddr); in ip_vs_dh_schedule()
236 IP_VS_DBG_ADDR(svc->af, &iph->daddr), in ip_vs_dh_schedule()
237 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_dh_schedule()
Dip_vs_pe_sip.c73 ip_vs_fill_iph_skb(p->af, skb, &iph); in ip_vs_sip_fill_param()
112 if (ct->af == p->af && in ip_vs_sip_ct_match()
113 ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) && in ip_vs_sip_ct_match()
116 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af, in ip_vs_sip_ct_match()
128 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_sip_ct_match()
Dip_vs_proto_sctp.c12 sctp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in sctp_conn_schedule() argument
39 (svc = ip_vs_service_find(net, af, skb->mark, iph->protocol, in sctp_conn_schedule()
87 if (cp->af == AF_INET6 && iph->fragoffs) in sctp_snat_handler()
99 if (pp->csum_check && !pp->csum_check(cp->af, skb, pp)) in sctp_snat_handler()
134 if (cp->af == AF_INET6 && iph->fragoffs) in sctp_dnat_handler()
146 if (pp->csum_check && !pp->csum_check(cp->af, skb, pp)) in sctp_dnat_handler()
174 sctp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp) in sctp_csum_check() argument
181 if (af == AF_INET6) in sctp_csum_check()
196 IP_VS_DBG_RL_PKT(0, af, pp, skb, 0, in sctp_csum_check()
378 ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in set_sctp_state()
[all …]
Dip_vs_xmit.c557 !ip_vs_addr_equal(cp->af, &cp->vaddr, &cp->daddr)) in ip_vs_nat_send_or_cont()
616 if (__ip_vs_get_out_rt(cp->af, skb, NULL, iph->daddr, in ip_vs_bypass_xmit()
646 if (__ip_vs_get_out_rt_v6(cp->af, skb, NULL, &ipvsh->daddr.in6, NULL, in ip_vs_bypass_xmit_v6()
693 local = __ip_vs_get_out_rt(cp->af, skb, cp->dest, cp->daddr.ip, in ip_vs_nat_xmit()
781 local = __ip_vs_get_out_rt_v6(cp->af, skb, cp->dest, &cp->daddr.in6, in ip_vs_nat_xmit_v6()
970 local = __ip_vs_get_out_rt(cp->af, skb, cp->dest, cp->daddr.ip, in ip_vs_tunnel_xmit()
992 skb = ip_vs_prepare_tunneled_skb(skb, cp->af, max_headroom, in ip_vs_tunnel_xmit()
999 skb, false, __tun_gso_type_mask(AF_INET, cp->af)); in ip_vs_tunnel_xmit()
1064 local = __ip_vs_get_out_rt_v6(cp->af, skb, cp->dest, &cp->daddr.in6, in ip_vs_tunnel_xmit_v6()
1084 skb = ip_vs_prepare_tunneled_skb(skb, cp->af, max_headroom, in ip_vs_tunnel_xmit_v6()
[all …]
Dip_vs_sync.c538 if (unlikely(cp->af != AF_INET)) in ip_vs_sync_conn_v0()
667 if (cp->af == AF_INET6) in ip_vs_sync_conn()
717 s->v4.type = (cp->af == AF_INET6 ? STYPE_F_INET6 : 0); in ip_vs_sync_conn()
730 if (cp->af == AF_INET6) { in ip_vs_sync_conn()
784 ip_vs_conn_fill_param_sync(struct net *net, int af, union ip_vs_sync_conn *sc, in ip_vs_conn_fill_param_sync() argument
790 if (af == AF_INET6) in ip_vs_conn_fill_param_sync()
791 ip_vs_conn_fill_param(net, af, sc->v6.protocol, in ip_vs_conn_fill_param_sync()
798 ip_vs_conn_fill_param(net, af, sc->v4.protocol, in ip_vs_conn_fill_param_sync()
1056 unsigned int af, state, pe_data_len=0, pe_name_len=0; in ip_vs_proc_sync_conn() local
1065 af = AF_INET6; in ip_vs_proc_sync_conn()
[all …]
/net/sctp/
Dbind_addr.c230 struct sctp_af *af; in sctp_bind_addrs_to_raw() local
255 af = sctp_get_af_specific(addr->a.v4.sin_family); in sctp_bind_addrs_to_raw()
256 len = af->to_addr_param(&addr->a, &rawaddr); in sctp_bind_addrs_to_raw()
279 struct sctp_af *af; in sctp_raw_to_bind_addrs() local
286 af = sctp_get_af_specific(param_type2af(param->type)); in sctp_raw_to_bind_addrs()
287 if (unlikely(!af)) { in sctp_raw_to_bind_addrs()
293 af->from_addr_param(&addr, rawaddr, htons(port), 0); in sctp_raw_to_bind_addrs()
377 struct sctp_af *af; in sctp_bind_addr_state() local
380 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_bind_addr_state()
381 if (unlikely(!af)) in sctp_bind_addr_state()
[all …]
Dinput.c119 struct sctp_af *af; in sctp_rcv() local
151 af = sctp_get_af_specific(family); in sctp_rcv()
152 if (unlikely(!af)) in sctp_rcv()
156 af->from_skb(&src, skb, 1); in sctp_rcv()
157 af->from_skb(&dest, skb, 0); in sctp_rcv()
170 if (!af->addr_valid(&src, NULL, skb) || in sctp_rcv()
171 !af->addr_valid(&dest, NULL, skb)) in sctp_rcv()
187 if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb))) { in sctp_rcv()
478 struct sctp_af *af; in sctp_err_lookup() local
486 af = sctp_get_af_specific(family); in sctp_err_lookup()
[all …]
Dsm_make_chunk.c109 struct sctp_af *af; in sctp_chunk_iif() local
112 af = sctp_get_af_specific(ipver2af(ip_hdr(chunk->skb)->version)); in sctp_chunk_iif()
113 if (af) in sctp_chunk_iif()
114 iif = af->skb_iif(chunk->skb); in sctp_chunk_iif()
1576 struct sctp_af *af; in sctp_make_temp_asoc() local
1586 af = sctp_get_af_specific(ipver2af(ip_hdr(skb)->version)); in sctp_make_temp_asoc()
1587 if (unlikely(!af)) in sctp_make_temp_asoc()
1589 af->from_skb(&asoc->c.peer_addr, skb, 1); in sctp_make_temp_asoc()
2298 struct sctp_af *af; in sctp_process_init() local
2323 af = sctp_get_af_specific(param_type2af(param.p->type)); in sctp_process_init()
[all …]
Dsocket.c210 struct sctp_af *af; in sctp_verify_addr() local
213 af = sctp_sockaddr_af(sctp_sk(sk), addr, len); in sctp_verify_addr()
214 if (!af) in sctp_verify_addr()
218 if (!af->addr_valid(addr, sctp_sk(sk), NULL)) in sctp_verify_addr()
330 struct sctp_af *af; in sctp_sockaddr_af() local
346 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_sockaddr_af()
348 if (len < af->sockaddr_len) in sctp_sockaddr_af()
351 return af; in sctp_sockaddr_af()
361 struct sctp_af *af; in sctp_do_bind() local
366 af = sctp_sockaddr_af(sp, addr, len); in sctp_do_bind()
[all …]
Dproc.c127 struct sctp_af *af; in sctp_seq_dump_local_addrs() local
147 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_seq_dump_local_addrs()
148 if (primary && af->cmp_addr(addr, primary)) { in sctp_seq_dump_local_addrs()
151 af->seq_dump_addr(seq, addr); in sctp_seq_dump_local_addrs()
161 struct sctp_af *af; in sctp_seq_dump_remote_addrs() local
171 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_seq_dump_remote_addrs()
172 if (af->cmp_addr(addr, primary)) { in sctp_seq_dump_remote_addrs()
175 af->seq_dump_addr(seq, addr); in sctp_seq_dump_remote_addrs()
Dipv6.c867 struct sctp_af *af; in sctp_inet6_bind_verify() local
871 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_inet6_bind_verify()
891 af = opt->pf->af; in sctp_inet6_bind_verify()
893 return af->available(addr, opt); in sctp_inet6_bind_verify()
901 struct sctp_af *af = NULL; in sctp_inet6_send_verify() local
905 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_inet6_send_verify()
920 af = opt->pf->af; in sctp_inet6_send_verify()
923 return af != NULL; in sctp_inet6_send_verify()
1052 .af = &sctp_af_inet6,
Dprotocol.c170 struct sctp_af *af; in sctp_get_local_addr_list() local
175 af = list_entry(pos, struct sctp_af, list); in sctp_get_local_addr_list()
176 af->copy_addrlist(&net->sctp.local_addr_list, dev); in sctp_get_local_addr_list()
822 int sctp_register_af(struct sctp_af *af) in sctp_register_af() argument
824 switch (af->sa_family) { in sctp_register_af()
828 sctp_af_v4_specific = af; in sctp_register_af()
833 sctp_af_v6_specific = af; in sctp_register_af()
839 INIT_LIST_HEAD(&af->list); in sctp_register_af()
840 list_add_tail(&af->list, &sctp_address_families); in sctp_register_af()
982 .af = &sctp_af_inet
Dtransport.c272 struct sctp_af *af = transport->af_specific; in sctp_transport_route() local
274 af->get_dst(transport, saddr, &transport->fl, sctp_opt2sk(opt)); in sctp_transport_route()
279 af->get_saddr(opt, transport, &transport->fl); in sctp_transport_route()
/net/rxrpc/
DMakefile5 af-rxrpc-y := \
23 af-rxrpc-$(CONFIG_PROC_FS) += ar-proc.o
24 af-rxrpc-$(CONFIG_SYSCTL) += sysctl.o
26 obj-$(CONFIG_AF_RXRPC) += af-rxrpc.o
/net/bridge/
Dbr_netlink.c124 struct nlattr *af; in br_fill_ifinfo() local
138 af = nla_nest_start(skb, IFLA_AF_SPEC); in br_fill_ifinfo()
139 if (!af) in br_fill_ifinfo()
157 nla_nest_end(skb, af); in br_fill_ifinfo()

123