diff options
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 39e825a6909a..c5ccd9a3387b 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -69,15 +69,15 @@ struct sk_buff; | |||
69 | /* | 69 | /* |
70 | * Generic checksumming routines for UDP(-Lite) v4 and v6 | 70 | * Generic checksumming routines for UDP(-Lite) v4 and v6 |
71 | */ | 71 | */ |
72 | static inline u16 __udp_lib_checksum_complete(struct sk_buff *skb) | 72 | static inline __sum16 __udp_lib_checksum_complete(struct sk_buff *skb) |
73 | { | 73 | { |
74 | if (! UDP_SKB_CB(skb)->partial_cov) | 74 | if (! UDP_SKB_CB(skb)->partial_cov) |
75 | return __skb_checksum_complete(skb); | 75 | return __skb_checksum_complete(skb); |
76 | return csum_fold(skb_checksum(skb, 0, UDP_SKB_CB(skb)->cscov, | 76 | return csum_fold(skb_checksum(skb, 0, UDP_SKB_CB(skb)->cscov, |
77 | skb->csum)); | 77 | skb->csum)); |
78 | } | 78 | } |
79 | 79 | ||
80 | static __inline__ int udp_lib_checksum_complete(struct sk_buff *skb) | 80 | static inline __sum16 udp_lib_checksum_complete(struct sk_buff *skb) |
81 | { | 81 | { |
82 | return skb->ip_summed != CHECKSUM_UNNECESSARY && | 82 | return skb->ip_summed != CHECKSUM_UNNECESSARY && |
83 | __udp_lib_checksum_complete(skb); | 83 | __udp_lib_checksum_complete(skb); |