| /net/netfilter/ |
| A D | x_tables.c | 93 mutex_lock(&xt[af].mutex); in xt_register_target() 105 mutex_lock(&xt[af].mutex); in xt_unregister_target() 143 mutex_lock(&xt[af].mutex); in xt_register_match() 219 if (af != NFPROTO_UNSPEC) in xt_find_match() 693 xt[af].number = 0; in xt_compat_flush_offsets() 694 xt[af].cur = 0; in xt_compat_flush_offsets() 734 if (!xt[af].compat_tab) in xt_compat_init_offsets() 737 xt[af].number = number; in xt_compat_init_offsets() 738 xt[af].cur = 0; in xt_compat_init_offsets() 1767 int ret = -EEXIST, af = table->af; in xt_register_template() local [all …]
|
| /net/sctp/ |
| A D | bind_addr.c | 222 struct sctp_af *af; in sctp_bind_addrs_to_raw() local 271 struct sctp_af *af; in sctp_raw_to_bind_addrs() local 279 if (unlikely(!af) || in sctp_raw_to_bind_addrs() 404 struct sctp_af *af; in sctp_bind_addr_state() local 407 if (unlikely(!af)) in sctp_bind_addr_state() 431 struct sctp_af *af; in sctp_find_unmatch_addr() local 443 if (!af) in sctp_find_unmatch_addr() 489 struct sctp_af *af; in sctp_is_any() local 498 if (!af) in sctp_is_any() 568 struct sctp_af *af; in sctp_scope() local [all …]
|
| A D | input.c | 99 struct sctp_af *af; in sctp_rcv() local 140 if (unlikely(!af)) in sctp_rcv() 142 SCTP_INPUT_CB(skb)->af = af; in sctp_rcv() 147 dif = af->skb_iif(skb); in sctp_rcv() 148 sdif = af->skb_sdif(skb); in sctp_rcv() 468 struct sctp_af *af; in sctp_err_lookup() local 479 if (unlikely(!af)) { in sctp_err_lookup() 1135 struct sctp_af *af; in __sctp_rcv_init_lookup() local 1160 if (!af) in __sctp_rcv_init_lookup() 1197 struct sctp_af *af; in __sctp_rcv_asconf_lookup() local [all …]
|
| A D | proc.c | 83 struct sctp_af *af; in sctp_seq_dump_local_addrs() local 103 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_seq_dump_local_addrs() 104 if (primary && af->cmp_addr(addr, primary)) { in sctp_seq_dump_local_addrs() 107 af->seq_dump_addr(seq, addr); in sctp_seq_dump_local_addrs() 117 struct sctp_af *af; in sctp_seq_dump_remote_addrs() local 124 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_seq_dump_remote_addrs() 125 if (af->cmp_addr(addr, primary)) { in sctp_seq_dump_remote_addrs() 128 af->seq_dump_addr(seq, addr); in sctp_seq_dump_remote_addrs()
|
| A D | sm_make_chunk.c | 2355 struct sctp_af *af; in sctp_process_init() local 2543 struct sctp_af *af; in sctp_process_param() local 2658 if (!af) in sctp_process_param() 2858 struct sctp_af *af; in sctp_make_asconf_update_ip() local 3052 struct sctp_af *af; in sctp_process_asconf_param() local 3075 if (unlikely(!af)) in sctp_process_asconf_param() 3086 if (!af->is_any(&addr) && !af->addr_valid(&addr, NULL, asconf->skb)) in sctp_process_asconf_param() 3095 if (af->is_any(&addr)) in sctp_process_asconf_param() 3143 if (af->is_any(&addr)) { in sctp_process_asconf_param() 3167 if (af->is_any(&addr)) in sctp_process_asconf_param() [all …]
|
| A D | socket.c | 218 if (!af) in sctp_verify_addr() 361 return af; in sctp_sockaddr_af() 389 if (!af) { in sctp_do_bind() 920 if (!af) in sctp_asconf_mgmt() 1186 if (!af || af->sockaddr_len > addrs_size) in __sctp_connect() 1686 if (!af) in sctp_sendmsg_new_asoc() 4586 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_setsockopt() local 4819 if (af && addr_len >= af->sockaddr_len) in sctp_connect() 8080 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_getsockopt() local 8516 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_get_port() local [all …]
|
| A D | ipv6.c | 991 struct sctp_af *af; in sctp_inet6_bind_verify() local 995 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_inet6_bind_verify() 1016 af = opt->pf->af; in sctp_inet6_bind_verify() 1018 return af->available(addr, opt); in sctp_inet6_bind_verify() 1026 struct sctp_af *af = NULL; in sctp_inet6_send_verify() local 1030 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_inet6_send_verify() 1045 af = opt->pf->af; in sctp_inet6_send_verify() 1048 return af != NULL; in sctp_inet6_send_verify() 1177 .af = &sctp_af_inet6,
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_proto_udp.c | 99 if (af == AF_INET6) in udp_fast_csum_update() 121 if (af == AF_INET6) in udp_partial_csum_update() 145 if (cp->af == AF_INET6 && iph->fragoffs) in udp_snat_handler() 158 if (!udp_csum_check(cp->af, skb, pp)) in udp_snat_handler() 195 if (cp->af == AF_INET6) in udp_snat_handler() 241 if (!udp_csum_check(cp->af, skb, pp)) in udp_dnat_handler() 279 if (cp->af == AF_INET6) in udp_dnat_handler() 306 if (af == AF_INET6) in udp_csum_check() 324 if (af == AF_INET6) { in udp_csum_check() 330 IP_VS_DBG_RL_PKT(0, af, pp, skb, 0, in udp_csum_check() [all …]
|
| A D | ip_vs_proto_ah_esp.c | 40 ah_esp_conn_fill_param_proto(struct netns_ipvs *ipvs, int af, in ah_esp_conn_fill_param_proto() argument 45 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto() 49 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto() 55 ah_esp_conn_in_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, in ah_esp_conn_in_get() argument 61 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_in_get() 72 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get() 73 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get() 87 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_out_get() 94 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_out_get() 95 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_out_get() [all …]
|
| A D | ip_vs_ftp.c | 100 __u16 af, char **start, char **end) in ip_vs_ftp_get_addrport() argument 190 if (af == AF_INET6 && *s != '2') in ip_vs_ftp_get_addrport() 192 if (af == AF_INET && *s != '1') in ip_vs_ftp_get_addrport() 202 if (af == AF_INET6) { in ip_vs_ftp_get_addrport() 284 &from, &port, cp->af, in ip_vs_ftp_out() 305 &from, &port, cp->af, in ip_vs_ftp_out() 320 ip_vs_conn_fill_param(cp->ipvs, cp->af, in ip_vs_ftp_out() 445 if (cp->af == AF_INET && in ip_vs_ftp_in() 491 if (cp->af == AF_INET && in ip_vs_ftp_in() 496 &to, &port, cp->af, in ip_vs_ftp_in() [all …]
|
| A D | ip_vs_core.c | 574 if (af == AF_INET6) in ip_vs_addr_is_unicast() 729 if (af == AF_INET6) { in ip_vs_route_me_harder() 883 if (af == AF_INET6) in handle_response_icmp() 1278 if (af == AF_INET6) in handle_response() 1337 int af = state->pf; in ip_vs_out_hook() local 1361 if (af == AF_INET6) { in ip_vs_out_hook() 1387 if (af == AF_INET) in ip_vs_out_hook() 1921 int af = state->pf; in ip_vs_in_hook() local 1958 if (af == AF_INET6) { in ip_vs_in_hook() 2238 if (af == AF_INET6) { in ip_vs_register_hooks() [all …]
|
| A D | ip_vs_conn.c | 112 if (af == AF_INET6) in ip_vs_conn_hashkey() 274 cp->af == p->af && in __ip_vs_conn_in_get() 369 if (cp->af == p->af && in ip_vs_ct_in_get() 374 p->af, p->vaddr, &cp->vaddr) && in ip_vs_ct_in_get() 427 if (p->cport == sport && cp->af == p->af && in ip_vs_conn_out_get() 662 dest = ip_vs_find_dest(cp->ipvs, cp->af, cp->af, &cp->daddr, in ip_vs_try_bind_dest() 686 if (cp->af == AF_INET6) in ip_vs_try_bind_dest() 959 cp->af = p->af; in ip_vs_conn_new() 1018 if (p->af == AF_INET6) in ip_vs_conn_new() 1159 if (cp->af == AF_INET6) in ip_vs_conn_seq_show() [all …]
|
| A D | ip_vs_proto_tcp.c | 111 if (af == AF_INET6) in tcp_fast_csum_update() 132 if (af == AF_INET6) in tcp_partial_csum_update() 156 if (cp->af == AF_INET6 && iph->fragoffs) in tcp_snat_handler() 169 if (!tcp_csum_check(cp->af, skb, pp)) in tcp_snat_handler() 202 if (cp->af == AF_INET6) in tcp_snat_handler() 247 if (!tcp_csum_check(cp->af, skb, pp)) in tcp_dnat_handler() 285 if (cp->af == AF_INET6) in tcp_dnat_handler() 309 if (af == AF_INET6) in tcp_csum_check() 321 if (af == AF_INET6) { in tcp_csum_check() 327 IP_VS_DBG_RL_PKT(0, af, pp, skb, 0, in tcp_csum_check() [all …]
|
| A D | ip_vs_lblc.c | 90 int af; /* address family */ member 154 if (af == AF_INET6) in ip_vs_lblc_hashkey() 181 unsigned int hash = ip_vs_lblc_hashkey(af, addr); in ip_vs_lblc_get() 185 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblc_get() 198 u16 af, struct ip_vs_dest *dest) in ip_vs_lblc_new() argument 202 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new() 212 en->af = af; in ip_vs_lblc_new() 213 ip_vs_addr_copy(af, &en->addr, daddr); in ip_vs_lblc_new() 446 IP_VS_DBG_ADDR(least->af, &least->addr), in __ip_vs_lblc_schedule() 491 en = ip_vs_lblc_get(svc->af, tbl, &iph->daddr); in ip_vs_lblc_schedule() [all …]
|
| A D | ip_vs_ctl.c | 418 if ((svc->af == af) in __ip_vs_service_find() 622 dest->af == af && in ip_vs_has_real_service() 653 dest->af == af && in ip_vs_find_real_service() 683 dest->af == af && in ip_vs_find_tunnel() 978 if (add && udest->af != svc->af) in __ip_vs_update_dest() 1034 dest->af = udest->af; in __ip_vs_update_dest() 1095 dest->af = udest->af; in ip_vs_new_dest() 1287 if (dest->af != svc->af) in __ip_vs_unlink_dest() 1438 svc->af = u->af; in ip_vs_add_service() 2945 if (dest->af != svc->af) in __ip_vs_get_dest_entries() [all …]
|
| A D | ip_vs_lblcr.c | 200 IP_VS_DBG_ADDR(least->af, &least->addr), in ip_vs_dest_set_min() 260 int af; /* address family */ member 317 if (af == AF_INET6) in ip_vs_lblcr_hashkey() 348 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblcr_get() 361 u16 af, struct ip_vs_dest *dest) in ip_vs_lblcr_new() argument 365 en = ip_vs_lblcr_get(af, tbl, daddr); in ip_vs_lblcr_new() 371 en->af = af; in ip_vs_lblcr_new() 372 ip_vs_addr_copy(af, &en->addr, daddr); in ip_vs_lblcr_new() 610 IP_VS_DBG_ADDR(least->af, &least->addr), in __ip_vs_lblcr_schedule() 655 en = ip_vs_lblcr_get(svc->af, tbl, &iph->daddr); in ip_vs_lblcr_schedule() [all …]
|
| A D | ip_vs_sh.c | 84 ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_sh_hashkey() argument 90 if (af == AF_INET6) in ip_vs_sh_hashkey() 107 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get() 129 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback() 137 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_sh_get_fallback() 144 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback() 152 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_get_fallback() 191 i, IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_reassign() 337 IP_VS_DBG_ADDR(svc->af, hash_addr), in ip_vs_sh_schedule() 338 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_schedule()
|
| A D | ip_vs_mh.c | 89 ip_vs_mh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_mh_hashkey() argument 96 if (af == AF_INET6) in ip_vs_mh_hashkey() 143 ds->offset = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate() 146 ds->skip = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate() 255 ihash = ip_vs_mh_hashkey(svc->af, addr, port, in ip_vs_mh_get_fallback() 264 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_mh_get_fallback() 271 hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, in ip_vs_mh_get_fallback() 280 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_mh_get_fallback() 311 IP_VS_DBG_ADDR(svc->af, &svc->addr), in ip_vs_mh_reassign() 502 IP_VS_DBG_ADDR(svc->af, hash_addr), in ip_vs_mh_schedule() [all …]
|
| A D | ip_vs_dh.c | 71 static inline unsigned int ip_vs_dh_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_dh_hashkey() argument 76 if (af == AF_INET6) in ip_vs_dh_hashkey() 88 ip_vs_dh_get(int af, struct ip_vs_dh_state *s, const union nf_inet_addr *addr) in ip_vs_dh_get() argument 90 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get() 222 dest = ip_vs_dh_get(svc->af, s, &iph->daddr); in ip_vs_dh_schedule() 232 IP_VS_DBG_ADDR(svc->af, &iph->daddr), in ip_vs_dh_schedule() 233 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_dh_schedule()
|
| A D | ip_vs_proto_sctp.c | 50 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in sctp_conn_schedule() 53 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in sctp_conn_schedule() 99 if (cp->af == AF_INET6 && iph->fragoffs) in sctp_snat_handler() 111 if (!sctp_csum_check(cp->af, skb, pp)) in sctp_snat_handler() 147 if (cp->af == AF_INET6 && iph->fragoffs) in sctp_dnat_handler() 159 if (!sctp_csum_check(cp->af, skb, pp)) in sctp_dnat_handler() 195 if (af == AF_INET6) in sctp_csum_check() 207 IP_VS_DBG_RL_PKT(0, af, pp, skb, 0, in sctp_csum_check() 448 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in set_sctp_state() 542 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in sctp_app_conn_bind() [all …]
|
| A D | ip_vs_pe_sip.c | 74 retc = ip_vs_fill_iph_skb(p->af, skb, false, &iph); in ip_vs_sip_fill_param() 113 if (ct->af == p->af && in ip_vs_sip_ct_match() 114 ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) && in ip_vs_sip_ct_match() 117 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af, in ip_vs_sip_ct_match() 129 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_sip_ct_match()
|
| A D | ip_vs_xmit.c | 638 !ip_vs_addr_equal(cp->af, &cp->vaddr, &cp->daddr)) in ip_vs_nat_send_or_cont() 698 if (__ip_vs_get_out_rt(cp->ipvs, cp->af, skb, NULL, iph->daddr, in ip_vs_bypass_xmit() 723 if (__ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, NULL, in ip_vs_bypass_xmit_v6() 846 local = __ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, cp->dest, in ip_vs_nat_xmit_v6() 1169 skb = ip_vs_prepare_tunneled_skb(skb, cp->af, max_headroom, in ip_vs_tunnel_xmit() 1175 gso_type = __tun_gso_type_mask(AF_INET, cp->af); in ip_vs_tunnel_xmit() 1269 local = __ip_vs_get_out_rt_v6(ipvs, cp->af, skb, cp->dest, in ip_vs_tunnel_xmit_v6() 1312 skb = ip_vs_prepare_tunneled_skb(skb, cp->af, max_headroom, in ip_vs_tunnel_xmit_v6() 1318 gso_type = __tun_gso_type_mask(AF_INET6, cp->af); in ip_vs_tunnel_xmit_v6() 1433 local = __ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, cp->dest, in ip_vs_dr_xmit_v6() [all …]
|
| A D | ip_vs_sync.c | 550 if (unlikely(cp->af != AF_INET)) in ip_vs_sync_conn_v0() 672 if (cp->af == AF_INET6) in ip_vs_sync_conn() 722 s->v4.type = (cp->af == AF_INET6 ? STYPE_F_INET6 : 0); in ip_vs_sync_conn() 735 if (cp->af == AF_INET6) { in ip_vs_sync_conn() 795 if (af == AF_INET6) in ip_vs_conn_fill_param_sync() 796 ip_vs_conn_fill_param(ipvs, af, sc->v6.protocol, in ip_vs_conn_fill_param_sync() 803 ip_vs_conn_fill_param(ipvs, af, sc->v4.protocol, in ip_vs_conn_fill_param_sync() 1077 unsigned int af, state, pe_data_len=0, pe_name_len=0; in ip_vs_proc_sync_conn() local 1086 af = AF_INET6; in ip_vs_proc_sync_conn() 1094 af = AF_INET; in ip_vs_proc_sync_conn() [all …]
|
| /net/ipv6/netfilter/ |
| A D | ip6table_raw.c | 22 .af = NFPROTO_IPV6, 30 .af = NFPROTO_IPV6,
|
| /net/ipv4/netfilter/ |
| A D | iptable_raw.c | 23 .af = NFPROTO_IPV4, 31 .af = NFPROTO_IPV4,
|