Skip to content

Commit

Permalink
[NETFILTER] NAT sequence adjustment: Save eight bytes per conntrack
Browse files Browse the repository at this point in the history
This patch reduces the size of 'struct ip_conntrack' on systems with NAT
by eight bytes.  The sequence number delta values can be int16_t, since
we only support one sequence number modification per window anyway, and
one such modification is not going to exceed 32kB ;)

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Harald Welte authored and David S. Miller committed Mar 21, 2006
1 parent 39d8c1b commit 5ee9561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netfilter_ipv4/ip_nat.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct ip_nat_seq {
* modification (if any) */
u_int32_t correction_pos;
/* sequence number offset before and after last modification */
int32_t offset_before, offset_after;
int16_t offset_before, offset_after;
};

/* Single range specification. */
Expand Down

0 comments on commit 5ee9561

Please sign in to comment.