]> git.pond.sub.org Git - empserver/blobdiff - include/nat.h
Generation numbers to catch write back of stale copies
[empserver] / include / nat.h
index 5b658bdbb89c2de289e32fdd257154ba39f5b3db..d64f8036c796a7575b7ea42405e22e36043f42fc 100644 (file)
@@ -72,6 +72,7 @@ struct realmstr {
     /* initial part must match struct empobj */
     signed ef_type: 8;
     unsigned r_seqno: 12;
+    unsigned r_generation: 12;
     int r_uid;                 /* realm table index */
     time_t r_timestamp;                /* Last time this realm was touched */
     natid r_cnum;              /* country number */
@@ -85,6 +86,7 @@ struct natstr {
     /* initial part must match struct empobj */
     signed ef_type: 8;
     unsigned nat_seqno: 12;
+    unsigned nat_generation: 12;
     int nat_uid;               /* equals nat_cnum */
     time_t nat_timestamp;
     natid nat_cnum;            /* our country number */