diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ieee80211.h | 2 | ||||
-rw-r--r-- | include/net/tcp.h | 2 | ||||
-rw-r--r-- | include/net/x25.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h index e6af381e206d..e02d85f56e60 100644 --- a/include/net/ieee80211.h +++ b/include/net/ieee80211.h | |||
@@ -218,7 +218,7 @@ struct ieee80211_snap_hdr { | |||
218 | #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) | 218 | #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) |
219 | 219 | ||
220 | #define WLAN_GET_SEQ_FRAG(seq) ((seq) & IEEE80211_SCTL_FRAG) | 220 | #define WLAN_GET_SEQ_FRAG(seq) ((seq) & IEEE80211_SCTL_FRAG) |
221 | #define WLAN_GET_SEQ_SEQ(seq) ((seq) & IEEE80211_SCTL_SEQ) | 221 | #define WLAN_GET_SEQ_SEQ(seq) (((seq) & IEEE80211_SCTL_SEQ) >> 4) |
222 | 222 | ||
223 | /* Authentication algorithms */ | 223 | /* Authentication algorithms */ |
224 | #define WLAN_AUTH_OPEN 0 | 224 | #define WLAN_AUTH_OPEN 0 |
diff --git a/include/net/tcp.h b/include/net/tcp.h index b7d8317f22ac..cd8fa0c858ae 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -242,7 +242,7 @@ extern int tcp_memory_pressure; | |||
242 | 242 | ||
243 | static inline int before(__u32 seq1, __u32 seq2) | 243 | static inline int before(__u32 seq1, __u32 seq2) |
244 | { | 244 | { |
245 | return (__s32)(seq2-seq1) > 0; | 245 | return (__s32)(seq1-seq2) < 0; |
246 | } | 246 | } |
247 | #define after(seq2, seq1) before(seq1, seq2) | 247 | #define after(seq2, seq1) before(seq1, seq2) |
248 | 248 | ||
diff --git a/include/net/x25.h b/include/net/x25.h index 0ad90ebcf86e..e47fe440d9d7 100644 --- a/include/net/x25.h +++ b/include/net/x25.h | |||
@@ -259,6 +259,7 @@ extern int x25_decode(struct sock *, struct sk_buff *, int *, int *, int *, int | |||
259 | extern void x25_disconnect(struct sock *, int, unsigned char, unsigned char); | 259 | extern void x25_disconnect(struct sock *, int, unsigned char, unsigned char); |
260 | 260 | ||
261 | /* x25_timer.c */ | 261 | /* x25_timer.c */ |
262 | extern void x25_init_timers(struct sock *sk); | ||
262 | extern void x25_start_heartbeat(struct sock *); | 263 | extern void x25_start_heartbeat(struct sock *); |
263 | extern void x25_start_t2timer(struct sock *); | 264 | extern void x25_start_t2timer(struct sock *); |
264 | extern void x25_start_t21timer(struct sock *); | 265 | extern void x25_start_t21timer(struct sock *); |