projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f948db
)
netfilter: xtables: reduce holes in struct xt_target
author
Jan Engelhardt
<jengelh@medozas.de>
Thu, 18 Mar 2010 13:02:10 +0000
(14:02 +0100)
committer
Jan Engelhardt
<jengelh@medozas.de>
Thu, 18 Mar 2010 13:20:07 +0000
(14:20 +0100)
This will save one full padding chunk (8 bytes on x86_64) per target.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
include/linux/netfilter/x_tables.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/netfilter/x_tables.h
b/include/linux/netfilter/x_tables.h
index cf91473624e1a594f199ca394cf496c9ae1958ef..f8f555153373551b240908cdf614918975c1cec0 100644
(file)
--- a/
include/linux/netfilter/x_tables.h
+++ b/
include/linux/netfilter/x_tables.h
@@
-331,6
+331,7
@@
struct xt_target {
struct list_head list;
const char name[XT_FUNCTION_MAXNAMELEN-1];
+ u_int8_t revision;
/* Returns verdict. Argument order changed since 2.6.9, as this
must now handle non-linear skbs, using skb_copy_bits and
@@
-363,7
+364,6
@@
struct xt_target {
unsigned short proto;
unsigned short family;
- u_int8_t revision;
};
/* Furniture shopping... */