From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 10/26] IPVS: Add IPv6 handler functions to UDP protocol handler. Date: Wed, 11 Jun 2008 19:18:58 +0200 Message-ID: <48500902.9080006@trash.net> References: <1213204329-10973-1-git-send-email-juliusv@google.com> <1213204329-10973-11-git-send-email-juliusv@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org, horms@verge.net.au, davem@davemloft.net, vbusam@google.com To: "Julius R. Volz" Return-path: In-Reply-To: <1213204329-10973-11-git-send-email-juliusv@google.com> Sender: lvs-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Julius R. Volz wrote: > Define new IPv6-specific handler functions in UDP protocol handler. Set new > function pointers in ip_vs_protocol struct to point to these functions. The last four or five patches could save a lot of duplication by taking advantage of the fact that only address length and protocol offset differ. Why don't you move the af-specific logic to the layer above these handlers and pass the offset to them?