← Back to team overview

hipl-core team mailing list archive

Re: [Branch ~christof-mroz/hipl/hipfw-performance] Rev 4942: Update src_ip and dst_ip more often in tuples, in order to support opp-mode.

 

On Wed, Sep 15, 2010 at 02:09:30PM +0000, noreply@xxxxxxxxxxxxx wrote:
> 
> --- firewall/conntrack.c	2010-09-15 13:59:27 +0000
> +++ firewall/conntrack.c	2010-09-15 14:02:30 +0000
> @@ -1738,6 +1731,11 @@
>  
>          tuple->hook = ctx->ipq_packet->hook;
> +
> +        #ifdef CONFIG_HIP_DEBUG
> +        memcpy(&tuple->src_ip, &ctx->src, sizeof(struct in6_addr));
> +        memcpy(&tuple->dst_ip, &ctx->dst, sizeof(struct in6_addr));
> +        #endif

Note: While modern compilers support indented preprocessor directives,
I think (but I may quite possibly be wrong) that most of HIPL places
them on the first column.

Diego



Follow ups

References