Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/include/net/     Datei vom 24.10.2025 mit Größe 54 kB image not shown  

SSL ip_vs.h   Interaktion und
PortierbarkeitC

 

Identifier-. *
/* IP Virtual Server
 * data structure and functionality definitions
 */


#ifndef _NET_IP_VS_H
#define _NET_IP_VS_H

#include <linux/ip_vs.h>                /* definitions shared with userland */

#include <asm/types.h>                     *synchronization

#include <linux java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#<inuxspinlockh>            * structrwlock_t*/
#include <  ip_vs_dest       *dest;          /* real server */
#include <atomic_t                in_pkts;        /* incoming packet counter */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

#include <linux/compiler.h>
#include <linux/  the itmust NF_DROPorbetterNF_STOLEN,
#include <linux/bug.h>

#include <net/checksum.h>
#include <linux/netfilter.h>  /* for union nf_inet_addr */
#include <linux/ip.h>
#include <linux/ipv6.h>   /* for struct ipv6hdr */
#include <net/ipv6.h>
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
#include <net/netfilter/ * otherwise this must be changedask_buff*.
#endif
#include <net/net_namespace.h>  /* Netw namespace */
#include linux/sched/.java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34

#define IP_VS_HDR_INVERSE 1
#define  int (*packet_xmit)(st  *skb,structip_vs_conn*,

/* Generic access of ipvs struct */*ph)
static inlinejava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
{
 return >
}

/* Connections' size value needed by ip_vs_ctl.c */
extern int ip_vs_conn_tab_size;

extern  *in order save ore space, the 

struct ip_vs_iphdr {
 int hdr_flags
 __u32  onst ip_vs_pe*
 __u32 len;   pe_data
   whereL4
 __u16 fragoffs; /* IPv6 fragment offset, 0 if first frag (or not frag)*/
 __s16 protocol;
 __s32 flags;
 union nf_inet_addr saddr;
 union java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2
};

static inline void *frag_safe_skb_hp(const struct sk_buff *skb, int offset,
           * options, but unfortunately, we also need to keep the old definitions to
{
 return skb_header_pointer(skb, offset, len, buffer);
}

/* This function handles filling *ip_vs_iphdr, both for IPv4 and IPv6.
 * IPv6 requires some extra work, as finding proper header position,
 * depend on the IPv6 extension headers.
 */

static inline int
ip_vs_fill_iph_skb_off(int af, const struct sk_buff *skb, int offset,
         int  ip_vs_service_user_kernjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
{
 iphdr->hdr_flags = hdr_flags;
 iphdr->off = offset;

#ifdef CONFIG_IP_VS_IPV6
 if (af == AF_INET6) {
  struct ipv6hdr _iph;
  const struct ipv6hdr *iph = skb_header_pointer(
   kb,offset sizeof_iph), &_iph)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  f !
   return 0;

  iphdr->
  iphdr->daddr.in6 = iph- char  *sched_name;
/* ipv6_find_hdr() updates len, flags */

   flags;  *virtualservice *
  iphdr->flags  = 0;
  iphdr->protocol  =ipv6_find_hdr( iphdr-len,-1,
       &iphdr->fragoffs,
       &iphdr- __  netmask;/*persistent netmask  *
  if (iphdr->java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2
   return 0;
 } else
#endif
 {
  struct iphdr _iph;
  const struct iphdr *iph = skb_header_pointer(
   java.lang.StringIndexOutOfBoundsException: Range [33, 15) out of bounds for length 33
  (iph)
   return 0;

  iphdr->len = offset + iph_be16 port;
  iphdr->fragoffs = 0;
  iphdr->protocol = iph->java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
  iphdr->saddr.ip = iph->unsigned int conn_flags; /* c flags * *
  iphdr->int ; 
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

 return 1;
}

static inline int
ip_vs_fill_iph_skb_icmp , const struct sk_buff *skb,intoffsetjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
  inverse,struct i)
{
 int hdr_flags = IP_VS_HDR_ICMP;

 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  hdr_flags |= IP_VS_HDR_INVERSE;

  u16 af;
}

static inline int
ip_vs_fill_iph_skb(int java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
      iphdr)
{
 int hdr_flags = 0;

 if (inverse)
  hdr_flags |= IP_VS_HDR_INVERSE;

 return u16 tun_flags; * flags *
          hdr_flags;
}

static inline bool
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
 return
}

static inline   Theinformation thevirtualservice offered tonet and
ip_vs_iph_icmp(const struct ip_vs_iphdr *iph)
{
 return !!(iph->hdr_flags & IP_VS_HDR_ICMP);
}

static inline void ip_vs_addr_copy(int af, union nf_inet_addr *dst,
       const union *java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
{
#ifdef  {
 if (af == struct hlist_node   *for  servicetable *
  s hlist_node f_list   /* for fwmark-based service table */
 else
#endif
 dst-
}

static inline void __u16 protocol; /* which protocolTCP/UDP /
     nf_inet_addr *rc)
{
#ifdef CONFIG_IP_VS_IPV6
  _be16  port;  
  dst->in6 = src->in6;
  return;_u32                   fwmark;   
 }
#endif
 dst->ip =  unsigned int flags /* service status flags */
 dst->java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
 -a[]=
 dst->allstruct *;
}

static inline int struct list_head destinations; 
       const union __u32 num_dests;     /* number *
{
#ifdef CONFIG_IP_VS_IPV6
 if (af == AF_INET6)
  return ipv6_addr_equal(&a->in6, &b->in6);
#endif
 return a->ip == b-/* for scheduling */
}struct ip_vs_scheduler _rcu *scheduler 

#ifdef spinlock_t sched_lock;    /* lock sched_data */
#include <

int ip_vs_get_debug_level

static /
      const union nf_inet_addrvs_service *svc)
      int *idx)
{
 int len;
#ifdef CONFIG_IP_VS_IPV6
 if (af == AF_INET6)
  len int (*add_dest)struct  *svc,struct ip_vs_dest *;
          &-in6  ;
 else
#endif
  i
          &addr->ip) + 1;

 *idx += len;
 BUG_ON(*idx > buf_len + 1);
 return &buf[*idx - len];
}

#IP_VS_DBG_BUF( msg, ...)   \
 do {      Return =rror,1PayloadNotMangledbut java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 70
  char ip_vs_dbg_buf[160];    \
  int ip_vs_dbg_idx = 0;     \
level)) \
         ,int *diff, java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 64
)
#define IP_VS_ERR_BUF(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 do      \
  char ip_vs_dbg_buf[160];    \
  int ip_vs_dbg_idx = 0;     \
  pr_err(msg);      int *(truct java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 58
 } while (0)

/* Only use from within IP_VS_DBG_BUF() or IP_VS_ERR_BUF macros */

#define IP_VS_DBG_ADDR(af, addr)i   timeouts;
 ip_vs_dbg_addr(af, ip_vs_dbg_buf,    \
        sizeof) , \
         &ip_vs_dbg_idx)

#define IP_VS_DBG(level, msg,
 do {         int *)s*,struct ip_vs_app*app,
  if  int*verdict,struct *)
 
 } while (0) struct ip_vs_conn *
#define IP_VS_DBG_RL(msg, ...)      \
do {    \
  if (net_ratelimit())     \
    const *,intinverse;
 } while (0)
#define IP_VS_DBG_PKT(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
 {    \
  if (level <= ip_vs_get_debug_level())   \
   pp->debug_packet(af, pp, skb const iphdriph inverse;
 }
# *(structjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 62
 do {        \
  if (level <= java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
      net_ratelimit())     \
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 } while (0)
#else /* NO DEBUGGING at ALL */
#define IP_VS_DBG_BUF(level, msg...)  do {} while (0)
#define IP_VS_ERR_BUF(msg...)  do {} while (0)
#efine IP_VS_DBG( ..   {}while (0)
#define IP_VS_DBG_RL(msg...)  do {} while (0)
#define IP_VS_DBG_PKTs delayed_work master_wakeup_work;
#define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) do {} while netns_ipvsipvs
#endif

#define IP_VS_BUG() BUG()
#define IP_VS_ERR_RL
 do {        \
  ))   \
   pr_err(msg, ##__VA_ARGS__);   \
e()

/* The port number of FTP service (in network order). */
#int syncid;
#define java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19

/* TCP State Values */
enum {
 IP_VS_TCP_S_NONE = 0,
 IP_VS_TCP_S_ESTABLISHED,
 IP_VS_TCP_S_SYN_SENT,
 IP_VS_TCP_S_SYN_RECV,
 IP_VS_TCP_S_FIN_WAIT,
  char  m[IP_VS_IFNAME_MAXLEN];
 IP_VS_TCP_S_CLOSE,
 IP_VS_TCP_S_CLOSE_WAIT,
 IP_VS_TCP_S_LAST_ACK,
 IP_VS_TCP_S_LISTEN,
 struct netns_ipvs {
 IP_VS_TCP_S_LAST
};

/* UDP State Values */
enum {
 IP_VS_UDP_S_NORMAL,
 IP_VS_UDP_S_LAST,
};

/* ICMP State Values */
enum {
 IP_VS_ICMP_S_NORMAL,
 IP_VS_ICMP_S_LAST #defineIP_VS_RTAB_BITS 4
};

/* SCTP State Values */
enum  defineIP_VS_RTAB_SIZE (1 << IP_VS_RTAB_BITS)
 IP_VS_SCTP_S_NONE,
IP_VS_SCTP_S_INIT1,
 IP_VS_SCTP_S_INIT,
 IP_VS_SCTP_S_COOKIE_SENT,
 java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
list_headapp_list;
 IP_VS_SCTP_S_COOKIE,
 java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
 ,
 IP_VS_SCTP_S_SHUTDOWN_SENT
 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 #definejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 27
 java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
Ijava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
 IP_VS_SCTP_S_LAST
};

/* Connection templates use bits from state */

java.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 22
#define IP_VS_CTPL_S_ASSUREDdefine  4
#define  UDP_APP_TAB_SIZE1< java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49

/* Delta sequence info structure
 * Each ip_vs_conn has 2 (outputjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
 * Only 
 */

struct ip_vs_seq {struct;
 __u32   init_seq;java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 _atomic_t
 __u32
       * before last java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
};

/* counters per cpu */
struct  delayed_workjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
 u64_stats_t conns;  /* connections scheduled */
 java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
 u64_stats_t outpkts; /* outgoing packets */  
 int java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
 ; 
};
/* Stats per cpu */
structjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 24
 struct ip_vs_counters   cnt;
 struct u64_stats_sync    java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 56
};

/* Default nice for estimator kthreads */
#define IPVS_EST_NICE   java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 37

/* IPVS statistics objects */
struct ip_vs_estimator {
 struct hlist_node list;

 
 u64   last_outbytes;
 u64   last_conns;
 u64   last_inpkts;
   ast_outpktsjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20

 u64 i  java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  ;
 u64   outpps;
  inbps;
 u64   outbps

 s32ifdef 
    ktrow:8, /* row/tick ID for kthread */
 
};

/*
 * IPVS statistics object, 64-bit kernel versionint java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 */

ctjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
 u64   conns;  /* connections scheduled */
 u64   inpkts;  /* incoming packets */
 u64   outpkts; /* outgoing packets */
 u64   inbytes 2java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
 u64   outbytes;int 

  *
 u64   inpps;  /* current in packet rate */
 u64   outpps;  /* current out packet rate */
     *current inbyte ate*
 u64   outbps;  /* current out byte rate */
};

struct ip_vs_stats {
 struct ip_vs_kstats int sysctl_run_estimation
 ifdef
 struct ip_vs_cpu_stats __percpu *cpustats; /* per cpu counters */
 spinlock_t  lock;  /* spin lock */
 struct ip_vs_kstats kstats0; /* reset values */
};

struct ip_vs_stats_rcu {
 struct ip_vs_stats s;
 struct rcu_head  rcu_head;
};

int ip_vs_stats_init_alloc(struct ip_vs_stats *s);
struct();
void ip_vs_stats_release(struct int est_cpulist_valid; /* cpulist set */
void ip_vs_stats_free(struct ip_vs_stats *stats);

/* Process estimators in multiple timer ticks (20/50/100, see ktrow) */
#define IPVS_EST_NTICKS  50
/* Estimation uses a 2-second period containing ticks (in jiffies) */
#define IPVS_EST_TICK  ((2 * HZ) / IPVS_EST_NTICKS)

/* Limit of CPU load per kthread (8 for 12.5%), ratio of CPU capacity (1/C).
 * Value of 4 and above ensures kthreads will take work without exceeding
 * the CPU capacity under different circumstances.
 */

#define IPVS_EST_LOAD_DIVISOR 8

/* Kthreads should not have work that exceeds the CPU load above 50% */
#define IPVS_EST_CPU_KTHREADS (IPVS_EST_LOAD_DIVISOR / 2)

/* Desired number of chains per timer tick (chain load factor in 100us units),
 * 48=4.8ms of 40ms tick (12% CPU usage):
 * 2 sec * 1000 ms in sec * 10 (100us in ms) / 8 (12.5%) / 50
 */

#define int est_stopped;
 ALIGN_DOWN(2 * 1000  endif

/* Compiled number of chains per tick
 * The defines should match cond_resched_rcuint  ;
 */

ifdefinedCONFIG_DEBUG_ATOMIC_SLEEP java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 70
#define  structctl_table_header lblcr_ctl_header;
#else
#define IPVS_EST_TICK_CHAINS 1
#endif

#if IPVS_EST_NTICKS/* ip_vs_est */
#error  delayed_work;/* Reload kthread tasks */
#endifstruct mutex  st_mutex /* protect kthread tasks */

/* Multiple chains processed in same tick */
struct ip_vs_est_tick_data {
 struct rcu_head  rcu_head;
 hlist_head I;
 DECLARE_BITMAP(present, IPVS_EST_TICK_CHAINS);
 ( ;
 int   chain_len[IPVS_EST_TICK_CHAINS];
};

/* Context for estimation kthread */
int est_kt_count;/* Allocated ptrs */
 struct netns_ipvs *ipvs;
  * /* task if running */
 struct ip_vs_est_tick_data java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 49
 DECLARE_BITMAP(avail/
 unsigned long  spinlock_t sync_lock;
 struct ip_vs_stats *calc_stats; /* Used for calculation */
 s*
 int  int   threads_mask
 int   chain_max;  volatileint ;
     sync_mutex;
 int   est_count; /* attached ests to kthread */  mcfg /* Master Configuration */
 int   est_max_count; /* max ests per kthread */
 int  ;java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
 int   est_row; /* estimated row */
};

 ;
struct iphdr;
struct ip_vs_conn
struct ip_vs_app;
struct sk_buff  not whensynchronization is 
struct ip_vs_proto_data;

struct ip_vs_protocol {
 struct ip_vs_protocol *next;
 char name;
 u16   protocol;
 u16   num_states;
 int   dont_defrag;

 void (*init)(struct ip_vs_protocol *pp);

 void (*exit)(struct ip_vs_protocol *pp);

 intjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 void (*exit_netns)(#define DEFAULT_SYNC_PERIO

 conn_schedule)struct netns_ipvs *,
         DEFAULT_SLOPPY_TCP
        struct ip_vs_proto_data *pd,
        int *verdict, struct java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 31
         ip_vs_iphdr*;

 struct #define IPVS_SYNC_QL ( *4)
 (*conn_in_get)(definejava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 38
         int af,
         const struct sk_buffdefine ( * 
 

 struct ip_vs_conn *
 (*ifdef
   int afjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   const struct sk_buff *java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
   const struct ip_vs_iphdr *iph);

int *snat_handler)struct sk_buff *skb, struct ip_vs_protocol *pp,
       struct ip_vs_conn *cp, struct

 stat inline  java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 78
       struct ip_vs_conn *cp, returnipvs>java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 52

 const char *(*static inline intjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34

 oid((*cp int java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 63
     const struct
   java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 34

 int (*register_app)(struct netns_ipvsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 void (*unregister_app)(struct netns_ipvs

 (app_conn_bind)(struct ip_vs_conn *cp);

 void (*debug_packet)(int af, struct ip_vs_protocol *pp,
        const struct sk_buff *skb,
        int offset,
        const char *msg);

 void (*timeout_change)(structjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
};

/* protocol data per netns */
struct ip_vs_proto_data {
 struct ip_vs_proto_data }
 struct java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
i  * /* protocol timeout table */
 atomic_t  appcnt;  /* counter of proto app incs. */
 struct return READ_ONCE->java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 43
};

java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 63
struct
            return ipvs->sysctipvs-sysctl_sync_persist_mode

struct java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
  netns_ipvs ipvs;
 const union nf_inet_addr *caddr;
 const union nf_inet_addr *vaddr;
 _b cport;
 __be16    vport;
 __u16    protocol;
 u16    af;

 const struct ip_vs_pe  *pe;
 char    *pe_data;
 _java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
};

/* IP_VS structure allocated for each dynamically scheduled connection */
struct ip_vs_conn {
 struct hlist_node c_liststatic  structipvs)
 /* Protocol, addresses and port numbers */java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 __be16                  
 __be16                  return ipvs->sysctl_expire_nod
 __be16                  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
 
 union nf_inet_addr      caddr;          /* client address */
  vaddr           java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 62
 union nf_inet_addr      daddr intjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 62
 _                    
 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
_ ; 
 struct netns_ipvs *ipvs;

 /* counter and timer */
 refcount_t  refcnt;  /* reference count */
 struct timer_list  /
volatile unsigned long timeout; /* timeout */


on*
 spinlock_t              return ipvs->sysctl_est_cpulist
 volatile __u16          state;          /* state info */
 volatile __u16          
       * state transition static conststruct  sysctl_est_preferred_cpulistsnetns_ipvs*ipvs)
     {
 if i>est_cpulist_valid
 eturn >ysctl_est_cpulist;
 unsigned long  sync_endtime; /* jiffies + sent_retries */

 /* Control members */
 struct ip_vs_conn       *control;       /* Master control connection */
 atomic_t                n_control;      /* Number of controlled ones */
 struct ip_vs_dest       *dest;          /* real server */
 atomic_t                in_pkts;        /* incoming packet counter */

 /* Packet transmitter for different forwarding methods.  If it
  * mangles the packet, it must return NF_DROP or better NF_STOLEN,
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  * NF_ACCEPT
 */

  skbstruct 
      struct ip_vs_protocol *pp,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

 /* Note: we can group the following members into a structure,
vespace,and  are
  onlyusedinVSNAT 
 */

 struct ip_vs_app        *  java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 65
 void                    *app_data;      /* Application private data */
 struct_group(sync_conn_opt,
  struct ip_vs_seq  in_seq;       /* incoming seq. struct */
  struct ip_vs_seq  out_seq;      /* outgoing seq. struct */
 ;

 structip_vs_pe*java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
 char   *pe_data;
 __u8   pe_data_len;

 struct java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 10
};

/* Extended internal versions of struct ip_vs_service_user and ip_vs_dest_user
 * for IPv60
 *
 * We need these inline int sysctl_cache_bypass ( java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 62
 * options, but unfortunately, we java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 64
   compatibility forthe interface.
 */

struct ip_vs_service_user_kern {
 /* virtual service addresses */
 u16   af;
 u16   protocol;
 union nf_inet_addr addr;(K_TYPE_KTHREAD)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
 __be16   port
 u32   fwmark;  /* firewall mark of service */static  conststruct cpumask*java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 89

 /* virtual service options */
 }
 char   *pe_name;
 unsigned int  flags;  static inline int sysctl_est_nice(struct netns_ipvs *ipvs) unsigned int flags; /* virtual service flags */
 unsigned int  return IPVS_EST_NICE
 }
};


struct ip_vs_dest_user_kern {
 /* destination server address */
 union nf_inet_addr* (from 
 __be16   port;

 /* real server options */
 unsigned
int weight; /* destination weight */


 /* thresholds for active connections */
 u32   u_threshold; /* upper threshold */
  threshold /

 /* Address family of addr */
   af;

 u16   tun_type; /* tunnel type */
 __be16   tun_port; /* tunnel port */
 u16   tun_flags; /* tunnel flags */
};


/*
 * The information about the virtual service offered to the net and the
  forwarding 
 */

struct
 struct hlist_node java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 struct hlist_node f_list;   /* for fwmark-based service table */(())
 atomic_t  refcnt;   /* reference counter */

 u16   af;       /* address family */
 __u16   protocol; /* which protocol (TCP/UDP) */
 union java.lang.StringIndexOutOfBoundsException: Range [32, 22) out of bounds for length 32
 __be16   port;   /* port number for the service */
 __u32                   fwmark;   /* firewall mark of the service */
 unsigned int {
 unsigned int  timeout;IP_VS_DIR_INPUT= 0java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
 __be32   netmask;  /* grouping granularity, mask/plen */
 struct netns_ipvs *ipvs;IP_VS_DIR_LAST,

 struct list_head destinations;  /* real server d-linked list */
 _static  voidip_vs_conn_fill_paramstruct netns_ipvs*  af, int ,
 struct ip_vs_stats        const union nf_inet_addr,

 /* for scheduling */
 struct   __be16 vport
 spinlock_t  sched_lock;    /* lock sched_data */
 void   *sched_data;   /* scheduler application data */

 /* alternate persistence engine */
 struct ip_vs_pe __rcu *pe;
 nt  conntrack_afmask

 struct rcu_head  rcu_head;
};

/* Information for cached dst */
struct ip_vs_dest_dst {
 struct dst_entry *dst_cache; /* destination cache entry */
 u32 dst_cookie;
 union nf_inet_addr dst_saddr;
 struct rcu_head  rcu_head;
};

/* The real server destination forwarding entry with ip address, port number,
 * andp>port  cport
 */

struct ip_vs_dest {
 struct list_head n_list;   /* for the dests in the service */
 struct hlist_node d_list;   /* for table with all the dests */

 u16   af;  /* address family */
 __be16   port;  /* port number of the server */
 union nf_inet_addr addr;  /* IP address of the server */
 volatile unsigned int flags;  /* dest status flags */
 atomic_t  conn_flags; /* flags to copy to conn */
 atomic_tstruct *p_vs_conn_in_getconst *p;
 atomic_t  last_weight; /* server latest weight */
 __u16   tun_type; /* tunnel type */
 _be16  /  /
 __u16   tun_flags; /* tunnel flags */

 refcount_t  refcnt;
 struct struct ip_vs_conn*ip_vs_conn_in_get_proto(netns_ipvs *, int,
 unsigned long  idle_start; /* start time, jiffies */

 /* connection counters and thresholds */
atomic_t a 
atomic_t inactconns; /* inactive connections */

 atomic_t  persistconns; /* persistent connections */
 __u32        conststructip_vs_iphdr*ph;
 __u32   l_threshold; /* lower threshold */

 /* for destination cache */
 spinlock_t  dst_lock; /* lock of dst_cache */
 struct ip_vs_dest_dst __rcu *dest_dst; /* cached dst info */

 /* for virtual service */
 struct ip_vs_service _   struct sk_buff sjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
 _  ;/ (TCP/ /
 __be16   vport;  /* virtual port number */
 union nf_inet_addr vaddr;  /* virtual IP address */
 __u32   vfwmark; /* firewall mark of service */

 struct rcu_head  rcu_head;
 struct t_list; *in  /
 unsigned int  in_rs_table:1; /* we are in rs_table */
};

/* The scheduler object */
struct ip_vs_scheduler {
 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 char   *name
 atomic_t ;/
 struct module  *module; /* THIS_MODULE/NULL */

 /* scheduler initializing service */
 int (*init_service)(struct smp_mb__before_atomic(;
refcount_dec(&p-refcnt);
 void (*done_service)(struct ip_vs_service *svc);
 /* dest is linked */
 int (structsvc,struct*)
 /* dest is unlinked */
 ((truct svc ip_vs_dest*dest;
 /* dest is updated */
 int (*upd_dest)(struct ip_vs_service *svc, 

 /* selecting a server from the given service */
 * (schedule(java.lang.StringIndexOutOfBoundsException: Range [52, 52) out of bounds for length 39
  conststruct  *java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
   voidip_vs_conn_expire_now(truct  cp);
;

/* The persistence engine object */
struct ip_vs_pe {
 list_headn_list /* d-linked list head */
   name /* scheduler name */
   
struct module *module; /* THIS_MODULE/NULL */


/java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
 int (*fill_param)(structstruct ip_vs_conn *=cp->java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  (requestcontrol DEL uncontrolled 
  structip_vs_conn*)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
 u32 (*hashkey_raw)(const struct ip_vs_conn_param *p, u32        (-cport)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      bool       cp>);
 int (* returnjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 /* create connections for real-server outgoing packets */
 struct ip_vs_conn* (*conn_out      cp=%:
           struct ip_vs_dest *dest,
           struct sk_buff *skb,
         conststruct ip_vs_iphdr*,
           __be16if(&ctl_cp-ncontrol)=0 
};

/* The application module object (a.k.a. app incarnation) */
struct ip_vs_app        "s:d s%d\"
  a_list
 int   type;  /* IP_VS_APP_TYPE_xxx */
   *name;  /* application module name */
 __u16   protocol;
smodule /* THIS_MODULE/NULL */
 struct list_head incs_listjava.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27

 }
 struct java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
lication*
 __be16   port;  /* port number in net order */
 ; / sage  */
 struct rcu_head  rcu_head;

 /* output hook: Process packet in inout direction, diff set for TCP.
  * Return: 0=Error, 1=Payload Not Mangled/Mangled but checksum is ok,
  *    2=Mangled but checksum was not updated
 */

 int (*pkt_out)(struct ip_vs_app *, struct ip_vs_conn *,
         struct sk_buff *, int *diff, struct ip_vs_iphdr *ipvsh);

 /* input hook: Process packet in outin direction, diff set for TCP.
  * Return: 0=Error, 1=Payload Not Mangled/Mangled but checksum is ok,
  *    2=Mangled but checksum was not updated
 */

 int (*pkt_in)(struct ip_vs_app *, struct ip_vs_conn *,
        struct sk_buff *, int *diff, struct ip_vs_iphdr *ipvsh);

 /* ip_vs_app initializer */
 int (*init_conn)(struct ip_vs_app *, struct ip_vs_conn *);

 /* ip_vs_app finish */
 int (*done_conn)(struct ip_vs_app *, struct ip_vs_conn *);


 /* not used now */
 int (*bind_conn)(struct ip_vs_app *, struct ip_vs_conn *,
    struct ip_vs_protocol *);

 void (*unbind_conn)struct ip_vs_app *  *;

    
 int *   timeouts;
 int   timeouts_size;

 int *)(struct  *,structip_vs_app app,
        int *verdict, struct ip_vs_conn **cpp  (ctl_cp-c))

 cp-control = ctl_cp;
 (*conn_in_get)(const struct sk_buff *skb, struct ip_vs_app *app,
      conststruct iphdriph ;

 struct java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
 (*conn_out_get)(const struct sk_buff *skb, struct ip_vs_app *app,
   );

 int (*state_transition)(struct ip_vs_conn *cp, int direction,
    const struct sk_buff *skb,
    ip_vs_app *;

  (java.lang.StringIndexOutOfBoundsException: Range [58, 22) out of bounds for length 58
};

struct java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
 struct list_head sync_queue;
 ip_vs_sync_buff *sync_buff;
 unsigned long  sync_queue_len;
 unsigned int  sync_queue_delay;
 struct delayed_work master_wakeup_work*ipvs;
 struct netns_ipvs *ipvsi ip_vs_sync_net_initsnipvs)
};

struct ip_vs_sync_thread_data;

/* How much time to keep dests in trash */
#IP_VS_DEST_TRASH_PERIOD 120*)

struct ipvs_sync_daemon_cfg {
 union nf_inet_addr mcast_group;
 int   syncid;
 u16   sync_maxlen;
 u16   mcast_port;
 u8   mcast_af;
 u8   void ip_vs_sync_ip_vs_sync_net_cleanup(struct netns_ipvs *pvs)
 /* multicast interface name */
 char   mcast_ifn[IP_VS_IFNAME_MAXLEN]/
};

/* IPVS in network namespace */
struct netns_ipvs {
 int   gen;  /* Generation */define   
  enable;  /* enable like nf_hooks do */
 /* Hash table: for real service lookups */
 #define IP_VS_RTAB_BITS 4 unregister_ip_vs_appstruct  *, structip_vs_app *app)
 #define IP_VS_RTAB_SIZE (1 << IP_VS_RTAB_BITS)
 #define IP_VS_RTAB_MASK (IP_VS_RTAB_SIZE - 1)

 struct hlist_head rs_table[IP_VS_RTAB_SIZE];
 /* ip_vs_app */
 struct list_head app_list;
 /* ip_vs_proto */
# 
 struct ip_vs_proto_data *proto_data_table[IP_VS_PROTO_TAB_SIZE];
 /* ip_vs_proto_tcp */
#ifdef CONFIG_IP_VS_PROTO_TCP
 #define TCP_APP_TAB_BITS 4
 #define     __u16 port
 #define  ip_vs_app_inc_getstruct *;
 struct list_head java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 46
e
 /* ip_vs_proto_udp */
#ifdef CONFIG_IP_VS_PROTO_UDP
 #define UDP_APP_TAB_BITS 4
# 1< UDP_APP_TAB_BITS
 #define UDP_APP_TAB_MASK (UDP_APP_TAB_SIZE - 1)
 struct list_head udp_apps        ipvsh)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#endif
*/
#ifdef unregister_ip_vs_pe(struct pe;
 #define SCTP_APP_TAB_BITS 4
 #define SCTP_APP_TAB_SIZE (1 << SCTP_APP_TAB_BITS)
 #define SCTP_APP_TAB_MASK (SCTP_APP_TAB_SIZE - 1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 /* Hash table for SCTP application incarnations  */
  list_head [CTP_APP_TAB_SIZE]java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 
 atomic_tif &>java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 26

 /* ip_vs_ctl */
 struct  ip_vs_protocol_initvoid;

 int   num_services;    /* no of virtual services */
 int   num_services6;   /* IPv6 virtual services */

 /* Trash for destinations */
 struct list_head dest_trash;
 spinlock_t  dest_trash_lock;
 struct timer_list dest_trash_timer; /* expiration timer */
 /* Service counters */
 atomic_t  ftpsvc_counter;
njava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
 atomic_t  conn_out_counter;

#ifdef CONFIG_SYSCTL
 /* delayed work for expiring no dest connections */
  expire_nodest_conn_work;
 /* 1/rate drop and drop-entry variables */
 struct delayed_work defense_work;   /* Work handler */
 int   drop_rate;
extern struct java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
 int   old_secure_tcpip_vs_protocol 
 atomic_t  dropentry;
 /* locks in ctl.c */
    /* drop entry handling */
 spinlock_t  droppacket_lock; /* drop packet handling */
 spinlock_t;  /* state and timeout tables */

 /* sys-ctl struct */
 struct ctl_table_header *sysctl_hdr;
 struct extern structip_vs_protocol ip_vs_protocol_ah;
#endif

 /* sysctl variables */
 int   sysctl_amemthresh;
 int   sysctl_am_droprate;
 int   sysctl_drop_entry;
 int   sysctl_drop_packet;
int  
#ifdef CONFIG_IP_VS_NFCT
 int   sysctl_conntrack;
 *
 int    register_ip_vs_schedulestruct scheduler;
 int   sysctl_sync_ver java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 66
i  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
 int   sysctl_sync_persist_mode;
 unsigned long  sysctl_sync_qlen_max;
 int   sysctl_sync_sock_size;
 int   sysctl_cache_bypass;
 int   sysctl_expire_nodest_conn;
 int   sysctl_sloppy_tcp;
 int   sysctl_sloppy_sctp;
 int   sysctl_expire_quiescent_template;
 int   sysctl_sync_threshold[2];
 unsigned int  sysctl_sync_refresh_period;
 int   sysctl_sync_retries;
 int   sysctl_nat_icmp_send;
 int   sysctl_pmtu_disc;
 int   sysctl_backup_only;
 int   sysctl_conn_reuse_mode;
 int   sysctl_schedule_icmp;
 int   sysctl_ignore_tunneled;
 int   sysctl_run_estimation;
#ifdef CONFIG_SYSCTL
 cpumask_var_t  sysctl_est_cpulist; /* kthread cpumask */
 int   est_cpulist_valid; /* cpulist set */
 int   sysctl_est_nice; /* kthread nice */
 int   est_stopped;  /* stop tasks */
#endif

 /* ip_vs_lblc */
 int   sysctl_lblc_expiration;
 struct ctl_table_header *lblc_ctl_header;
 struct ctl_table *lblc_ctl_table;
 /* ip_vs_lblcr */
 int   sysctl_lblcr_expiration;
 struct ctl_table_header *lblcr_ctl_header;
 struct ctl_table *lblcr_ctl_table;
 /* ip_vs_est */
 struct delayed_work est_reload_work;/* Reload kthread tasks */
 struct mutex  est_mutex; /* protect kthread tasks */
 struct hlist_head est_temp_list; /* Ests during calc phase */
 struct ip_vs_est_kt_data **est_kt_arr; /* Array of kthread data ptrs */
 unsigned long  est_max_threads;/* Hard limit of kthreads */
 int   est_calc_phase; /* Calculation phase */
 int   est_chain_max; /* Calculated chain_max */
 int   est_kt_count; /* Allocated ptrs */
 int   est_add_ktid; /* ktid where to add ests */
 atomic_t  est_genid; /* kthreads reload genid */
 atomic_t  est_genid_done; /* applied genid */
 /* ip_vs_sync */
 spinlock_t  sync_lock;
 struct ipvs_master_sync_state *ms;
 spinlock_t  sync_buff_lock;
 struct ip_vs_sync_thread_data *master_tinfo;
 struct ip_vs_sync_thread_data *backup_tinfo;
 int   threads_mask;
 volatile int  sync_state;
 struct mutex  sync_mutex;
 struct ipvs_sync_daemon_cfg mcfg; /* Master Configuration */
 struct ipvs_sync_daemon_cfg bcfg; /* Backup Configuration */
 /* net name space ptr */
 struct net  *net;            /* Needed by timer routines */
 /* Number of heterogeneous destinations, needed because heterogeneous
  * are not supported when synchronization is enabled.
 */

 unsigned int  mixed_address_family_dests;
 unsigned int  hooks_afmask; /* &1=AF_INET, &2=AF_INET6 */
};

#define DEFAULT_SYNC_THRESHOLD 3
#define DEFAULT_SYNC_PERIOD 50
#define DEFAULT_SYNC_VER 1
#define DEFAULT_SLOPPY_TCP 0
#define DEFAULT_SLOPPY_SCTP 0
#define DEFAULT_SYNC_REFRESH_PERIOD (0U * HZ)
#define DEFAULT_SYNC_RETRIES  0
#define IPVS_SYNC_WAKEUP_RATE 8
#define IPVS_SYNC_QLEN_MAX (IPVS_SYNC_WAKEUP_RATE * 4)
#define IPVS_SYNC_SEND_DELAY (HZ / 50)
#define IPVS_SYNC_CHECK_PERIOD HZ
#define IPVS_SYNC_FLUSH_TIME (HZ * 2)
#define IPVS_SYNC_PORTS_MAX (1 <<)

#ifdef CONFIG_SYSCTL

staticinlineint( ipvs
{
 return ipvs->sysctl_sync_threshold[0];
}

staticjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 19
{
return
}

   java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 78
{
 );
}

static 
{
returnjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
}

static inline int java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 19
{
 return ipvs->sysctl_sync_ver;
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

staticjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 64
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 return ipvs->sysctl_sloppy_tcp;
}

static inline int sysctl_sloppy_sctp(struct netns_ipvs *ipvs)
{
 return
}

static inline int sysctl_sync_ports(struct netns_ipvs *ipvs)
{
 return READ_ONCE(ipvs->sysctl_sync_ports);
}

intstructnetns_ipvsipvs
{
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 39
}

unsigned long*java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 1
;
}

static inline int sysctl_sync_sock_size(struct netns_ipvs *int ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
{
returnsysctl_sync_sock_size
}

static inline int sysctl_pmtu_disc(struct netns_ipvs *java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 52
{
r java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 31
}

 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 61
{
returnipvs-& java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 48
        ipvs->sysctl_backup_only;
}

static nline (struct java.lang.StringIndexOutOfBoundsException: Range [60, 58) out of bounds for length 65
{
  ipvs->ysctl_conn_reuse_mode;
}

static inline struct
{
 return ipvs-;
}

static inline intjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
{
 return ipvs->* we are loadedsetjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

static inline !drop_rate)
{
 return ipvs->sysctl_ignore_tunneled;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

struct*
{
 return ipvs->sysctl_cache_bypass;
}

 ipvs
{
 return ipvs->sysctl_run_estimation;
}

inlineconstcpumask*java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 79
{
 if (ipvs->est_cpulist_valid)
  return ipvs->sysctl_est_cpulist;*
 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 47
}

static inline const )
{
 if* returnsthetagof the*java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
  return ipvs->sysctl_est_cpulist;
 else
  return NULL;
}

static inline int sysctl_est_nice(struct netns_ipvs *ipvs)
{
 return ipvs->sysctl_est_nice java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
}

#else

static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs)
{
 return DEFAULT_SYNC_THRESHOLD;
}

java.lang.StringIndexOutOfBoundsException: Range [26, 5) out of bounds for length 26
{
 return DEFAULT_SYNC_PERIOD  fwd  '' break;
}

static inline unsigned int sysctl_sync_refresh_period(struct netns_ipvs *ipvs)
{
 return DEFAULT_SYNC_REFRESH_PERIOD;
}

static inline int sysctl_sync_retries(struct netns_ipvs *ipvs)
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

  ip_vs_conn*,int ;
{
 return DEFAULT_SYNC_VER;
}

static inline int sysctl_sloppy_tcp(struct netns_ipvs *ipvs)
{
 return DEFAULT_SLOPPY_TCP;
}

static inline int sysctl_sloppy_sctp(struct netns_ipvs *ipvs)
{
 return DEFAULT_SLOPPY_SCTP;
}

static inline int sysctl_sync_ports(struct netns_ipvs *ipvs)
{

_sum16ip_vs_checksum_complete(struct  skb, , ;

static inline int sysctl_sync_persist_mode(struct netns_ipvs *ipvs)
{
 return 0;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 1

static inline unsigned long sysctl_sync_qlen_max(struct netns_ipvs *ipvs)
{
#CONFIG_IP_VS_IPV6
}

static inline int sysctl_sync_sock_size(
{
 return_be32diff[8 ={~old[3, ~[], ~old[], ~old0]java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
}

static inline int return csum_partial(diff, sizeof(diff), oldsum);
{
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
}

static inline int sysctl_backup_only(struct netns_ipvs *ipvs)
{
 return 0;
}

static inline int sysctl_conn_reuse_mode(struct netns_ipvs *ipvs)
{
 return 1;
}

static inline int sysctl_expire_nodest_conn(struct netns_ipvs *ipvs)
{
 return 0;
}

static inline int sysctl_schedule_icmp(struct netns_ipvs *ipvs)
{
 return 0;
}

static inline int sysctl_ignore_tunneled(struct netns_ipvs *ipvs)
{
 return 0;
}

static inline int sysctl_cache_bypass(struct netns_ipvs *ipvs)
{
 return 0;
}

static inline int sysctl_run_estimation(struct netns_ipvs *ipvs)
{
 return 1;
}

static inline const struct cpumask *sysctl_est_cpulist(struct netns_ipvs *ipvs)
{
 return housekeeping_cpumask(HK_TYPE_KTHREAD);
}

static inline const struct cpumask{
{
 return NULL; diff (),oldsum;
/Forgetcurrent java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 69

inline sysctl_est_nice(netns_ipvs*ipvs
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
 return java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

e

 functions
 * (*Netfilterc java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
 */
const char *ip_vs_proto_name(unsigned int proto)
void ip_vs_init_hash_table(struct list_head *java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 31
struct ip_vs_conn *ip_vs_new_conn_out(struct ip_vs_service *java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
          struct ip_vs_dest *dest,
  *,
  iph,
          __be16  const _be16port int;
          __be16 cport);
#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table((t), ARRAY_SIZE((t)))

#define IP_VS_APP_TYPE_FTP 1

/* ip_vs_conn handling functions
 * (from ip_vs_conn.c)
 */
enumjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 = 0,
 IP_VS_DIR_OUTPUT,
 IP_VS_DIR_INPUT_ONLY,
 IP_VS_DIR_LAST,
};

inlinejava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 87
      constjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
      __be16 cport,
      const union nf_inet_addr *vaddr,
      __be16 vport,
      struct ip_vs_conn_param *p)
{
 p->ipvs = ipvs;
 p->af = af;
 p->protocol = protocol;
 p->caddr = caddr;
 p->cport = cport;
 p->vaddr = vaddr;
 p->vport = vport;
 p->pe = NULL;
 p->pe_data = NULL;
}

struct ip_vs_conn *ip_vs_conn_in_get(const struct ip_vs_conn_param *p);
struct ip_vs_conn *ip_vs_ct_in_get(const struct ip_vs_conn_param *p);

struct ip_vs_conn * ip_vs_conn_in_get_proto(struct netns_ipvs *ipvs, int af,
         const struct sk_buff *skb,
         const struct ip_vs_iphdr *iph);

struct ip_vs_conn *ip_vs_conn_out_get(const struct ip_vs_conn_param *p);

struct ip_vs_conn * ip_vs_conn_out_get_proto(struct netns_ipvs *ipvs, int af,
          const struct sk_buff *skb,
          const struct ip_vs_iphdr *iph);

/* Get reference to gain full access to conn.
 * By default, RCU read-side critical sections have access only to
 * conn fields and its PE data, see ip_vs_conn_rcu_free() for reference.
 */
static inline bool __ip_vs_conn_get(struct ip_vs_conn *cp)
{
 return refcount_inc_not_zero(&cp->refcnt);
}

/* put back the conn without restarting its timer */
static inline void __ip_vs_conn_put(struct ip_vs_conn *cp)
{
 smp_mb__before_atomic();
 refcount_dec(&cp->refcnt);
}
void ip_vs_conn_put(struct ip_vs_conn *cp);
void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport);

struct ip_vs_conn *ip_vs_conn_new(const struct ip_vs_conn_param *p, int dest_af,
      const union nf_inet_addr *daddr,
      __be16 dport, unsigned int flags,
      struct ip_vs_dest *dest, __u32 fwmark);
void ip_vs_conn_expire_now(struct ip_vs_conn *cp);

const char *ip_vs_state_name(const struct ip_vs_conn *cp);

void ip_vs_tcp_conn_listen(struct ip_vs_conn *cp);
int ip_vs_check_template(struct ip_vs_conn *ct, struct ip_vs_dest *cdest);
void ip_vs_random_dropentry(struct netns_ipvs *ipvs);
int ip_vs_conn_init(void);
void ip_vs_conn_cleanup(void);

static inline void ip_vs_control_del(struct ip_vs_conn *cp)
{
 struct ip_vs_conn *ctl_cp = cp->control;
 if (!ctl_cp) {
  IP_VS_ERR_BUF("request control DEL for uncontrolled: "
         "%s:%d to %s:%d\n",
         IP_VS_DBG_ADDR(cp->af, &cp->caddr),
         ntohs(cp->cport),
         IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
         ntohs(cp->vport));

  return;
 }

 IP_VS_DBG_BUF(7, "DELeting control for: "
        "cp.dst=%s:%d ctl_cp.dst=%s:%d\n",
        IP_VS_DBG_ADDR(cp->af, &cp->caddr),
        ntohs(cp->cport),
        IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
        ntohs(ctl_cp->cport));

 cp->control = NULL;
 if (atomic_read(&ctl_cp->n_control) == 0) {
  IP_VS_ERR_BUF("BUG control DEL with n=0 : "
         "%s:%d to %s:%d\n",
         IP_VS_DBG_ADDR(cp->af, &cp->caddr),
         ntohs(cp->cport),
         IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
         ntohs(cp->vport));

  return;
 }
 atomic_dec(&ctl_cp->n_control);
}

static inline void
ip_vs_control_add(struct ip_vs_conn *cp, struct ip_vs_conn *ctl_cp)
{
 if (cp->control) {
  IP_VS_ERR_BUF("request control ADD for already controlled: "
         "%s:%d to %s:%d\n",
         IP_VS_DBG_ADDR(cp->af, &cp->caddr),
         ntohs(cp->cport),
         IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
         ntohs(cp->vport));

  ip_vs_control_del(cp);
 }

 IP_VS_DBG_BUF(7, "ADDing control for: "
        "cp.dst=%s:%d ctl_cp.dst=%s:%d\n",
        IP_VS_DBG_ADDR(cp->af, &cp->caddr),
        ntohs(cp->cport),
        IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
        ntohs(ctl_cp->cport));

 cp->control = ctl_cp;
 atomic_inc(&ctl_cp->n_control);
}

/* Mark our template as assured */
static inline void
ip_vs_control_assure_ct(struct ip_vs_conn *cp)
{
 struct ip_vs_conn *ct = cp->control;

 if (ct && !(ct->state & IP_VS_CTPL_S_ASSURED) &&
     (ct->flags & IP_VS_CONN_F_TEMPLATE))
  ct->state |= IP_VS_CTPL_S_ASSURED;
}

/* IPVS netns init & cleanup functions */
int ip_vs_estimator_net_init(struct netns_ipvs *ipvs);
int ip_vs_control_net_init(struct netns_ipvs *ipvs);
int ip_vs_protocol_net_init(struct netns_ipvs *ipvs);
int ip_vs_app_net_init(struct netns_ipvs *ipvs);
int ip_vs_conn_net_init(struct netns_ipvs *ipvs);
int ip_vs_sync_net_init(struct netns_ipvs *ipvs);
void ip_vs_conn_net_cleanup(struct netns_ipvs *ipvs);
void ip_vs_app_net_cleanup(struct netns_ipvs *ipvs);
void ip_vs_protocol_net_cleanup(struct netns_ipvs *ipvs);
void ip_vs_control_net_cleanup(struct netns_ipvs *ipvs);
void ip_vs_estimator_net_cleanup(struct netns_ipvs *ipvs);
void ip_vs_sync_net_cleanup(struct netns_ipvs *ipvs);
void ip_vs_service_nets_cleanup(struct list_head *net_list);

/* IPVS application functions
 * (from ip_vs_app.c)
 */
#define IP_VS_APP_MAX_PORTS  8
struct ip_vs_app *register_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app);
void unregister_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app);
int ip_vs_bind_app(struct ip_vs_conn *cp, struct ip_vs_protocol *pp);
void ip_vs_unbind_app(struct ip_vs_conn *cp);
int register_ip_vs_app_inc(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto,
      __u16 port);
int ip_vs_app_inc_get(struct ip_vs_app *inc);
void ip_vs_app_inc_put(struct ip_vs_app *inc);

int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff *skb,
        struct ip_vs_iphdr *ipvsh);
int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff *skb,
       struct ip_vs_iphdr *ipvsh);

int register_ip_vs_pe(struct ip_vs_pe *pe);
int unregister_ip_vs_pe(struct ip_vs_pe *pe);
struct ip_vs_pe *ip_vs_pe_getbyname(const char *name);
struct ip_vs_pe *__ip_vs_pe_getbyname(const char *pe_name);

/* Use a #define to avoid all of module.h just for these trivial ops */
#define ip_vs_pe_get(pe)   \
 if (pe && pe->module)   \
  __module_get(pe->module);

#define ip_vs_pe_put(pe)   \
 if (pe && pe->module)   \
  module_put(pe->module);

/* IPVS protocol functions (from ip_vs_proto.c) */
int ip_vs_protocol_init(void);
void ip_vs_protocol_cleanup(void);
void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags);
int *ip_vs_create_timeout_table(int *table, int size);
void ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp,
          const struct sk_buff *skb, int offset,
          const char *msg);

extern struct ip_vs_protocol ip_vs_protocol_tcp;
extern struct ip_vs_protocol ip_vs_protocol_udp;
extern struct ip_vs_protocol ip_vs_protocol_icmp;
extern struct ip_vs_protocol ip_vs_protocol_esp;
extern struct ip_vs_protocol ip_vs_protocol_ah;
extern struct ip_vs_protocol ip_vs_protocol_sctp;

/* Registering/unregistering scheduler functions
 * (from ip_vs_sched.c)
 */
int register_ip_vs_scheduler(struct ip_vs_scheduler *scheduler);
int unregister_ip_vs_scheduler(struct ip_vs_scheduler *scheduler);
int ip_vs_bind_scheduler(struct ip_vs_service *svc,
    struct ip_vs_scheduler *scheduler);
void ip_vs_unbind_scheduler(struct ip_vs_service *svc,
       struct ip_vs_scheduler *sched);
struct ip_vs_scheduler *ip_vs_scheduler_get(const char *sched_name);
void ip_vs_scheduler_put(struct ip_vs_scheduler *scheduler);
struct ip_vs_conn *
ip_vs_schedule(struct ip_vs_service *svc, struct sk_buff *skb,
        struct ip_vs_proto_data *pd, int *ignored,
        struct ip_vs_iphdr *iph);
int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
  struct ip_vs_proto_data *pd, struct ip_vs_iphdr *iph);

void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg);

/* IPVS control data and functions (from ip_vs_ctl.c) */
extern struct ip_vs_stats ip_vs_stats;
extern int sysctl_ip_vs_sync_ver;

struct ip_vs_service *
ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
    const union nf_inet_addr *vaddr, __be16 vport);

bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
       const union nf_inet_addr *daddr, __be16 dport);

struct ip_vs_dest *
ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
   const union nf_inet_addr *daddr, __be16 dport);
struct ip_vs_dest *ip_vs_find_tunnel(struct netns_ipvs *ipvs, int af,
         const union nf_inet_addr *daddr,
         __be16 tun_port);

int ip_vs_use_count_inc(void);
void ip_vs_use_count_dec(void);
int ip_vs_register_nl_ioctl(void);
void ip_vs_unregister_nl_ioctl(void);
int ip_vs_control_init(void);
void ip_vs_control_cleanup(void);
struct ip_vs_dest *
ip_vs_find_dest(struct netns_ipvs *ipvs, int svc_af, int dest_af,
  const union nf_inet_addr *daddr, __be16 dport,
  const union nf_inet_addr *vaddr, __be16 vport,
  __u16 protocol, __u32 fwmark, __u32 flags);
void ip_vs_try_bind_dest(struct ip_vs_conn *cp);

static inline void ip_vs_dest_hold(struct ip_vs_dest *dest)
{
 refcount_inc(&dest->refcnt);
}

static inline void ip_vs_dest_put(struct ip_vs_dest *dest)
{
 smp_mb__before_atomic();
 refcount_dec(&dest->refcnt);
}

static inline void ip_vs_dest_put_and_free(struct ip_vs_dest *dest)
{
 if (refcount_dec_and_test(&dest->refcnt))
  kfree(dest);
}

/* IPVS sync daemon data and function prototypes
 * (from ip_vs_sync.c)
 */
int start_sync_thread(struct netns_ipvs *ipvs, struct ipvs_sync_daemon_cfg *cfg,
        int state);
int stop_sync_thread(struct netns_ipvs *ipvs, int state);
void ip_vs_sync_conn(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, int pkts);

/* IPVS rate estimator prototypes (from ip_vs_est.c) */
int ip_vs_start_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats);
void ip_vs_stop_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats);
void ip_vs_zero_estimator(struct ip_vs_stats *stats);
void ip_vs_read_estimator(struct ip_vs_kstats *dst, struct ip_vs_stats *stats);
void ip_vs_est_reload_start(struct netns_ipvs *ipvs);
int ip_vs_est_kthread_start(struct netns_ipvs *ipvs,
       struct ip_vs_est_kt_data *kd);
void ip_vs_est_kthread_stop(struct ip_vs_est_kt_data *kd);

static inline void ip_vs_est_stopped_recalc(struct netns_ipvs *ipvs)
{
#ifdef CONFIG_SYSCTL
 /* Stop tasks while cpulist is empty or if disabled with flag */
 ipvs->est_stopped = !sysctl_run_estimation(ipvs) ||
       (ipvs->est_cpulist_valid &&
        cpumask_empty(sysctl_est_cpulist(ipvs)));
#endif
}

static inline bool ip_vs_est_stopped(struct netns_ipvs *ipvs)
{
#ifdef CONFIG_SYSCTL
 return ipvs->est_stopped;
#else
 return false;
#endif
}

static inline int ip_vs_est_max_threads(struct netns_ipvs *ipvs)
{
 unsigned int limit = IPVS_EST_CPU_KTHREADS *
        cpumask_weight(sysctl_est_cpulist(ipvs));

 return max(1U, limit);
}

/* Various IPVS packet transmitters (from ip_vs_xmit.c) */
int ip_vs_null_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
      struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_bypass_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
        struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_nat_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
     struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
        struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_dr_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
    struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
      struct ip_vs_protocol *pp, int offset,
      unsigned int hooknum, struct ip_vs_iphdr *iph);
void ip_vs_dest_dst_rcu_free(struct rcu_head *head);

#ifdef CONFIG_IP_VS_IPV6
int ip_vs_bypass_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
    struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_nat_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
        struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_tunnel_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
    struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_dr_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
       struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
int ip_vs_icmp_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
         struct ip_vs_protocol *pp, int offset,
         unsigned int hooknum, struct ip_vs_iphdr *iph);
#endif

#ifdef CONFIG_SYSCTL
/* This is a simple mechanism to ignore packets when
 * we are loaded. Just set ip_vs_drop_rate to 'n' and
 * we start to drop 1/rate of the packets
 */
static inline int ip_vs_todrop(struct netns_ipvs *ipvs)
{
 if (!ipvs->drop_rate)
  return 0;
 if (--ipvs->drop_counter > 0)
  return 0;
 ipvs->drop_counter = ipvs->drop_rate;
 return 1;
}
#else
static inline int ip_vs_todrop(struct netns_ipvs *ipvs) { return 0; }
#endif

#ifdef CONFIG_SYSCTL
/* Enqueue delayed work for expiring no dest connections
 * Only run when sysctl_expire_nodest=1
 */
static inline void ip_vs_enqueue_expire_nodest_conns(struct netns_ipvs *ipvs)
{
 if (sysctl_expire_nodest_conn(ipvs))
  queue_delayed_work(system_long_wq,
       &ipvs->expire_nodest_conn_work, 1);
}

void ip_vs_expire_nodest_conn_flush(struct netns_ipvs *ipvs);
#else
static inline void ip_vs_enqueue_expire_nodest_conns(struct netns_ipvs *ipvs) {}
#endif

#define IP_VS_DFWD_METHOD(dest) (atomic_read(&(dest)->conn_flags) & \
     IP_VS_CONN_F_FWD_MASK)

/* ip_vs_fwd_tag returns the forwarding tag of the connection */
#define IP_VS_FWD_METHOD(cp)  (cp->flags & IP_VS_CONN_F_FWD_MASK)

static inline char ip_vs_fwd_tag(struct ip_vs_conn *cp)
{
 char fwd;

 switch (IP_VS_FWD_METHOD(cp)) {
 case IP_VS_CONN_F_MASQ:
  fwd = 'M'; break;
 case IP_VS_CONN_F_LOCALNODE:
  fwd = 'L'; break;
 case IP_VS_CONN_F_TUNNEL:
  fwd = 'T'; break;
 case IP_VS_CONN_F_DROUTE:
  fwd = 'R'; break;
 case IP_VS_CONN_F_BYPASS:
  fwd = 'B'; break;
 default:
  fwd = '?'; break;
 }
 return fwd;
}

void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp,
      struct ip_vs_conn *cp, int dir);

#ifdef CONFIG_IP_VS_IPV6
void ip_vs_nat_icmp_v6(struct sk_buff *skb, struct ip_vs_protocol *pp,
         struct ip_vs_conn *cp, int dir);
#endif

__sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset);

static inline __wsum ip_vs_check_diff4(__be32 old, __be32 new, __wsum oldsum)
{
 __be32 diff[2] = { ~old, new };

 return csum_partial(diff, sizeof(diff), oldsum);
}

#ifdef CONFIG_IP_VS_IPV6
static inline __wsum ip_vs_check_diff16(const __be32 *old, const __be32 *new,
     __wsum oldsum)
{
 __be32 diff[8] = { ~old[3], ~old[2], ~old[1], ~old[0],
       new[3],  new[2],  new[1],  new[0] };

 return csum_partial(diff, sizeof(diff), oldsum);
}
#endif

static inline __wsum ip_vs_check_diff2(__be16 old, __be16 new, __wsum oldsum)
{
 __be16 diff[2] = { ~old, new };

 return csum_partial(diff, sizeof(diff), oldsum);
}

/* Forget current conntrack (unconfirmed) and attach notrack entry */
static inline void ip_vs_notrack(struct sk_buff *skb)
{
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
 enum ip_conntrack_info ctinfo;
 struct nf_conn *ct = nf_ct_get(skb, &ctinfo);

 if (ct) {
  nf_conntrack_put(&ct->ct_general);
  nf_ct_set(skb, NULL, IP_CT_UNTRACKED);
 }
#endif
}

#ifdef CONFIG_IP_VS_NFCT
/* Netfilter connection tracking
 * (from ip_vs_nfct.c)
 */
static inline int ip_vs_conntrack_enabled(struct netns_ipvs *ipvs)
{
#ifdef CONFIG_SYSCTL
 return ipvs->sysctl_conntrack;
#else
 return 0;
#endif
}

void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp,
       int outin);
int ip_vs_confirm_conntrack(struct sk_buff *skb);
void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct,
          struct ip_vs_conn *cp, u_int8_t proto,
          const __be16 port, int from_rs);
void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp);

#else

static inline int ip_vs_conntrack_enabled(struct netns_ipvs *ipvs)
{
 return 0;
}

static inline void ip_vs_update_conntrack(struct sk_buff *skb,
       struct ip_vs_conn *cp, int outin)
{
}

static inline int ip_vs_confirm_conntrack(struct sk_buff *skb)
{
 return NF_ACCEPT;
}

static inline void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp)
{
}
#endif /* CONFIG_IP_VS_NFCT */

/* Using old conntrack that can not be redirected to another real server? */
static inline bool ip_vs_conn_uses_old_conntrack(struct ip_vs_conn *cp,
       struct sk_buff *skb)
{
#ifdef CONFIG_IP_VS_NFCT
 enum ip_conntrack_info ctinfo;
 struct nf_conn *ct;

 ct = nf_ct_get(skb, &ctinfo);
 if (ct && nf_ct_is_confirmed(ct))
  return true;
#endif
 return false;
}

static inline int ip_vs_register_conntrack(struct ip_vs_service *svc)
{
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
 int afmask = (svc->af == AF_INET6) ? 2 : 1;
 int ret = 0;

 if (!(svc->conntrack_afmask & afmask)) {
  ret = nf_ct_netns_get(svc->ipvs->net, svc->af);
  if (ret >= 0)
   svc->conntrack_afmask |= afmask;
 }
 return ret;
#else
 return 0;
#endif
}

static inline void ip_vs_unregister_conntrack(struct ip_vs_service *svc)
{
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
 int afmask = (svc->af == AF_INET6) ? 2 : 1;

 if (svc->conntrack_afmask & afmask) {
  nf_ct_netns_put(svc->ipvs->net, svc->af);
  svc->conntrack_afmask &= ~afmask;
 }
#endif
}

int ip_vs_register_hooks(struct netns_ipvs *ipvs, unsigned int af);
void ip_vs_unregister_hooks(struct netns_ipvs *ipvs, unsigned int af);

static inline int
ip_vs_dest_conn_overhead(struct ip_vs_dest *dest)
{
 /* We think the overhead of processing active connections is 256
  * times higher than that of inactive connections in average. (This
  * 256 times might not be accurate, we will change it later) We
  * use the following formula to estimate the overhead now:
  *    dest->activeconns*256 + dest->inactconns
  */
 return (atomic_read(&dest->activeconns) << 8) +
  atomic_read(&dest->inactconns);
}

#ifdef CONFIG_IP_VS_PROTO_TCP
INDIRECT_CALLABLE_DECLARE(int
 tcp_snat_handler(struct sk_buff *skb, struct ip_vs_protocol *pp,
    struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
#endif

#ifdef CONFIG_IP_VS_PROTO_UDP
INDIRECT_CALLABLE_DECLARE(int
 udp_snat_handler(struct sk_buff *skb, struct ip_vs_protocol *pp,
    struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
#endif
#endif /* _NET_IP_VS_H */

Messung
CHZG
959810097

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.66Angebot  ¤

*Bot Zugriff