OLD | NEW |
1 /* | 1 /* |
2 * rdbx.h | 2 * rdbx.h |
3 * | 3 * |
4 * replay database with extended packet indices, using a rollover counter | 4 * replay database with extended packet indices, using a rollover counter |
5 * | 5 * |
6 * David A. McGrew | 6 * David A. McGrew |
7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 * OF THE POSSIBILITY OF SUCH DAMAGE. | 43 * OF THE POSSIBILITY OF SUCH DAMAGE. |
44 * | 44 * |
45 */ | 45 */ |
46 | 46 |
47 #ifndef RDBX_H | 47 #ifndef RDBX_H |
48 #define RDBX_H | 48 #define RDBX_H |
49 | 49 |
50 #include "datatypes.h" | 50 #include "datatypes.h" |
51 #include "err.h" | 51 #include "err.h" |
52 | 52 |
| 53 /** |
| 54 * Compatibility shim for v1->v2 transition. |
| 55 */ |
| 56 |
| 57 #define srtp_rdbx_get_packet_index rdbx_get_packet_index |
| 58 |
53 /* #define ROC_TEST */ | 59 /* #define ROC_TEST */ |
54 | 60 |
55 #ifndef ROC_TEST | 61 #ifndef ROC_TEST |
56 | 62 |
57 typedef uint16_t sequence_number_t; /* 16 bit sequence number */ | 63 typedef uint16_t sequence_number_t; /* 16 bit sequence number */ |
58 typedef uint32_t rollover_counter_t; /* 32 bit rollover counter */ | 64 typedef uint32_t rollover_counter_t; /* 32 bit rollover counter */ |
59 | 65 |
60 #else /* use small seq_num and roc datatypes for testing purposes */ | 66 #else /* use small seq_num and roc datatypes for testing purposes */ |
61 | 67 |
62 typedef unsigned char sequence_number_t; /* 8 bit sequence number */ | 68 typedef unsigned char sequence_number_t; /* 8 bit sequence number */ |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 #endif /* RDBX_H */ | 219 #endif /* RDBX_H */ |
214 | 220 |
215 | 221 |
216 | 222 |
217 | 223 |
218 | 224 |
219 | 225 |
220 | 226 |
221 | 227 |
222 | 228 |
OLD | NEW |