1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/* vim:ts=8:sts=4:sw=4:noai:noexpandtab
*
* PGM source socket.
*
* Copyright (c) 2006-2010 Miru Limited.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __PGM_IMPL_SOURCE_H__
#define __PGM_IMPL_SOURCE_H__
#include <impl/framework.h>
#include <impl/receiver.h>
PGM_BEGIN_DECLS
/* Performance Counters */
enum {
PGM_PC_SOURCE_DATA_BYTES_SENT,
PGM_PC_SOURCE_DATA_MSGS_SENT, /* msgs = packets not APDUs */
/* PGM_PC_SOURCE_BYTES_BUFFERED, */ /* tx window contents in bytes */
/* PGM_PC_SOURCE_MSGS_BUFFERED, */
PGM_PC_SOURCE_BYTES_SENT,
/* PGM_PC_SOURCE_RAW_NAKS_RECEIVED, */
PGM_PC_SOURCE_CKSUM_ERRORS,
PGM_PC_SOURCE_MALFORMED_NAKS,
PGM_PC_SOURCE_PACKETS_DISCARDED,
PGM_PC_SOURCE_PARITY_BYTES_RETRANSMITTED,
PGM_PC_SOURCE_SELECTIVE_BYTES_RETRANSMITTED,
PGM_PC_SOURCE_PARITY_MSGS_RETRANSMITTED,
PGM_PC_SOURCE_SELECTIVE_MSGS_RETRANSMITTED,
PGM_PC_SOURCE_PARITY_NAK_PACKETS_RECEIVED,
PGM_PC_SOURCE_SELECTIVE_NAK_PACKETS_RECEIVED, /* total packets */
PGM_PC_SOURCE_PARITY_NAKS_RECEIVED,
PGM_PC_SOURCE_SELECTIVE_NAKS_RECEIVED, /* serial numbers */
PGM_PC_SOURCE_PARITY_NAKS_IGNORED,
PGM_PC_SOURCE_SELECTIVE_NAKS_IGNORED,
PGM_PC_SOURCE_ACK_ERRORS,
/* PGM_PC_SOURCE_PGMCC_ACKER, */
PGM_PC_SOURCE_TRANSMISSION_CURRENT_RATE,
PGM_PC_SOURCE_ACK_PACKETS_RECEIVED,
PGM_PC_SOURCE_PARITY_NNAK_PACKETS_RECEIVED,
PGM_PC_SOURCE_SELECTIVE_NNAK_PACKETS_RECEIVED,
PGM_PC_SOURCE_PARITY_NNAKS_RECEIVED,
PGM_PC_SOURCE_SELECTIVE_NNAKS_RECEIVED,
PGM_PC_SOURCE_NNAK_ERRORS,
/* marker */
PGM_PC_SOURCE_MAX
};
PGM_GNUC_INTERNAL bool pgm_send_spm (pgm_sock_t*, int) PGM_GNUC_WARN_UNUSED_RESULT;
PGM_GNUC_INTERNAL bool pgm_on_deferred_nak (pgm_sock_t*const);
PGM_GNUC_INTERNAL bool pgm_on_spmr (pgm_sock_t*const restrict, pgm_peer_t*const restrict, struct pgm_sk_buff_t*const restrict) PGM_GNUC_WARN_UNUSED_RESULT;
PGM_GNUC_INTERNAL bool pgm_on_nak (pgm_sock_t*const restrict, struct pgm_sk_buff_t*const restrict) PGM_GNUC_WARN_UNUSED_RESULT;
PGM_GNUC_INTERNAL bool pgm_on_nnak (pgm_sock_t*const restrict, struct pgm_sk_buff_t*const restrict) PGM_GNUC_WARN_UNUSED_RESULT;
PGM_GNUC_INTERNAL bool pgm_on_ack (pgm_sock_t*const restrict, struct pgm_sk_buff_t*const restrict) PGM_GNUC_WARN_UNUSED_RESULT;
PGM_END_DECLS
#endif /* __PGM_IMPL_SOURCE_H__ */
|