struct route_in6 sa_route; /* route cache */
};
+#define MAX_REPLAY_WINDOWS 4
+
/* Security Association */
struct secasvar {
LIST_ENTRY(secasvar) chain;
void *sched; /* intermediate encryption key */
size_t schedlen;
- struct secreplay *replay; /* replay prevention */
+ struct secreplay *replay[MAX_REPLAY_WINDOWS]; /* replay prevention */
+
long created; /* for lifetime */
struct sadb_lifetime *lft_c; /* CURRENT lifetime, it's constant. */
u_int32_t count;
u_int wsize; /* window size, i.g. 4 bytes */
u_int32_t seq; /* used by sender */
- u_int32_t lastseq; /* used by receiver */
+ u_int32_t lastseq; /* used by sender/receiver */
caddr_t bitmap; /* used by receiver */
int overflow; /* overflow flag */
};