diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2006-11-14 09:57:34 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:30 -0500 |
commit | 09dbc3895e3242346bd434dae743c456fd28fc6a (patch) | |
tree | a7bc1d0879b025152bff9e4a0ba44beaa5da654b /include | |
parent | c02fdc0e81e9c735d8d895af1e201b235df326d8 (diff) |
[DCCP]: Miscellaneous code tidy-ups
This patch does not change code; it performs some trivial clean/tidy-ups:
* removal of a `debug_prefix' string in favour of the
already existing dccp_role(sk)
* add documentation of structures and constants
* separated out the cases for invalid packets (step 1
of the packet validation)
* removing duplicate statements
* combining declaration & initialisation
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dccp.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h index 696319ee2d5b..d308f1228b61 100644 --- a/include/linux/dccp.h +++ b/include/linux/dccp.h | |||
@@ -209,6 +209,7 @@ struct dccp_so_feat { | |||
209 | #define DCCP_SOCKOPT_CCID_RX_INFO 128 | 209 | #define DCCP_SOCKOPT_CCID_RX_INFO 128 |
210 | #define DCCP_SOCKOPT_CCID_TX_INFO 192 | 210 | #define DCCP_SOCKOPT_CCID_TX_INFO 192 |
211 | 211 | ||
212 | /* maximum number of services provided on the same listening port */ | ||
212 | #define DCCP_SERVICE_LIST_MAX_LEN 32 | 213 | #define DCCP_SERVICE_LIST_MAX_LEN 32 |
213 | 214 | ||
214 | #ifdef __KERNEL__ | 215 | #ifdef __KERNEL__ |
@@ -355,6 +356,9 @@ static inline unsigned int dccp_hdr_len(const struct sk_buff *skb) | |||
355 | * @dccpms_ccid - Congestion Control Id (CCID) (section 10) | 356 | * @dccpms_ccid - Congestion Control Id (CCID) (section 10) |
356 | * @dccpms_send_ack_vector - Send Ack Vector Feature (section 11.5) | 357 | * @dccpms_send_ack_vector - Send Ack Vector Feature (section 11.5) |
357 | * @dccpms_send_ndp_count - Send NDP Count Feature (7.7.2) | 358 | * @dccpms_send_ndp_count - Send NDP Count Feature (7.7.2) |
359 | * @dccpms_ack_ratio - Ack Ratio Feature (section 11.3) | ||
360 | * @dccpms_pending - List of features being negotiated | ||
361 | * @dccpms_conf - | ||
358 | */ | 362 | */ |
359 | struct dccp_minisock { | 363 | struct dccp_minisock { |
360 | __u64 dccpms_sequence_window; | 364 | __u64 dccpms_sequence_window; |
@@ -452,14 +456,26 @@ struct dccp_ackvec; | |||
452 | * @dccps_gss - greatest sequence number sent | 456 | * @dccps_gss - greatest sequence number sent |
453 | * @dccps_gsr - greatest valid sequence number received | 457 | * @dccps_gsr - greatest valid sequence number received |
454 | * @dccps_gar - greatest valid ack number received on a non-Sync; initialized to %dccps_iss | 458 | * @dccps_gar - greatest valid ack number received on a non-Sync; initialized to %dccps_iss |
459 | * @dccps_service - first (passive sock) or unique (active sock) service code | ||
460 | * @dccps_service_list - second .. last service code on passive socket | ||
455 | * @dccps_timestamp_time - time of latest TIMESTAMP option | 461 | * @dccps_timestamp_time - time of latest TIMESTAMP option |
456 | * @dccps_timestamp_echo - latest timestamp received on a TIMESTAMP option | 462 | * @dccps_timestamp_echo - latest timestamp received on a TIMESTAMP option |
457 | * @dccps_packet_size - Set thru setsockopt | 463 | * @dccps_packet_size - Set thru setsockopt |
458 | * @dccps_role - Role of this sock, one of %dccp_role | 464 | * @dccps_l_ack_ratio - |
465 | * @dccps_r_ack_ratio - | ||
459 | * @dccps_pcslen - sender partial checksum coverage (via sockopt) | 466 | * @dccps_pcslen - sender partial checksum coverage (via sockopt) |
460 | * @dccps_pcrlen - receiver partial checksum coverage (via sockopt) | 467 | * @dccps_pcrlen - receiver partial checksum coverage (via sockopt) |
461 | * @dccps_ndp_count - number of Non Data Packets since last data packet | 468 | * @dccps_ndp_count - number of Non Data Packets since last data packet |
469 | * @dccps_mss_cache - | ||
470 | * @dccps_minisock - | ||
462 | * @dccps_hc_rx_ackvec - rx half connection ack vector | 471 | * @dccps_hc_rx_ackvec - rx half connection ack vector |
472 | * @dccps_hc_rx_ccid - | ||
473 | * @dccps_hc_tx_ccid - | ||
474 | * @dccps_options_received - | ||
475 | * @dccps_epoch - | ||
476 | * @dccps_role - Role of this sock, one of %dccp_role | ||
477 | * @dccps_hc_rx_insert_options - | ||
478 | * @dccps_hc_tx_insert_options - | ||
463 | * @dccps_xmit_timer - timer for when CCID is not ready to send | 479 | * @dccps_xmit_timer - timer for when CCID is not ready to send |
464 | */ | 480 | */ |
465 | struct dccp_sock { | 481 | struct dccp_sock { |