/linux/net/netfilter/ipvs/ |
A D | ip_vs_sync.c | 1635 struct netns_ipvs *ipvs = ms->ipvs; in master_wakeup_work_handler() local 1664 struct netns_ipvs *ipvs = tinfo->ipvs; in sync_thread_master() local 1671 ipvs->mcfg.mcast_ifn, ipvs->mcfg.syncid, tinfo->id); in sync_thread_master() 1716 struct netns_ipvs *ipvs = tinfo->ipvs; in sync_thread_backup() local 1723 ipvs->bcfg.mcast_ifn, ipvs->bcfg.syncid, tinfo->id); in sync_thread_backup() 1819 if (ipvs->ms) in start_sync_thread() 1842 ipvs->ms = kcalloc(count, sizeof(ipvs->ms[0]), GFP_KERNEL); in start_sync_thread() 1843 if (!ipvs->ms) in start_sync_thread() 1845 ms = ipvs->ms; in start_sync_thread() 1852 ms->ipvs = ipvs; in start_sync_thread() [all …]
|
A D | ip_vs_ctl.c | 149 ipvs->drop_rate = ipvs->drop_counter in update_defense_level() 382 && (svc->ipvs == ipvs)) { in __ip_vs_service_find() 406 && (svc->ipvs == ipvs)) { in __ip_vs_svc_fwm_find() 1374 svc->ipvs = ipvs; in ip_vs_add_service() 1627 if (svc->ipvs == ipvs) in ip_vs_flush() 1638 if (svc->ipvs == ipvs) in ip_vs_flush() 1705 if (svc->ipvs == ipvs) { in ip_vs_dst_event() 1714 if (svc->ipvs == ipvs) { in ip_vs_dst_event() 1755 if (svc->ipvs == ipvs) in ip_vs_zero_all() 1762 if (svc->ipvs == ipvs) in ip_vs_zero_all() [all …]
|
A D | ip_vs_core.c | 125 struct netns_ipvs *ipvs = cp->ipvs; in ip_vs_in_stats() local 161 struct netns_ipvs *ipvs = cp->ipvs; in ip_vs_out_stats() local 196 struct netns_ipvs *ipvs = svc->ipvs; in ip_vs_conn_stats() local 589 struct netns_ipvs *ipvs = svc->ipvs; in ip_vs_leave() local 1945 if (unlikely(sysctl_backup_only(ipvs) || !ipvs->enable)) in ip_vs_in_hook() 2113 if (unlikely(sysctl_backup_only(ipvs) || !ipvs->enable)) in ip_vs_forward_icmp() 2296 if (ipvs == NULL) in __ip_vs_init() 2300 ipvs->enable = 0; in __ip_vs_init() 2301 ipvs->net = net; in __ip_vs_init() 2305 net->ipvs = ipvs; in __ip_vs_init() [all …]
|
A D | ip_vs_est.c | 101 struct netns_ipvs *ipvs = from_timer(ipvs, t, est_timer); in estimation_timer() local 103 if (!sysctl_run_estimation(ipvs)) in estimation_timer() 106 spin_lock(&ipvs->est_lock); in estimation_timer() 136 spin_unlock(&ipvs->est_lock); in estimation_timer() 148 spin_lock_bh(&ipvs->est_lock); in ip_vs_start_estimator() 150 spin_unlock_bh(&ipvs->est_lock); in ip_vs_start_estimator() 157 spin_lock_bh(&ipvs->est_lock); in ip_vs_stop_estimator() 159 spin_unlock_bh(&ipvs->est_lock); in ip_vs_stop_estimator() 194 INIT_LIST_HEAD(&ipvs->est_list); in ip_vs_estimator_net_init() 195 spin_lock_init(&ipvs->est_lock); in ip_vs_estimator_net_init() [all …]
|
A D | ip_vs_conn.c | 279 cp->ipvs == p->ipvs) { in __ip_vs_conn_in_get() 360 if (cp->ipvs != p->ipvs) in ip_vs_ct_in_get() 378 cp->ipvs == p->ipvs) { in ip_vs_ct_in_get() 431 cp->ipvs == p->ipvs) { in ip_vs_conn_out_get() 770 struct netns_ipvs *ipvs = ct->ipvs; in ip_vs_check_template() local 850 struct netns_ipvs *ipvs = cp->ipvs; in ip_vs_conn_expire() local 946 struct netns_ipvs *ipvs = p->ipvs; in ip_vs_conn_new() local 958 cp->ipvs = ipvs; in ip_vs_conn_new() 1314 if (cp->ipvs != ipvs) in ip_vs_random_dropentry() 1381 if (cp->ipvs != ipvs) in ip_vs_conn_flush() [all …]
|
A D | ip_vs_app.c | 105 ret = pp->register_app(ipvs, inc); in ip_vs_app_inc_new() 133 pp->unregister_app(ipvs, inc); in ip_vs_app_inc_release() 180 result = ip_vs_app_inc_new(ipvs, app, proto, port); in register_ip_vs_app_inc() 202 list_for_each_entry(a, &ipvs->app_list, a_list) { in register_ip_vs_app() 218 list_add(&a->a_list, &ipvs->app_list); in register_ip_vs_app() 242 ip_vs_app_inc_release(ipvs, inc); in unregister_ip_vs_app() 536 struct netns_ipvs *ipvs = net_ipvs(net); in ip_vs_app_seq_start() local 548 struct netns_ipvs *ipvs = net_ipvs(net); in ip_vs_app_seq_next() local 552 return ip_vs_app_idx(ipvs, 0); in ip_vs_app_seq_next() 601 INIT_LIST_HEAD(&ipvs->app_list); in ip_vs_app_net_init() [all …]
|
A D | ip_vs_proto.c | 76 pd->next = ipvs->proto_data_table[hash]; in register_ip_vs_proto_netns() 77 ipvs->proto_data_table[hash] = pd; in register_ip_vs_proto_netns() 81 int ret = pp->init_netns(ipvs, pd); in register_ip_vs_proto_netns() 84 ipvs->proto_data_table[hash] = pd->next; in register_ip_vs_proto_netns() 123 pd_p = &ipvs->proto_data_table[hash]; in unregister_ip_vs_proto_netns() 128 pd->pp->exit_netns(ipvs, pd); in unregister_ip_vs_proto_netns() 181 for (pd = ipvs->proto_data_table[i]; pd; pd = pd->next) { in ip_vs_protocol_timeout_change() 318 ret = register_ip_vs_proto_netns(ipvs, protos[i]); in ip_vs_protocol_net_init() 325 ip_vs_protocol_net_cleanup(ipvs); in ip_vs_protocol_net_init() 336 while ((pd = ipvs->proto_data_table[i]) != NULL) in ip_vs_protocol_net_cleanup() [all …]
|
A D | ip_vs_lblc.c | 250 return svc->ipvs->sysctl_lblc_expiration; in sysctl_lblc_expiration() 552 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblc_init() local 554 if (!ipvs) in __ip_vs_lblc_init() 561 if (ipvs->lblc_ctl_table == NULL) in __ip_vs_lblc_init() 569 ipvs->lblc_ctl_table = vs_vars_table; in __ip_vs_lblc_init() 571 ipvs->lblc_ctl_table[0].data = &ipvs->sysctl_lblc_expiration; in __ip_vs_lblc_init() 573 ipvs->lblc_ctl_header = in __ip_vs_lblc_init() 575 if (!ipvs->lblc_ctl_header) { in __ip_vs_lblc_init() 577 kfree(ipvs->lblc_ctl_table); in __ip_vs_lblc_init() 586 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblc_exit() local [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() 81 ah_esp_conn_out_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, in ah_esp_conn_out_get() argument 87 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_out_get() 103 ah_esp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, in ah_esp_conn_schedule() argument
|
A D | ip_vs_proto_udp.c | 31 udp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, in udp_conn_schedule() argument 56 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule() 59 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule() 65 if (ip_vs_todrop(ipvs)) { in udp_conn_schedule() 367 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_UDP); in udp_register_app() 371 list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { in udp_register_app() 377 list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); in udp_register_app() 386 udp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) in udp_unregister_app() argument 397 struct netns_ipvs *ipvs = cp->ipvs; in udp_app_conn_bind() local 409 list_for_each_entry_rcu(inc, &ipvs->udp_apps[hash], p_list) { in udp_app_conn_bind() [all …]
|
A D | ip_vs_lblcr.c | 415 return svc->ipvs->sysctl_lblcr_expiration; in sysctl_lblcr_expiration() 738 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblcr_init() local 740 if (!ipvs) in __ip_vs_lblcr_init() 747 if (ipvs->lblcr_ctl_table == NULL) in __ip_vs_lblcr_init() 754 ipvs->lblcr_ctl_table = vs_vars_table; in __ip_vs_lblcr_init() 756 ipvs->lblcr_ctl_table[0].data = &ipvs->sysctl_lblcr_expiration; in __ip_vs_lblcr_init() 758 ipvs->lblcr_ctl_header = in __ip_vs_lblcr_init() 760 if (!ipvs->lblcr_ctl_header) { in __ip_vs_lblcr_init() 762 kfree(ipvs->lblcr_ctl_table); in __ip_vs_lblcr_init() 771 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblcr_exit() local [all …]
|
A D | ip_vs_proto_sctp.c | 16 sctp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, in sctp_conn_schedule() argument 33 !(sysctl_sloppy_sctp(ipvs) || in sctp_conn_schedule() 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() 58 if (ip_vs_todrop(ipvs)) { in sctp_conn_schedule() 494 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_SCTP); in sctp_register_app() 498 list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { in sctp_register_app() 504 list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); in sctp_register_app() 521 struct netns_ipvs *ipvs = cp->ipvs; in sctp_app_conn_bind() local 532 list_for_each_entry_rcu(inc, &ipvs->sctp_apps[hash], p_list) { in sctp_app_conn_bind() [all …]
|
A D | ip_vs_proto_tcp.c | 35 tcp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, in tcp_conn_schedule() argument 51 if (th->rst || !(sysctl_sloppy_tcp(ipvs) || th->syn)) in tcp_conn_schedule() 68 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() 71 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() 77 if (ip_vs_todrop(ipvs)) { in tcp_conn_schedule() 626 list_for_each_entry(i, &ipvs->tcp_apps[hash], p_list) { in tcp_register_app() 632 list_add_rcu(&inc->p_list, &ipvs->tcp_apps[hash]); in tcp_register_app() 641 tcp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) in tcp_unregister_app() argument 653 struct netns_ipvs *ipvs = cp->ipvs; in tcp_app_conn_bind() local 665 list_for_each_entry_rcu(inc, &ipvs->tcp_apps[hash], p_list) { in tcp_app_conn_bind() [all …]
|
A D | ip_vs_xmit.c | 221 struct net *net = ipvs->net; in ensure_mtu_is_adequate() 260 struct net *net = ipvs->net; in decrement_ttl() 312 struct net *net = ipvs->net; in __ip_vs_get_out_rt() 377 if (!decrement_ttl(ipvs, skb_af, skb)) in __ip_vs_get_out_rt() 474 struct net *net = ipvs->net; in __ip_vs_get_out_rt_v6() 539 if (!decrement_ttl(ipvs, skb_af, skb)) in __ip_vs_get_out_rt_v6() 1136 struct netns_ipvs *ipvs = cp->ipvs; in ip_vs_tunnel_xmit() local 1137 struct net *net = ipvs->net; in ip_vs_tunnel_xmit() 1197 dfp = sysctl_pmtu_disc(ipvs) ? &df : NULL; in ip_vs_tunnel_xmit() 1286 struct netns_ipvs *ipvs = cp->ipvs; in ip_vs_tunnel_xmit_v6() local [all …]
|
A D | ip_vs_ftp.c | 320 ip_vs_conn_fill_param(cp->ipvs, cp->af, in ip_vs_ftp_out() 328 ip_vs_conn_fill_param(cp->ipvs, in ip_vs_ftp_out() 531 ip_vs_conn_fill_param(cp->ipvs, cp->af, in ip_vs_ftp_in() 579 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_ftp_init() local 581 if (!ipvs) in __ip_vs_ftp_init() 584 app = register_ip_vs_app(ipvs, &ip_vs_ftp); in __ip_vs_ftp_init() 591 ret = register_ip_vs_app_inc(ipvs, app, app->protocol, ports[i]); in __ip_vs_ftp_init() 598 unregister_ip_vs_app(ipvs, &ip_vs_ftp); in __ip_vs_ftp_init() 606 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_ftp_exit() local 608 if (!ipvs) in __ip_vs_ftp_exit() [all …]
|
A D | ip_vs_nfct.c | 262 h = nf_conntrack_find_get(cp->ipvs->net, &nf_ct_zone_dflt, &tuple); in ip_vs_conn_drop_conntrack()
|
/linux/include/net/ |
A D | ip_vs.h | 39 return net->ipvs; in net_ipvs() 488 struct netns_ipvs *ipvs; member 515 struct netns_ipvs *ipvs; member 625 struct netns_ipvs *ipvs; member 812 struct netns_ipvs *ipvs; member 1006 return ipvs->sysctl_sync_ver; in sysctl_sync_ver() 1041 return ipvs->sysctl_pmtu_disc; in sysctl_pmtu_disc() 1211 p->ipvs = ipvs; in ip_vs_conn_fill_param() 1520 if (!ipvs->drop_rate) in ip_vs_todrop() 1522 if (--ipvs->drop_counter > 0) in ip_vs_todrop() [all …]
|
A D | net_namespace.h | 158 struct netns_ipvs *ipvs; member
|
/linux/net/netfilter/ |
A D | xt_ipvs.c | 52 struct netns_ipvs *ipvs = net_ipvs(xt_net(par)); in ipvs_mt() local 90 cp = pp->conn_out_get(ipvs, family, skb, &iph); in ipvs_mt()
|
A D | Makefile | 214 obj-$(CONFIG_IP_VS) += ipvs/
|
A D | Kconfig | 1384 tristate '"ipvs" match support' 1665 source "net/netfilter/ipvs/Kconfig"
|
/linux/tools/testing/selftests/netfilter/ |
A D | Makefile | 5 conntrack_icmp_related.sh nft_flowtable.sh ipvs.sh \
|
/linux/Documentation/networking/ |
A D | ipvs-sysctl.rst | 35 Controls how ipvs will deal with connections that are detected 170 If set, ipvs will set the ipvs_property on all packets which are of 173 packets that have been tunneled to the ipvs host (i.e. to prevent 174 ipvs routing loops when ipvs is also acting as a real server).
|
A D | index.rst | 67 ipvs-sysctl
|
/linux/include/config/ |
A D | auto.conf.cmd | 1327 net/netfilter/ipvs/Kconfig \
|