Subject: Re: [PATCH 12/26] IPVS: Extend proto handler debug functions to handle IPv6.

From: Patrick McHardy <[email-masked]>
Date: Wed, 11 Jun 2008 19:17:14 +0200

Julius R. Volz wrote:
> Extend protocol handler packet debug functions for TCP, UDP, AH and ESP to
> handle IPv6. Make the main debug function call either a v4 or v6 version,
> depending on the packet protocol version.
>   

The only difference appears to be the address format and header
offset. You could save some duplication by using an af-independant
address debugging function and add a helper to get the proto offset.
Similar to how x_tables and nf_conntrack do it.