net: Use hton[sl]() instead of __constant_hton[sl]() where applicable
[deliverable/linux.git] / net / ipv4 / ipvs / ip_vs_core.c
index ece748dbd0cdc8902c40a56ac26b2373c0c444ce..958abf3e5f8cd3baceb46fedb6ec4b2f0cd4a15e 100644 (file)
@@ -938,7 +938,7 @@ ip_vs_out(unsigned int hooknum, struct sk_buff *skb,
 
        EnterFunction(11);
 
-       af = (skb->protocol == __constant_htons(ETH_P_IP)) ? AF_INET : AF_INET6;
+       af = (skb->protocol == htons(ETH_P_IP)) ? AF_INET : AF_INET6;
 
        if (skb->ipvs_property)
                return NF_ACCEPT;
@@ -1258,7 +1258,7 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb,
        struct ip_vs_conn *cp;
        int ret, restart, af;
 
-       af = (skb->protocol == __constant_htons(ETH_P_IP)) ? AF_INET : AF_INET6;
+       af = (skb->protocol == htons(ETH_P_IP)) ? AF_INET : AF_INET6;
 
        ip_vs_fill_iphdr(af, skb_network_header(skb), &iph);
 
This page took 0.026941 seconds and 5 git commands to generate.