diff options
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r-- | include/net/sctp/structs.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 2b2f61dd4036..c2521016d646 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -1312,6 +1312,40 @@ struct sctp_inithdr_host { | |||
1312 | __u32 initial_tsn; | 1312 | __u32 initial_tsn; |
1313 | }; | 1313 | }; |
1314 | 1314 | ||
1315 | /* SCTP_GET_ASSOC_STATS counters */ | ||
1316 | struct sctp_priv_assoc_stats { | ||
1317 | /* Maximum observed rto in the association during subsequent | ||
1318 | * observations. Value is set to 0 if no RTO measurement took place | ||
1319 | * The transport where the max_rto was observed is returned in | ||
1320 | * obs_rto_ipaddr | ||
1321 | */ | ||
1322 | struct sockaddr_storage obs_rto_ipaddr; | ||
1323 | __u64 max_obs_rto; | ||
1324 | /* Total In and Out SACKs received and sent */ | ||
1325 | __u64 isacks; | ||
1326 | __u64 osacks; | ||
1327 | /* Total In and Out packets received and sent */ | ||
1328 | __u64 opackets; | ||
1329 | __u64 ipackets; | ||
1330 | /* Total retransmitted chunks */ | ||
1331 | __u64 rtxchunks; | ||
1332 | /* TSN received > next expected */ | ||
1333 | __u64 outofseqtsns; | ||
1334 | /* Duplicate Chunks received */ | ||
1335 | __u64 idupchunks; | ||
1336 | /* Gap Ack Blocks received */ | ||
1337 | __u64 gapcnt; | ||
1338 | /* Unordered data chunks sent and received */ | ||
1339 | __u64 ouodchunks; | ||
1340 | __u64 iuodchunks; | ||
1341 | /* Ordered data chunks sent and received */ | ||
1342 | __u64 oodchunks; | ||
1343 | __u64 iodchunks; | ||
1344 | /* Control chunks sent and received */ | ||
1345 | __u64 octrlchunks; | ||
1346 | __u64 ictrlchunks; | ||
1347 | }; | ||
1348 | |||
1315 | /* RFC2960 | 1349 | /* RFC2960 |
1316 | * | 1350 | * |
1317 | * 12. Recommended Transmission Control Block (TCB) Parameters | 1351 | * 12. Recommended Transmission Control Block (TCB) Parameters |
@@ -1830,6 +1864,8 @@ struct sctp_association { | |||
1830 | 1864 | ||
1831 | __u8 need_ecne:1, /* Need to send an ECNE Chunk? */ | 1865 | __u8 need_ecne:1, /* Need to send an ECNE Chunk? */ |
1832 | temp:1; /* Is it a temporary association? */ | 1866 | temp:1; /* Is it a temporary association? */ |
1867 | |||
1868 | struct sctp_priv_assoc_stats stats; | ||
1833 | }; | 1869 | }; |
1834 | 1870 | ||
1835 | 1871 | ||