ipvs locahost client patch for 2.6?
Subsystems (2)
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.list renamed from ip_vs_core.c.orig +8 -1
@@ -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 */
Quoted 3 lines · Ryan Nowakowski
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.
Signature · 3 lines
Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/