diff options
author | bz <bz@FreeBSD.org> | 2009-11-29 20:37:30 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-11-29 20:37:30 +0000 |
commit | 21f84f921a8c72a476cb67e339ffe469ccdafed8 (patch) | |
tree | 6e3e6bc998199ca29d299c3bda8bdb7ade948768 /sys/netipsec/ipcomp_var.h | |
parent | 3797d9ecfd0598a6d59a7637523545b49a4af853 (diff) | |
download | FreeBSD-src-21f84f921a8c72a476cb67e339ffe469ccdafed8.zip FreeBSD-src-21f84f921a8c72a476cb67e339ffe469ccdafed8.tar.gz |
Add more statistics variables for IPcomp.
Try to version the struct in a backward compatible way.
People asked for the versioning of the stats structs in general before.
MFC after: 5 days
Diffstat (limited to 'sys/netipsec/ipcomp_var.h')
-rw-r--r-- | sys/netipsec/ipcomp_var.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netipsec/ipcomp_var.h b/sys/netipsec/ipcomp_var.h index a9dbe86..78f1848 100644 --- a/sys/netipsec/ipcomp_var.h +++ b/sys/netipsec/ipcomp_var.h @@ -41,6 +41,7 @@ */ #define IPCOMP_ALG_MAX 8 +#define IPCOMPSTAT_VERSION 1 struct ipcompstat { u_int32_t ipcomps_hdrops; /* Packet shorter than header shows */ u_int32_t ipcomps_nopf; /* Protocol family not supported */ @@ -58,6 +59,9 @@ struct ipcompstat { u_int32_t ipcomps_pdrops; /* Packet blocked due to policy */ u_int32_t ipcomps_crypto; /* "Crypto" processing failure */ u_int32_t ipcomps_hist[IPCOMP_ALG_MAX];/* Per-algorithm op count */ + u_int32_t version; /* Version of this structure. */ + u_int32_t ipcomps_threshold; /* Packet < comp. algo. threshold. */ + u_int32_t ipcomps_uncompr; /* Compression was useles. */ }; #ifdef _KERNEL |