Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec use time_t rather than long for timestamps



details:   https://anonhg.NetBSD.org/src/rev/20589681bbf5
branches:  trunk
changeset: 765023:20589681bbf5
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon May 16 10:02:30 2011 +0000

description:
use time_t rather than long for timestamps

diffstat:

 sys/netipsec/ipsec.h |  12 ++++++------
 sys/netipsec/keydb.h |   6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (60 lines):

diff -r 42358108d200 -r 20589681bbf5 sys/netipsec/ipsec.h
--- a/sys/netipsec/ipsec.h      Mon May 16 10:00:32 2011 +0000
+++ b/sys/netipsec/ipsec.h      Mon May 16 10:02:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec.h,v 1.25 2011/02/18 19:06:45 drochner Exp $      */
+/*     $NetBSD: ipsec.h,v 1.26 2011/05/16 10:02:30 drochner Exp $      */
 /*     $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec.h,v 1.2.4.2 2004/02/14 22:23:23 bms Exp $       */
 /*     $KAME: ipsec.h,v 1.53 2001/11/20 08:32:38 itojun Exp $  */
 
@@ -93,10 +93,10 @@
         * "lifetime" is passed by sadb_lifetime.sadb_lifetime_addtime.
         * "validtime" is passed by sadb_lifetime.sadb_lifetime_usetime.
         */
-       long created;           /* time created the policy */
-       long lastused;          /* updated every when kernel sends a packet */
-       long lifetime;          /* duration of the lifetime of this policy */
-       long validtime;         /* duration this policy is valid without use */
+       time_t created;         /* time created the policy */
+       time_t lastused;        /* updated every when kernel sends a packet */
+       time_t lifetime;        /* duration of the lifetime of this policy */
+       time_t validtime;       /* duration this policy is valid without use */
 };
 
 /* Request for IPsec */
@@ -146,7 +146,7 @@
 
        struct secpolicyindex spidx;
 
-       long created;           /* for lifetime */
+       time_t created;         /* for lifetime */
        int count;              /* for lifetime */
        /* XXX: here is mbuf place holder to be sent ? */
 };
diff -r 42358108d200 -r 20589681bbf5 sys/netipsec/keydb.h
--- a/sys/netipsec/keydb.h      Mon May 16 10:00:32 2011 +0000
+++ b/sys/netipsec/keydb.h      Mon May 16 10:02:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: keydb.h,v 1.8 2011/02/18 20:40:58 drochner Exp $       */
+/*     $NetBSD: keydb.h,v 1.9 2011/05/16 10:02:30 drochner Exp $       */
 /*     $FreeBSD: src/sys/netipsec/keydb.h,v 1.1.4.1 2003/01/24 05:11:36 sam Exp $      */
 /*     $KAME: keydb.h,v 1.14 2000/08/02 17:58:26 sakane Exp $  */
 
@@ -106,7 +106,7 @@
        size_t schedlen;
 
        struct secreplay *replay;       /* replay prevention */
-       long created;                   /* for lifetime */
+       time_t created;                 /* for lifetime */
 
        struct sadb_lifetime *lft_c;    /* CURRENT lifetime, it's constant. */
        struct sadb_lifetime *lft_h;    /* HARD lifetime */
@@ -159,7 +159,7 @@
        struct secasindex saidx;
 
        u_int32_t seq;          /* sequence number */
-       long created;           /* for lifetime */
+       time_t created;         /* for lifetime */
        int count;              /* for lifetime */
 };
 #endif



Home | Main Index | Thread Index | Old Index