| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_sync.c | 198 struct netns_ipvs *ipvs; 303 sb_dequeue(struct netns_ipvs *ipvs, struct ipvs_master_sync_state *ms) 307 spin_lock_bh(&ipvs->sync_lock); in sb_dequeue() 319 spin_unlock_bh(&ipvs->sync_lock); in sb_dequeue() 328 ip_vs_sync_buff_create(struct netns_ipvs *ipvs, unsigned int len) 336 ipvs->mcfg.sync_maxlen); in ip_vs_sync_buff_create() 344 sb->mesg->syncid = ipvs->mcfg.syncid; in ip_vs_sync_buff_create() 361 static inline void sb_queue_tail(struct netns_ipvs *ipvs, 366 spin_lock(&ipvs->sync_lock); in sb_queue_tail() 367 if (ipvs in sb_queue_tail() 199 struct netns_ipvs *ipvs; global() member 304 sb_dequeue(struct netns_ipvs * ipvs,struct ipvs_master_sync_state * ms) sb_dequeue() argument 329 ip_vs_sync_buff_create(struct netns_ipvs * ipvs,unsigned int len) ip_vs_sync_buff_create() argument 362 sb_queue_tail(struct netns_ipvs * ipvs,struct ipvs_master_sync_state * ms) sb_queue_tail() argument 390 get_curr_sync_buff(struct netns_ipvs * ipvs,struct ipvs_master_sync_state * ms,unsigned long time) get_curr_sync_buff() argument 407 select_master_thread_id(struct netns_ipvs * ipvs,struct ip_vs_conn * cp) select_master_thread_id() argument 416 ip_vs_sync_buff_create_v0(struct netns_ipvs * ipvs,unsigned int len) ip_vs_sync_buff_create_v0() argument 460 ip_vs_sync_conn_needed(struct netns_ipvs * ipvs,struct ip_vs_conn * cp,int pkts) ip_vs_sync_conn_needed() argument 540 ip_vs_sync_conn_v0(struct netns_ipvs * ipvs,struct ip_vs_conn * cp,int pkts) ip_vs_sync_conn_v0() argument 630 ip_vs_sync_conn(struct netns_ipvs * ipvs,struct ip_vs_conn * cp,int pkts) ip_vs_sync_conn() argument 789 ip_vs_conn_fill_param_sync(struct netns_ipvs * ipvs,int af,union ip_vs_sync_conn * sc,struct ip_vs_conn_param * p,__u8 * pe_data,unsigned int pe_data_len,__u8 * pe_name,unsigned int pe_name_len) ip_vs_conn_fill_param_sync() argument 842 ip_vs_proc_conn(struct netns_ipvs * ipvs,struct ip_vs_conn_param * param,unsigned int flags,unsigned int state,unsigned int protocol,unsigned int type,const union nf_inet_addr * daddr,__be16 dport,unsigned long timeout,__u32 fwmark,struct ip_vs_sync_conn_options * opt) ip_vs_proc_conn() argument 959 ip_vs_process_message_v0(struct netns_ipvs * ipvs,const char * buffer,const size_t buflen) ip_vs_process_message_v0() argument 1070 ip_vs_proc_sync_conn(struct netns_ipvs * ipvs,__u8 * p,__u8 * msg_end) ip_vs_proc_sync_conn() argument 1204 ip_vs_process_message(struct netns_ipvs * ipvs,__u8 * buffer,const size_t buflen) ip_vs_process_message() argument 1464 make_send_sock(struct netns_ipvs * ipvs,int id,struct net_device * dev,struct socket ** sock_ret) make_send_sock() argument 1521 make_receive_sock(struct netns_ipvs * ipvs,int id,struct net_device * dev,struct socket ** sock_ret) make_receive_sock() argument 1624 struct netns_ipvs *ipvs = ms->ipvs; master_wakeup_work_handler() local 1639 next_sync_buff(struct netns_ipvs * ipvs,struct ipvs_master_sync_state * ms) next_sync_buff() argument 1653 struct netns_ipvs *ipvs = tinfo->ipvs; sync_thread_master() local 1705 struct netns_ipvs *ipvs = tinfo->ipvs; sync_thread_backup() local 1739 start_sync_thread(struct netns_ipvs * ipvs,struct ipvs_sync_daemon_cfg * c,int state) start_sync_thread() argument 1933 stop_sync_thread(struct netns_ipvs * ipvs,int state) stop_sync_thread() argument 2021 ip_vs_sync_net_init(struct netns_ipvs * ipvs) ip_vs_sync_net_init() argument 2029 ip_vs_sync_net_cleanup(struct netns_ipvs * ipvs) ip_vs_sync_net_cleanup() argument [all...] |
| H A D | ip_vs_app.c | 72 ip_vs_app_inc_new(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto, 104 ret = pp->register_app(ipvs, inc); in ip_vs_app_inc_new() 124 ip_vs_app_inc_release(struct netns_ipvs *ipvs, struct ip_vs_app *inc) 132 pp->unregister_app(ipvs, inc); in ip_vs_app_inc_release() 172 register_ip_vs_app_inc(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto, 179 result = ip_vs_app_inc_new(ipvs, app, proto, port); in register_ip_vs_app_inc() 188 struct ip_vs_app *register_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app) 201 list_for_each_entry(a, &ipvs->app_list, a_list) { in register_ip_vs_app() 217 list_add(&a->a_list, &ipvs->app_list); in register_ip_vs_app() 231 void unregister_ip_vs_app(struct netns_ipvs *ipvs, struc 73 ip_vs_app_inc_new(struct netns_ipvs * ipvs,struct ip_vs_app * app,__u16 proto,__u16 port) ip_vs_app_inc_new() argument 125 ip_vs_app_inc_release(struct netns_ipvs * ipvs,struct ip_vs_app * inc) ip_vs_app_inc_release() argument 173 register_ip_vs_app_inc(struct netns_ipvs * ipvs,struct ip_vs_app * app,__u16 proto,__u16 port) register_ip_vs_app_inc() argument 189 register_ip_vs_app(struct netns_ipvs * ipvs,struct ip_vs_app * app) register_ip_vs_app() argument 232 unregister_ip_vs_app(struct netns_ipvs * ipvs,struct ip_vs_app * app) unregister_ip_vs_app() argument 519 ip_vs_app_idx(struct netns_ipvs * ipvs,loff_t pos) ip_vs_app_idx() argument 536 struct netns_ipvs *ipvs = net_ipvs(net); ip_vs_app_seq_start() local 548 struct netns_ipvs *ipvs = net_ipvs(net); ip_vs_app_seq_next() local 599 ip_vs_app_net_init(struct netns_ipvs * ipvs) ip_vs_app_net_init() argument 611 ip_vs_app_net_cleanup(struct netns_ipvs * ipvs) ip_vs_app_net_cleanup() argument [all...] |
| H A D | ip_vs_proto.c | 29 * IPVS protocols can only be registered/unregistered when the ipvs 31 * ipvs protocol table. 46 * register an ipvs protocol 62 * register an ipvs protocols netns related data 65 register_ip_vs_proto_netns(struct netns_ipvs *ipvs, struct ip_vs_protocol *pp) 75 pd->next = ipvs->proto_data_table[hash]; in register_ip_vs_proto_netns() 76 ipvs->proto_data_table[hash] = pd; in register_ip_vs_proto_netns() 80 int ret = pp->init_netns(ipvs, pd); in register_ip_vs_proto_netns() 83 ipvs->proto_data_table[hash] = pd->next; in register_ip_vs_proto_netns() 93 * unregister an ipvs protoco 66 register_ip_vs_proto_netns(struct netns_ipvs * ipvs,struct ip_vs_protocol * pp) register_ip_vs_proto_netns() argument 118 unregister_ip_vs_proto_netns(struct netns_ipvs * ipvs,struct ip_vs_proto_data * pd) unregister_ip_vs_proto_netns() argument 158 ip_vs_proto_data_get(struct netns_ipvs * ipvs,unsigned short proto) ip_vs_proto_data_get() argument 175 ip_vs_protocol_timeout_change(struct netns_ipvs * ipvs,int flags) ip_vs_protocol_timeout_change() argument 296 ip_vs_protocol_net_init(struct netns_ipvs * ipvs) ip_vs_protocol_net_init() argument 329 ip_vs_protocol_net_cleanup(struct netns_ipvs * ipvs) ip_vs_protocol_net_cleanup() argument [all...] |
| H A D | ip_vs_proto_ah_esp.c | 39 ah_esp_conn_fill_param_proto(struct netns_ipvs *ipvs, int af, 44 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto() 48 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto() 54 ah_esp_conn_in_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, 60 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_in_get() 80 ah_esp_conn_out_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, 86 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_out_get() 102 ah_esp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, 40 ah_esp_conn_fill_param_proto(struct netns_ipvs * ipvs,int af,const struct ip_vs_iphdr * iph,struct ip_vs_conn_param * p) ah_esp_conn_fill_param_proto() argument 55 ah_esp_conn_in_get(struct netns_ipvs * ipvs,int af,const struct sk_buff * skb,const struct ip_vs_iphdr * iph) ah_esp_conn_in_get() argument 81 ah_esp_conn_out_get(struct netns_ipvs * ipvs,int af,const struct sk_buff * skb,const struct ip_vs_iphdr * iph) ah_esp_conn_out_get() argument 103 ah_esp_conn_schedule(struct netns_ipvs * ipvs,int af,struct sk_buff * skb,struct ip_vs_proto_data * pd,int * verdict,struct ip_vs_conn ** cpp,struct ip_vs_iphdr * iph) ah_esp_conn_schedule() argument
|
| H A D | ip_vs_lblc.c | 248 return svc->ipvs->sysctl_lblc_expiration; in sysctl_lblc_expiration() 551 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblc_init() 554 if (!ipvs) in __ip_vs_lblc_init() 558 ipvs->lblc_ctl_table = kmemdup(vs_vars_table, 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() 570 ipvs->sysctl_lblc_expiration = DEFAULT_EXPIRATION; in __ip_vs_lblc_init() 571 ipvs->lblc_ctl_table[0].data = &ipvs->sysctl_lblc_expiration; in __ip_vs_lblc_init() 573 ipvs in __ip_vs_lblc_init() 552 struct netns_ipvs *ipvs = net_ipvs(net); __ip_vs_lblc_init() local 588 struct netns_ipvs *ipvs = net_ipvs(net); __ip_vs_lblc_exit() local [all...] |
| H A D | ip_vs_proto_udp.c | 30 udp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, 55 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule() 58 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule() 64 if (ip_vs_todrop(ipvs)) { in udp_conn_schedule() 360 static int udp_register_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) 366 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_UDP); in udp_register_app() 370 list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { in udp_register_app() 376 list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); in udp_register_app() 385 udp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) 387 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_UD in udp_unregister_app() 31 udp_conn_schedule(struct netns_ipvs * ipvs,int af,struct sk_buff * skb,struct ip_vs_proto_data * pd,int * verdict,struct ip_vs_conn ** cpp,struct ip_vs_iphdr * iph) udp_conn_schedule() argument 361 udp_register_app(struct netns_ipvs * ipvs,struct ip_vs_app * inc) udp_register_app() argument 386 udp_unregister_app(struct netns_ipvs * ipvs,struct ip_vs_app * inc) udp_unregister_app() argument 397 struct netns_ipvs *ipvs = cp->ipvs; udp_app_conn_bind() local 466 __udp_init(struct netns_ipvs * ipvs,struct ip_vs_proto_data * pd) __udp_init() argument 476 __udp_exit(struct netns_ipvs * ipvs,struct ip_vs_proto_data * pd) __udp_exit() argument [all...] |
| H A D | ip_vs_xmit.c | 206 static inline bool ensure_mtu_is_adequate(struct netns_ipvs *ipvs, int skb_af, 213 struct net *net = ipvs->net; in ensure_mtu_is_adequate() 231 if ((rt_mode & IP_VS_RT_MODE_TUNNEL) && !sysctl_pmtu_disc(ipvs)) in ensure_mtu_is_adequate() 248 static inline bool decrement_ttl(struct netns_ipvs *ipvs, 252 struct net *net = ipvs->net; in decrement_ttl() 299 __ip_vs_get_out_rt(struct netns_ipvs *ipvs, int skb_af, struct sk_buff *skb, 304 struct net *net = ipvs->net; in __ip_vs_get_out_rt() 365 if (!decrement_ttl(ipvs, skb_af, skb)) in __ip_vs_get_out_rt() 394 if (!ensure_mtu_is_adequate(ipvs, skb_af, rt_mode, ipvsh, skb, mtu)) in __ip_vs_get_out_rt() 460 __ip_vs_get_out_rt_v6(struct netns_ipvs *ipvs, in in __ip_vs_get_out_rt_v6() 207 ensure_mtu_is_adequate(struct netns_ipvs * ipvs,int skb_af,int rt_mode,struct ip_vs_iphdr * ipvsh,struct sk_buff * skb,int mtu) ensure_mtu_is_adequate() argument 249 decrement_ttl(struct netns_ipvs * ipvs,int skb_af,struct sk_buff * skb) decrement_ttl() argument 300 __ip_vs_get_out_rt(struct netns_ipvs * ipvs,int skb_af,struct sk_buff * skb,struct ip_vs_dest * dest,__be32 daddr,int rt_mode,__be32 * ret_saddr,struct ip_vs_iphdr * ipvsh) __ip_vs_get_out_rt() argument 458 __ip_vs_get_out_rt_v6(struct netns_ipvs * ipvs,int skb_af,struct sk_buff * skb,struct ip_vs_dest * dest,struct in6_addr * daddr,struct in6_addr * ret_saddr,struct ip_vs_iphdr * ipvsh,int do_xfrm,int rt_mode) __ip_vs_get_out_rt_v6() argument 1109 struct netns_ipvs *ipvs = cp->ipvs; ip_vs_tunnel_xmit() local 1254 struct netns_ipvs *ipvs = cp->ipvs; ip_vs_tunnel_xmit_v6() local [all...] |
| H A D | ip_vs_lblcr.c | 413 return svc->ipvs->sysctl_lblcr_expiration; in sysctl_lblcr_expiration() 737 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblcr_init() 740 if (!ipvs) in __ip_vs_lblcr_init() 744 ipvs->lblcr_ctl_table = kmemdup(vs_vars_table, 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() 755 ipvs->sysctl_lblcr_expiration = DEFAULT_EXPIRATION; in __ip_vs_lblcr_init() 756 ipvs->lblcr_ctl_table[0].data = &ipvs->sysctl_lblcr_expiration; in __ip_vs_lblcr_init() 758 ipvs in __ip_vs_lblcr_init() 738 struct netns_ipvs *ipvs = net_ipvs(net); __ip_vs_lblcr_init() local 773 struct netns_ipvs *ipvs = net_ipvs(net); __ip_vs_lblcr_exit() local [all...] |
| H 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() 490 static int sctp_register_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) in sctp_register_app() argument 496 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_SCTP); in sctp_register_app() 500 list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { in sctp_register_app() 506 list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); in sctp_register_app() 513 static void sctp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) in sctp_unregister_app() argument [all …]
|
| H A D | ip_vs_proto_tcp.c | 34 tcp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, 50 if (th->rst || !(sysctl_sloppy_tcp(ipvs) || th->syn)) in tcp_conn_schedule() 67 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() 70 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() 76 if (ip_vs_todrop(ipvs)) { in tcp_conn_schedule() 615 static int tcp_register_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) 621 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_TCP); in tcp_register_app() 625 list_for_each_entry(i, &ipvs->tcp_apps[hash], p_list) { in tcp_register_app() 631 list_add_rcu(&inc->p_list, &ipvs->tcp_apps[hash]); in tcp_register_app() 640 tcp_unregister_app(struct netns_ipvs *ipvs, struc 35 tcp_conn_schedule(struct netns_ipvs * ipvs,int af,struct sk_buff * skb,struct ip_vs_proto_data * pd,int * verdict,struct ip_vs_conn ** cpp,struct ip_vs_iphdr * iph) tcp_conn_schedule() argument 616 tcp_register_app(struct netns_ipvs * ipvs,struct ip_vs_app * inc) tcp_register_app() argument 641 tcp_unregister_app(struct netns_ipvs * ipvs,struct ip_vs_app * inc) tcp_unregister_app() argument 653 struct netns_ipvs *ipvs = cp->ipvs; tcp_app_conn_bind() local 708 __ip_vs_tcp_init(struct netns_ipvs * ipvs,struct ip_vs_proto_data * pd) __ip_vs_tcp_init() argument 719 __ip_vs_tcp_exit(struct netns_ipvs * ipvs,struct ip_vs_proto_data * pd) __ip_vs_tcp_exit() argument [all...] |
| H A D | ip_vs_nfct.c | 14 * Hannes Eder <heder@google.com> Extend NFCT support for FTP, ipvs match 261 h = nf_conntrack_find_get(cp->ipvs->net, &nf_ct_zone_dflt, &tuple); in ip_vs_conn_drop_conntrack()
|
| /linux/include/net/ |
| H A D | ip_vs.h | 40 return net->ipvs; in net_ipvs() 453 struct netns_ipvs *ipvs; member 487 int (*init_netns)(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd); 489 void (*exit_netns)(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd); 491 int (*conn_schedule)(struct netns_ipvs *ipvs, 498 (*conn_in_get)(struct netns_ipvs *ipvs, 504 (*conn_out_get)(struct netns_ipvs *ipvs, 521 int (*register_app)(struct netns_ipvs *ipvs, struct ip_vs_app *inc); 523 void (*unregister_app)(struct netns_ipvs *ipvs, struct ip_vs_app *inc); 545 struct ip_vs_proto_data *ip_vs_proto_data_get(struct netns_ipvs *ipvs, [all …]
|
| H A D | net_namespace.h | 174 struct netns_ipvs *ipvs; member
|
| /linux/net/netfilter/ |
| H 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()
|
| H A D | Makefile | 239 obj-$(CONFIG_IP_VS) += ipvs/
|
| H A D | Kconfig | 1393 tristate '"ipvs" match support' 1674 source "net/netfilter/ipvs/Kconfig"
|
| /linux/Documentation/networking/ |
| H A D | ipvs-sysctl.rst | 35 Controls how ipvs will deal with connections that are detected 190 If set, ipvs will set the ipvs_property on all packets which are of 193 packets that have been tunneled to the ipvs host (i.e. to prevent 194 ipvs routing loops when ipvs is also acting as a real server).
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | Makefile | 22 ipvs.sh \
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | index.rst | 93 * ipvs-sysctl
|
| /linux/ |
| H A D | MAINTAINERS | 13312 T: git git://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next.git 13313 T: git git://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git 13314 F: Documentation/networking/ipvs-sysctl.rst 13317 F: net/netfilter/ipvs/
|