@@ -185,28 +185,28 @@ struct tcp_sack_block_wire {
185185};
186186
187187struct tcp_sack_block {
188- __u32 start_seq ;
189- __u32 end_seq ;
188+ u32 start_seq ;
189+ u32 end_seq ;
190190};
191191
192192struct tcp_options_received {
193193/* PAWS/RTTM data */
194194 long ts_recent_stamp ;/* Time we stored ts_recent (for aging) */
195- __u32 ts_recent ; /* Time stamp to echo next */
196- __u32 rcv_tsval ; /* Time stamp value */
197- __u32 rcv_tsecr ; /* Time stamp echo reply */
198- __u16 saw_tstamp : 1 , /* Saw TIMESTAMP on last packet */
195+ u32 ts_recent ; /* Time stamp to echo next */
196+ u32 rcv_tsval ; /* Time stamp value */
197+ u32 rcv_tsecr ; /* Time stamp echo reply */
198+ u16 saw_tstamp : 1 , /* Saw TIMESTAMP on last packet */
199199 tstamp_ok : 1 , /* TIMESTAMP seen on SYN packet */
200200 dsack : 1 , /* D-SACK is scheduled */
201201 wscale_ok : 1 , /* Wscale seen on SYN packet */
202202 sack_ok : 4 , /* SACK seen on SYN packet */
203203 snd_wscale : 4 , /* Window scaling received from sender */
204204 rcv_wscale : 4 ; /* Window scaling to send to receiver */
205205/* SACKs data */
206- __u8 eff_sacks ; /* Size of SACK array to send with next packet */
207- __u8 num_sacks ; /* Number of SACK blocks */
208- __u16 user_mss ; /* mss requested by user in ioctl */
209- __u16 mss_clamp ; /* Maximal mss, negotiated at connection setup */
206+ u8 eff_sacks ; /* Size of SACK array to send with next packet */
207+ u8 num_sacks ; /* Number of SACK blocks */
208+ u16 user_mss ; /* mss requested by user in ioctl */
209+ u16 mss_clamp ; /* Maximal mss, negotiated at connection setup */
210210};
211211
212212struct tcp_request_sock {
@@ -215,8 +215,8 @@ struct tcp_request_sock {
215215 /* Only used by TCP MD5 Signature so far. */
216216 struct tcp_request_sock_ops * af_specific ;
217217#endif
218- __u32 rcv_isn ;
219- __u32 snt_isn ;
218+ u32 rcv_isn ;
219+ u32 snt_isn ;
220220};
221221
222222static inline struct tcp_request_sock * tcp_rsk (const struct request_sock * req )
@@ -241,13 +241,13 @@ struct tcp_sock {
241241 * read the code and the spec side by side (and laugh ...)
242242 * See RFC793 and RFC1122. The RFC writes these in capitals.
243243 */
244- __u32 rcv_nxt ; /* What we want to receive next */
245- __u32 snd_nxt ; /* Next sequence we send */
244+ u32 rcv_nxt ; /* What we want to receive next */
245+ u32 snd_nxt ; /* Next sequence we send */
246246
247- __u32 snd_una ; /* First byte we want an ack for */
248- __u32 snd_sml ; /* Last byte of the most recently transmitted small packet */
249- __u32 rcv_tstamp ; /* timestamp of last received ACK (for keepalives) */
250- __u32 lsndtime ; /* timestamp of last sent data packet (for restart window) */
247+ u32 snd_una ; /* First byte we want an ack for */
248+ u32 snd_sml ; /* Last byte of the most recently transmitted small packet */
249+ u32 rcv_tstamp ; /* timestamp of last received ACK (for keepalives) */
250+ u32 lsndtime ; /* timestamp of last sent data packet (for restart window) */
251251
252252 /* Data for direct copy to user */
253253 struct {
@@ -265,30 +265,30 @@ struct tcp_sock {
265265#endif
266266 } ucopy ;
267267
268- __u32 snd_wl1 ; /* Sequence for window update */
269- __u32 snd_wnd ; /* The window we expect to receive */
270- __u32 max_window ; /* Maximal window ever seen from peer */
271- __u32 mss_cache ; /* Cached effective mss, not including SACKS */
268+ u32 snd_wl1 ; /* Sequence for window update */
269+ u32 snd_wnd ; /* The window we expect to receive */
270+ u32 max_window ; /* Maximal window ever seen from peer */
271+ u32 mss_cache ; /* Cached effective mss, not including SACKS */
272272
273- __u32 window_clamp ; /* Maximal window to advertise */
274- __u32 rcv_ssthresh ; /* Current window clamp */
273+ u32 window_clamp ; /* Maximal window to advertise */
274+ u32 rcv_ssthresh ; /* Current window clamp */
275275
276- __u32 frto_highmark ; /* snd_nxt when RTO occurred */
277- __u8 reordering ; /* Packet reordering metric. */
278- __u8 frto_counter ; /* Number of new acks after RTO */
279- __u8 nonagle ; /* Disable Nagle algorithm? */
280- __u8 keepalive_probes ; /* num of allowed keep alive probes */
276+ u32 frto_highmark ; /* snd_nxt when RTO occurred */
277+ u8 reordering ; /* Packet reordering metric. */
278+ u8 frto_counter ; /* Number of new acks after RTO */
279+ u8 nonagle ; /* Disable Nagle algorithm? */
280+ u8 keepalive_probes ; /* num of allowed keep alive probes */
281281
282282/* RTT measurement */
283- __u32 srtt ; /* smoothed round trip time << 3 */
284- __u32 mdev ; /* medium deviation */
285- __u32 mdev_max ; /* maximal mdev for the last rtt period */
286- __u32 rttvar ; /* smoothed mdev_max */
287- __u32 rtt_seq ; /* sequence number to update rttvar */
288-
289- __u32 packets_out ; /* Packets which are "in flight" */
290- __u32 left_out ; /* Packets which leaved network */
291- __u32 retrans_out ; /* Retransmitted packets out */
283+ u32 srtt ; /* smoothed round trip time << 3 */
284+ u32 mdev ; /* medium deviation */
285+ u32 mdev_max ; /* maximal mdev for the last rtt period */
286+ u32 rttvar ; /* smoothed mdev_max */
287+ u32 rtt_seq ; /* sequence number to update rttvar */
288+
289+ u32 packets_out ; /* Packets which are "in flight" */
290+ u32 left_out ; /* Packets which leaved network */
291+ u32 retrans_out ; /* Retransmitted packets out */
292292/*
293293 * Options received (usually on last packet, some only on SYN packets).
294294 */
@@ -297,20 +297,20 @@ struct tcp_sock {
297297/*
298298 * Slow start and congestion control (see also Nagle, and Karn & Partridge)
299299 */
300- __u32 snd_ssthresh ; /* Slow start size threshold */
301- __u32 snd_cwnd ; /* Sending congestion window */
302- __u16 snd_cwnd_cnt ; /* Linear increase counter */
303- __u16 snd_cwnd_clamp ; /* Do not allow snd_cwnd to grow above this */
304- __u32 snd_cwnd_used ;
305- __u32 snd_cwnd_stamp ;
300+ u32 snd_ssthresh ; /* Slow start size threshold */
301+ u32 snd_cwnd ; /* Sending congestion window */
302+ u16 snd_cwnd_cnt ; /* Linear increase counter */
303+ u16 snd_cwnd_clamp ; /* Do not allow snd_cwnd to grow above this */
304+ u32 snd_cwnd_used ;
305+ u32 snd_cwnd_stamp ;
306306
307307 struct sk_buff_head out_of_order_queue ; /* Out of order segments go here */
308308
309- __u32 rcv_wnd ; /* Current receiver window */
310- __u32 rcv_wup ; /* rcv_nxt on last window update sent */
311- __u32 write_seq ; /* Tail(+1) of data held in tcp send buffer */
312- __u32 pushed_seq ; /* Last pushed seq, required to talk to windows */
313- __u32 copied_seq ; /* Head of yet unread data */
309+ u32 rcv_wnd ; /* Current receiver window */
310+ u32 rcv_wup ; /* rcv_nxt on last window update sent */
311+ u32 write_seq ; /* Tail(+1) of data held in tcp send buffer */
312+ u32 pushed_seq ; /* Last pushed seq, required to talk to windows */
313+ u32 copied_seq ; /* Head of yet unread data */
314314
315315/* SACKs data */
316316 struct tcp_sack_block duplicate_sack [1 ]; /* D-SACK block */
@@ -331,53 +331,53 @@ struct tcp_sock {
331331 int retransmit_cnt_hint ;
332332 int forward_cnt_hint ;
333333
334- __u16 advmss ; /* Advertised MSS */
335- __u16 prior_ssthresh ; /* ssthresh saved at recovery start */
336- __u32 lost_out ; /* Lost packets */
337- __u32 sacked_out ; /* SACK'd packets */
338- __u32 fackets_out ; /* FACK'd packets */
339- __u32 high_seq ; /* snd_nxt at onset of congestion */
334+ u16 advmss ; /* Advertised MSS */
335+ u16 prior_ssthresh ; /* ssthresh saved at recovery start */
336+ u32 lost_out ; /* Lost packets */
337+ u32 sacked_out ; /* SACK'd packets */
338+ u32 fackets_out ; /* FACK'd packets */
339+ u32 high_seq ; /* snd_nxt at onset of congestion */
340340
341- __u32 retrans_stamp ; /* Timestamp of the last retransmit,
341+ u32 retrans_stamp ; /* Timestamp of the last retransmit,
342342 * also used in SYN-SENT to remember stamp of
343343 * the first SYN. */
344- __u32 undo_marker ; /* tracking retrans started here. */
344+ u32 undo_marker ; /* tracking retrans started here. */
345345 int undo_retrans ; /* number of undoable retransmissions. */
346- __u32 urg_seq ; /* Seq of received urgent pointer */
347- __u16 urg_data ; /* Saved octet of OOB data and control flags */
348- __u8 urg_mode ; /* In urgent mode */
349- __u8 ecn_flags ; /* ECN status bits. */
350- __u32 snd_up ; /* Urgent pointer */
346+ u32 urg_seq ; /* Seq of received urgent pointer */
347+ u16 urg_data ; /* Saved octet of OOB data and control flags */
348+ u8 urg_mode ; /* In urgent mode */
349+ u8 ecn_flags ; /* ECN status bits. */
350+ u32 snd_up ; /* Urgent pointer */
351351
352- __u32 total_retrans ; /* Total retransmits for entire connection */
353- __u32 bytes_acked ; /* Appropriate Byte Counting - RFC3465 */
352+ u32 total_retrans ; /* Total retransmits for entire connection */
353+ u32 bytes_acked ; /* Appropriate Byte Counting - RFC3465 */
354354
355355 unsigned int keepalive_time ; /* time before keep alive takes place */
356356 unsigned int keepalive_intvl ; /* time interval between keep alive probes */
357357 int linger2 ;
358358
359359 unsigned long last_synq_overflow ;
360360
361- __u32 tso_deferred ;
361+ u32 tso_deferred ;
362362
363363/* Receiver side RTT estimation */
364364 struct {
365- __u32 rtt ;
366- __u32 seq ;
367- __u32 time ;
365+ u32 rtt ;
366+ u32 seq ;
367+ u32 time ;
368368 } rcv_rtt_est ;
369369
370370/* Receiver queue space */
371371 struct {
372372 int space ;
373- __u32 seq ;
374- __u32 time ;
373+ u32 seq ;
374+ u32 time ;
375375 } rcvq_space ;
376376
377377/* TCP-specific MTU probe information. */
378378 struct {
379- __u32 probe_seq_start ;
380- __u32 probe_seq_end ;
379+ u32 probe_seq_start ;
380+ u32 probe_seq_end ;
381381 } mtu_probe ;
382382
383383#ifdef CONFIG_TCP_MD5SIG
@@ -396,14 +396,14 @@ static inline struct tcp_sock *tcp_sk(const struct sock *sk)
396396
397397struct tcp_timewait_sock {
398398 struct inet_timewait_sock tw_sk ;
399- __u32 tw_rcv_nxt ;
400- __u32 tw_snd_nxt ;
401- __u32 tw_rcv_wnd ;
402- __u32 tw_ts_recent ;
399+ u32 tw_rcv_nxt ;
400+ u32 tw_snd_nxt ;
401+ u32 tw_rcv_wnd ;
402+ u32 tw_ts_recent ;
403403 long tw_ts_recent_stamp ;
404404#ifdef CONFIG_TCP_MD5SIG
405- __u16 tw_md5_keylen ;
406- __u8 tw_md5_key [TCP_MD5SIG_MAXKEYLEN ];
405+ u16 tw_md5_keylen ;
406+ u8 tw_md5_key [TCP_MD5SIG_MAXKEYLEN ];
407407#endif
408408};
409409
0 commit comments