···2828#endif2929}30303131+/*3232+ * This one is needed for single_open_net since net is stored directly in3333+ * private not as a struct i.e. seq_file_net can't be used.3434+ */3535+static inline struct net *seq_file_single_net(struct seq_file *seq)3636+{3737+#ifdef CONFIG_NET_NS3838+ return (struct net *)seq->private;3939+#else4040+ return &init_net;4141+#endif4242+}4343+3144#endif
-12
include/net/ip_vs.h
···4141 return net->ipvs;4242}43434444-/* This one needed for single_open_net since net is stored directly in4545- * private not as a struct i.e. seq_file_net can't be used.4646- */4747-static inline struct net *seq_file_single_net(struct seq_file *seq)4848-{4949-#ifdef CONFIG_NET_NS5050- return (struct net *)seq->private;5151-#else5252- return &init_net;5353-#endif5454-}5555-5644/* Connections' size value needed by ip_vs_ctl.c */5745extern int ip_vs_conn_tab_size;5846