linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Status of net/ipv4/ipvs/ip_vs_proto_icmp.c?
@ 2005-05-13  4:16 Adrian Bunk
  2005-05-13 19:09 ` Andres Salomon
  2005-05-14  7:17 ` Julian Anastasov
  0 siblings, 2 replies; 6+ messages in thread
From: Adrian Bunk @ 2005-05-13  4:16 UTC (permalink / raw)
  To: Julian Anastasov, Wensong Zhang; +Cc: netdev, linux-kernel

Hi,

can anyone explain the status of?

This file is always included in the kernel if CONFIG_IP_VS=y, but it's 
completely unused.

Will it be made working in the forseeable future or is it a candidate 
for removal?

TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of net/ipv4/ipvs/ip_vs_proto_icmp.c?
  2005-05-13  4:16 Status of net/ipv4/ipvs/ip_vs_proto_icmp.c? Adrian Bunk
@ 2005-05-13 19:09 ` Andres Salomon
  2005-05-15  8:27   ` Adrian Bunk
  2005-05-14  7:17 ` Julian Anastasov
  1 sibling, 1 reply; 6+ messages in thread
From: Andres Salomon @ 2005-05-13 19:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: netdev

On Fri, 13 May 2005 06:16:22 +0200, Adrian Bunk wrote:

> Hi,
> 
> can anyone explain the status of?
> 
> This file is always included in the kernel if CONFIG_IP_VS=y, but it's 
> completely unused.
> 
> Will it be made working in the forseeable future or is it a candidate 
> for removal?
> 
> TIA
> Adrian

The people/places to ask would probably be:

IPVS
P:      Wensong Zhang
M:      wensong@linux-vs.org
P:      Julian Anastasov
M:      ja@ssi.bg
S:      Maintained

or

http://www.linuxvirtualserver.org/mailing.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of net/ipv4/ipvs/ip_vs_proto_icmp.c?
  2005-05-13  4:16 Status of net/ipv4/ipvs/ip_vs_proto_icmp.c? Adrian Bunk
  2005-05-13 19:09 ` Andres Salomon
@ 2005-05-14  7:17 ` Julian Anastasov
  2005-05-15 13:29   ` [2.6 patch] remove net/ipv4/ipvs/ip_vs_proto_icmp.c? Adrian Bunk
  1 sibling, 1 reply; 6+ messages in thread
From: Julian Anastasov @ 2005-05-14  7:17 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Wensong Zhang, netdev, linux-kernel


	Hello,

On Fri, 13 May 2005, Adrian Bunk wrote:

> Will it be made working in the forseeable future or is it a candidate
> for removal?

	IMO, it can be removed as it was never finished. We can always
add it later.

Regards

--
Julian Anastasov <ja@ssi.bg>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of net/ipv4/ipvs/ip_vs_proto_icmp.c?
  2005-05-13 19:09 ` Andres Salomon
@ 2005-05-15  8:27   ` Adrian Bunk
  0 siblings, 0 replies; 6+ messages in thread
From: Adrian Bunk @ 2005-05-15  8:27 UTC (permalink / raw)
  To: Andres Salomon; +Cc: linux-kernel, netdev

On Fri, May 13, 2005 at 03:09:01PM -0400, Andres Salomon wrote:
> On Fri, 13 May 2005 06:16:22 +0200, Adrian Bunk wrote:
> 
> > Hi,
> > 
> > can anyone explain the status of?
> > 
> > This file is always included in the kernel if CONFIG_IP_VS=y, but it's 
> > completely unused.
> > 
> > Will it be made working in the forseeable future or is it a candidate 
> > for removal?
> > 
> > TIA
> > Adrian
> 
> The people/places to ask would probably be:
> 
> IPVS
> P:      Wensong Zhang
> M:      wensong@linux-vs.org
> P:      Julian Anastasov
> M:      ja@ssi.bg
> S:      Maintained
>...

And these are exactly the people in the To-header of the email asking 
this question.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [2.6 patch] remove net/ipv4/ipvs/ip_vs_proto_icmp.c?
  2005-05-14  7:17 ` Julian Anastasov
@ 2005-05-15 13:29   ` Adrian Bunk
  2005-06-02 20:02     ` David S. Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2005-05-15 13:29 UTC (permalink / raw)
  To: Julian Anastasov; +Cc: Wensong Zhang, netdev, linux-kernel

On Sat, May 14, 2005 at 10:17:53AM +0300, Julian Anastasov wrote:
> 
> 	Hello,
> 
> On Fri, 13 May 2005, Adrian Bunk wrote:
> 
> > Will it be made working in the forseeable future or is it a candidate
> > for removal?
> 
> 	IMO, it can be removed as it was never finished. We can always
> add it later.

Thanks for the confirmation.

A patch to remove it is below.

> Regards
> Julian Anastasov <ja@ssi.bg>

cu
Adrian


<--  snip  -->


ip_vs_proto_icmp.c was never finished.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 net/ipv4/ipvs/Makefile           |    2 
 net/ipv4/ipvs/ip_vs_proto.c      |    3 
 net/ipv4/ipvs/ip_vs_proto_icmp.c |  182 -------------------------------
 3 files changed, 1 insertion(+), 186 deletions(-)

--- linux-2.6.12-rc4-mm1-full/net/ipv4/ipvs/Makefile.old	2005-05-15 13:14:02.000000000 +0200
+++ linux-2.6.12-rc4-mm1-full/net/ipv4/ipvs/Makefile	2005-05-15 13:14:17.000000000 +0200
@@ -11,7 +11,7 @@
 
 ip_vs-objs :=	ip_vs_conn.o ip_vs_core.o ip_vs_ctl.o ip_vs_sched.o	   \
 		ip_vs_xmit.o ip_vs_app.o ip_vs_sync.o	   		   \
-		ip_vs_est.o ip_vs_proto.o ip_vs_proto_icmp.o		   \
+		ip_vs_est.o ip_vs_proto.o 				   \
 		$(ip_vs_proto-objs-y)
 
 
--- linux-2.6.12-rc4-mm1-full/net/ipv4/ipvs/ip_vs_proto.c.old	2005-05-15 13:18:55.000000000 +0200
+++ linux-2.6.12-rc4-mm1-full/net/ipv4/ipvs/ip_vs_proto.c	2005-05-15 13:15:03.000000000 +0200
@@ -216,9 +216,6 @@
 #ifdef CONFIG_IP_VS_PROTO_UDP
 	REGISTER_PROTOCOL(&ip_vs_protocol_udp);
 #endif
-#ifdef CONFIG_IP_VS_PROTO_ICMP
-	REGISTER_PROTOCOL(&ip_vs_protocol_icmp);
-#endif
 #ifdef CONFIG_IP_VS_PROTO_AH
 	REGISTER_PROTOCOL(&ip_vs_protocol_ah);
 #endif
--- linux-2.6.12-rc4-mm1-full/net/ipv4/ipvs/ip_vs_proto_icmp.c	2005-03-02 08:37:31.000000000 +0100
+++ /dev/null	2005-04-28 03:52:17.000000000 +0200
@@ -1,182 +0,0 @@
-/*
- * ip_vs_proto_icmp.c:	ICMP load balancing support for IP Virtual Server
- *
- * Authors:	Julian Anastasov <ja@ssi.bg>, March 2002
- *
- *		This program is free software; you can redistribute it and/or
- *		modify it under the terms of the GNU General Public License
- *		version 2 as published by the Free Software Foundation;
- *
- */
-
-#include <linux/module.h>
-#include <linux/kernel.h>
-#include <linux/icmp.h>
-#include <linux/netfilter.h>
-#include <linux/netfilter_ipv4.h>
-
-#include <net/ip_vs.h>
-
-
-static int icmp_timeouts[1] =		{ 1*60*HZ };
-
-static char * icmp_state_name_table[1] = { "ICMP" };
-
-static struct ip_vs_conn *
-icmp_conn_in_get(const struct sk_buff *skb,
-		 struct ip_vs_protocol *pp,
-		 const struct iphdr *iph,
-		 unsigned int proto_off,
-		 int inverse)
-{
-#if 0
-	struct ip_vs_conn *cp;
-
-	if (likely(!inverse)) {
-		cp = ip_vs_conn_in_get(iph->protocol,
-			iph->saddr, 0,
-			iph->daddr, 0);
-	} else {
-		cp = ip_vs_conn_in_get(iph->protocol,
-			iph->daddr, 0,
-			iph->saddr, 0);
-	}
-
-	return cp;
-
-#else
-	return NULL;
-#endif
-}
-
-static struct ip_vs_conn *
-icmp_conn_out_get(const struct sk_buff *skb,
-		  struct ip_vs_protocol *pp,
-		  const struct iphdr *iph,
-		  unsigned int proto_off,
-		  int inverse)
-{
-#if 0
-	struct ip_vs_conn *cp;
-
-	if (likely(!inverse)) {
-		cp = ip_vs_conn_out_get(iph->protocol,
-			iph->saddr, 0,
-			iph->daddr, 0);
-	} else {
-		cp = ip_vs_conn_out_get(IPPROTO_UDP,
-			iph->daddr, 0,
-			iph->saddr, 0);
-	}
-
-	return cp;
-#else
-	return NULL;
-#endif
-}
-
-static int
-icmp_conn_schedule(struct sk_buff *skb, struct ip_vs_protocol *pp,
-		   int *verdict, struct ip_vs_conn **cpp)
-{
-	*verdict = NF_ACCEPT;
-	return 0;
-}
-
-static int
-icmp_csum_check(struct sk_buff *skb, struct ip_vs_protocol *pp)
-{
-	if (!(skb->nh.iph->frag_off & __constant_htons(IP_OFFSET))) {
-		if (skb->ip_summed != CHECKSUM_UNNECESSARY) {
-			if (ip_vs_checksum_complete(skb, skb->nh.iph->ihl * 4)) {
-				IP_VS_DBG_RL_PKT(0, pp, skb, 0, "Failed checksum for");
-				return 0;
-			}
-		}
-	}
-	return 1;
-}
-
-static void
-icmp_debug_packet(struct ip_vs_protocol *pp,
-		  const struct sk_buff *skb,
-		  int offset,
-		  const char *msg)
-{
-	char buf[256];
-	struct iphdr _iph, *ih;
-
-	ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph);
-	if (ih == NULL)
-		sprintf(buf, "%s TRUNCATED", pp->name);
-	else if (ih->frag_off & __constant_htons(IP_OFFSET))
-		sprintf(buf, "%s %u.%u.%u.%u->%u.%u.%u.%u frag",
-			pp->name, NIPQUAD(ih->saddr),
-			NIPQUAD(ih->daddr));
-	else {
-		struct icmphdr _icmph, *ic;
-
-		ic = skb_header_pointer(skb, offset + ih->ihl*4,
-					sizeof(_icmph), &_icmph);
-		if (ic == NULL)
-			sprintf(buf, "%s TRUNCATED to %u bytes\n",
-				pp->name, skb->len - offset);
-		else
-			sprintf(buf, "%s %u.%u.%u.%u->%u.%u.%u.%u T:%d C:%d",
-				pp->name, NIPQUAD(ih->saddr),
-				NIPQUAD(ih->daddr),
-				ic->type, ic->code);
-	}
-	printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf);
-}
-
-static int
-icmp_state_transition(struct ip_vs_conn *cp, int direction,
-		      const struct sk_buff *skb,
-		      struct ip_vs_protocol *pp)
-{
-	cp->timeout = pp->timeout_table[IP_VS_ICMP_S_NORMAL];
-	return 1;
-}
-
-static int
-icmp_set_state_timeout(struct ip_vs_protocol *pp, char *sname, int to)
-{
-	int num;
-	char **names;
-
-	num = IP_VS_ICMP_S_LAST;
-	names = icmp_state_name_table;
-	return ip_vs_set_state_timeout(pp->timeout_table, num, names, sname, to);
-}
-
-
-static void icmp_init(struct ip_vs_protocol *pp)
-{
-	pp->timeout_table = icmp_timeouts;
-}
-
-static void icmp_exit(struct ip_vs_protocol *pp)
-{
-}
-
-struct ip_vs_protocol ip_vs_protocol_icmp = {
-	.name =			"ICMP",
-	.protocol =		IPPROTO_ICMP,
-	.dont_defrag =		0,
-	.init =			icmp_init,
-	.exit =			icmp_exit,
-	.conn_schedule =	icmp_conn_schedule,
-	.conn_in_get =		icmp_conn_in_get,
-	.conn_out_get =		icmp_conn_out_get,
-	.snat_handler =		NULL,
-	.dnat_handler =		NULL,
-	.csum_check =		icmp_csum_check,
-	.state_transition =	icmp_state_transition,
-	.register_app =		NULL,
-	.unregister_app =	NULL,
-	.app_conn_bind =	NULL,
-	.debug_packet =		icmp_debug_packet,
-	.timeout_change =	NULL,
-	.set_state_timeout =	icmp_set_state_timeout,
-};


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [2.6 patch] remove net/ipv4/ipvs/ip_vs_proto_icmp.c?
  2005-05-15 13:29   ` [2.6 patch] remove net/ipv4/ipvs/ip_vs_proto_icmp.c? Adrian Bunk
@ 2005-06-02 20:02     ` David S. Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David S. Miller @ 2005-06-02 20:02 UTC (permalink / raw)
  To: bunk; +Cc: ja, wensong, netdev, linux-kernel

From: Adrian Bunk <bunk@stusta.de>
Date: Sun, 15 May 2005 15:29:06 +0200

> ip_vs_proto_icmp.c was never finished.
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Applied, thanks Adrian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-02 20:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13  4:16 Status of net/ipv4/ipvs/ip_vs_proto_icmp.c? Adrian Bunk
2005-05-13 19:09 ` Andres Salomon
2005-05-15  8:27   ` Adrian Bunk
2005-05-14  7:17 ` Julian Anastasov
2005-05-15 13:29   ` [2.6 patch] remove net/ipv4/ipvs/ip_vs_proto_icmp.c? Adrian Bunk
2005-06-02 20:02     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).