lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 4 May 2007 00:04:00 +0400
From:	Alexey Dobriyan <adobriyan@...il.com>
To:	jeff@...zik.org
Cc:	acme@...stprotocols.net, tklein@...ibm.com, netdev@...r.kernel.org
Subject: [PATCH] ehea: fix compilation

Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---

 Compile-tested only.

 drivers/net/ehea/ehea_main.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -1799,14 +1799,15 @@ static void ehea_xmit3(struct sk_buff *skb, struct net_device *dev,
 
 static inline int ehea_hash_skb(struct sk_buff *skb, int num_qps)
 {
+	struct iphdr *iph = ip_hdr(skb);
 	struct tcphdr *tcp;
 	u32 tmp;
 
 	if ((skb->protocol == htons(ETH_P_IP)) &&
-	    (skb->nh.iph->protocol == IPPROTO_TCP)) {
-		tcp = (struct tcphdr*)(skb->nh.raw + (skb->nh.iph->ihl * 4));
+	    (iph->protocol == IPPROTO_TCP)) {
+		tcp = (struct tcphdr*)(skb_network_header(skb) + iph->ihl * 4);
 		tmp = (tcp->source + (tcp->dest << 16)) % 31;
-		tmp += skb->nh.iph->daddr % 31;
+		tmp += iph->daddr % 31;
 		return tmp % num_qps;
 	}
 	else

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ