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>
This commit is contained in:
parent
14e1a97776
commit
b80edf0b52
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
#define E(a, b, c, d) \
|
#define E(a, b, c, d) \
|
||||||
{.ip6 = { \
|
{.ip6 = { \
|
||||||
__constant_htonl(a), __constant_htonl(b), \
|
htonl(a), htonl(b), \
|
||||||
__constant_htonl(c), __constant_htonl(d), \
|
htonl(c), htonl(d), \
|
||||||
} }
|
} }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -146,11 +146,11 @@ audit_tg(struct sk_buff *skb, const struct xt_action_param *par)
|
||||||
|
|
||||||
if (par->family == NFPROTO_BRIDGE) {
|
if (par->family == NFPROTO_BRIDGE) {
|
||||||
switch (eth_hdr(skb)->h_proto) {
|
switch (eth_hdr(skb)->h_proto) {
|
||||||
case __constant_htons(ETH_P_IP):
|
case htons(ETH_P_IP):
|
||||||
audit_ip4(ab, skb);
|
audit_ip4(ab, skb);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case __constant_htons(ETH_P_IPV6):
|
case htons(ETH_P_IPV6):
|
||||||
audit_ip6(ab, skb);
|
audit_ip6(ab, skb);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue