summaryrefslogtreecommitdiffstats
path: root/net/ipv6/netfilter/ip6t_eui64.c
diff options
context:
space:
mode:
authorJan Engelhardt2009-07-07 20:54:30 +0200
committerJan Engelhardt2010-05-11 18:35:27 +0200
commitb4ba26119b06052888696491f614201817491a0d (patch)
treed6dc2a4e0f78641b5b64a1728322c81cbad09974 /net/ipv6/netfilter/ip6t_eui64.c
parentnetfilter: xtables: deconstify struct xt_action_param for matches (diff)
downloadkernel-qcow2-linux-b4ba26119b06052888696491f614201817491a0d.tar.gz
kernel-qcow2-linux-b4ba26119b06052888696491f614201817491a0d.tar.xz
kernel-qcow2-linux-b4ba26119b06052888696491f614201817491a0d.zip
netfilter: xtables: change hotdrop pointer to direct modification
Since xt_action_param is writable, let's use it. The pointer to 'bool hotdrop' always worried (8 bytes (64-bit) to write 1 byte!). Surprisingly results in a reduction in size: text data bss filename 5457066 692730 357892 vmlinux.o-prev 5456554 692730 357892 vmlinux.o Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/ipv6/netfilter/ip6t_eui64.c')
-rw-r--r--net/ipv6/netfilter/ip6t_eui64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_eui64.c b/net/ipv6/netfilter/ip6t_eui64.c
index f32fce34145a..aab0706908c5 100644
--- a/net/ipv6/netfilter/ip6t_eui64.c
+++ b/net/ipv6/netfilter/ip6t_eui64.c
@@ -27,7 +27,7 @@ eui64_mt6(const struct sk_buff *skb, struct xt_action_param *par)
if (!(skb_mac_header(skb) >= skb->head &&
skb_mac_header(skb) + ETH_HLEN <= skb->data) &&
par->fragoff != 0) {
- *par->hotdrop = true;
+ par->hotdrop = true;
return false;
}