From: Florian Westphal <fwestphal@xxxxxxxxxx> htons(CONSTANT) is computed at compile time. reduces .text by 4 bytes on x86. Signed-off-by: Florian Westphal <fwestphal@xxxxxxxxxx> --- extensions/xt_psd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/extensions/xt_psd.c b/extensions/xt_psd.c index b3de7e2..03e81e2 100644 --- a/extensions/xt_psd.c +++ b/extensions/xt_psd.c @@ -118,7 +118,7 @@ xt_psd_match(const struct sk_buff *pskb, const struct xt_match_param *match) iph = ip_hdr(pskb); /* Sanity check */ - if (ntohs(iph->frag_off) & IP_OFFSET) { + if (iph->frag_off & htons(IP_OFFSET)) { pr_debug("sanity check failed\n"); return false; } -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html