Skip to contentSkip to conversation

fix return type of skb_checksum_complete()

PATCH In review Al Viro 2 participants 2 messages Jul 15, 2007 – Jul 16, 2007 Networking

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 fix return type of skb_checksum_complete()

It returns __sum16, not unsigned int

---
 include/linux/skbuff.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/skbuff.h +1 -1
index 9391e4a..ce25643 100644
@@ -1639,7 +1639,7 @@ static inline int skb_csum_unnecessary(const struct sk_buff *skb)
  *	if skb->ip_summed is CHECKSUM_UNNECESSARY which indicates that the
  *	hardware has already verified the correctness of the checksum.
  */
-static inline unsigned int skb_checksum_complete(struct sk_buff *skb)
+static inline __sum16 skb_checksum_complete(struct sk_buff *skb)
 {
 	return skb_csum_unnecessary(skb) ?
 	       0 : __skb_checksum_complete(skb);
Signature · 1 line
1.5.3.GIT