aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipvs
diff options
context:
space:
mode:
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