aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-03-12 13:04:19 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2014-03-13 09:13:19 -0400
commitb80edf0b52e1023d849e5eca8539570304fb4390 (patch)
tree20081b7f7b074a598753a2b5002b1976789db006
parent14e1a977767e95ca48504975efff2bdf1b198ca0 (diff)
netfilter: Convert uses of __constant_<foo> to <foo>
The use of __constant_<foo> has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--net/netfilter/ipset/pfxlen.c4
-rw-r--r--net/netfilter/xt_AUDIT.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/netfilter/ipset/pfxlen.c b/net/netfilter/ipset/pfxlen.c
index 4f29fa97044b..04d15fdc99ee 100644
--- a/net/netfilter/ipset/pfxlen.c
+++ b/net/netfilter/ipset/pfxlen.c
@@ -7,8 +7,8 @@
7 7
8#define E(a, b, c, d) \ 8#define E(a, b, c, d) \
9 {.ip6 = { \ 9 {.ip6 = { \
10 __constant_htonl(a), __constant_htonl(b), \ 10 htonl(a), htonl(b), \
11 __constant_htonl(c), __constant_htonl(d), \ 11 htonl(c), htonl(d), \
12 } } 12 } }
13 13
14/* 14/*
diff --git a/net/netfilter/xt_AUDIT.c b/net/netfilter/xt_AUDIT.c
index 3228d7f24eb4..4973cbddc446 100644
--- a/net/netfilter/xt_AUDIT.c
+++ b/net/netfilter/xt_AUDIT.c
@@ -146,11 +146,11 @@ audit_tg(struct sk_buff *skb, const struct xt_action_param *par)
146 146
147 if (par->family == NFPROTO_BRIDGE) { 147 if (par->family == NFPROTO_BRIDGE) {
148 switch (eth_hdr(skb)->h_proto) { 148 switch (eth_hdr(skb)->h_proto) {
149 case __constant_htons(ETH_P_IP): 149 case htons(ETH_P_IP):
150 audit_ip4(ab, skb); 150 audit_ip4(ab, skb);
151 break; 151 break;
152 152
153 case __constant_htons(ETH_P_IPV6): 153 case htons(ETH_P_IPV6):
154 audit_ip6(ab, skb); 154 audit_ip6(ab, skb);
155 break; 155 break;
156 } 156 }