* ipvs locahost client patch for 2.6?
@ 2006-08-10 16:18 Ryan Nowakowski
2006-09-20 14:57 ` Horms
0 siblings, 1 reply; 2+ messages in thread
From: Ryan Nowakowski @ 2006-08-10 16:18 UTC (permalink / raw)
To: netdev
I found this patch for 2.4 that allows the host running ipvs to act
as it's own client via loopback connection. Does anyone have a similar
patch for 2.6?
--- ip_vs_core.c.orig 2003-11-28 19:26:21.000000000 +0100
+++ ip_vs_core.c.list 2004-07-02 11:13:51.000000000 +0200
@@ -1036,7 +1036,7 @@
* Big tappo: only PACKET_HOST (nor loopback neither mcasts)
* ... don't know why 1st test DOES NOT include 2nd (?)
*/
- if (skb->pkt_type != PACKET_HOST || skb->dev == &loopback_dev) {
+ if (skb->pkt_type != PACKET_HOST) { /* || skb->dev == &loopback_dev) { */
IP_VS_DBG(12, "packet type=%d proto=%d daddr=%d.%d.%d.%d ignored\n",
skb->pkt_type,
iph->protocol,
@@ -1059,6 +1059,13 @@
iph = skb->nh.iph;
h.raw = (char*) iph + ihl;
+ cp = ip_vs_conn_out_get(iph->protocol, iph->saddr, h.portp[0],
+ iph->daddr, h.portp[1]);
+ if (cp) {
+ __ip_vs_conn_put(cp);
+ return (ip_vs_out(hooknum,skb_p,in,out,okfn));
+ }
+
/*
* Check if the packet belongs to an existing connection entry
*/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ipvs locahost client patch for 2.6?
2006-08-10 16:18 ipvs locahost client patch for 2.6? Ryan Nowakowski
@ 2006-09-20 14:57 ` Horms
0 siblings, 0 replies; 2+ messages in thread
From: Horms @ 2006-09-20 14:57 UTC (permalink / raw)
To: Ryan Nowakowski; +Cc: netdev, horms
On Fri, 11 Aug 2006 01:18:38, Ryan Nowakowski wrote:
> I found this patch for 2.4 that allows the host running ipvs to act
> as it's own client via loopback connection. Does anyone have a similar
> patch for 2.6?
Not that I am aware of, though that kind of approach may well work for
2.6 with little effort.
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-20 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 16:18 ipvs locahost client patch for 2.6? Ryan Nowakowski
2006-09-20 14:57 ` Horms
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).