aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipvs
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-09-21 01:20:49 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-21 01:20:49 -0400
commit6067804047b64dde89f4f133fc7eba48ee44107d (patch)
treeabe87787c3ad2aee82e576c7d4128e29bb296ac0 /net/ipv4/ipvs
parenta574420ff46cff0245e6b0fce2e961aa2717743d (diff)
net: Use hton[sl]() instead of __constant_hton[sl]() where applicable
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipvs')
-rw-r--r--net/ipv4/ipvs/ip_vs_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ipvs/ip_vs_core.c b/net/ipv4/ipvs/ip_vs_core.c
index ece748dbd0cd..958abf3e5f8c 100644
--- a/net/ipv4/ipvs/ip_vs_core.c
+++ b/net/ipv4/ipvs/ip_vs_core.c
@@ -938,7 +938,7 @@ ip_vs_out(unsigned int hooknum, struct sk_buff *skb,
938 938
939 EnterFunction(11); 939 EnterFunction(11);
940 940
941 af = (skb->protocol == __constant_htons(ETH_P_IP)) ? AF_INET : AF_INET6; 941 af = (skb->protocol == htons(ETH_P_IP)) ? AF_INET : AF_INET6;
942 942
943 if (skb->ipvs_property) 943 if (skb->ipvs_property)
944 return NF_ACCEPT; 944 return NF_ACCEPT;
@@ -1258,7 +1258,7 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb,
1258 struct ip_vs_conn *cp; 1258 struct ip_vs_conn *cp;
1259 int ret, restart, af; 1259 int ret, restart, af;
1260 1260
1261 af = (skb->protocol == __constant_htons(ETH_P_IP)) ? AF_INET : AF_INET6; 1261 af = (skb->protocol == htons(ETH_P_IP)) ? AF_INET : AF_INET6;
1262 1262
1263 ip_vs_fill_iphdr(af, skb_network_header(skb), &iph); 1263 ip_vs_fill_iphdr(af, skb_network_header(skb), &iph);
1264 1264