/[pkg-mixmaster]/trunk/Mix/Src/chain.c
ViewVC logotype

Diff of /trunk/Mix/Src/chain.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 386 by weaselp, Wed Oct 9 20:53:32 2002 UTC revision 387 by weaselp, Thu Dec 5 04:26:24 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Prepare messages for remailer chain     Prepare messages for remailer chain
9     $Id: chain.c,v 1.4 2002/10/09 20:53:27 weaselp Exp $ */     $Id: chain.c,v 1.5 2002/12/05 04:23:32 weaselp Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 116  int chain_randfinal(int type, REMAILER * Line 116  int chain_randfinal(int type, REMAILER *
116          remailer[i].info[t].reliability >= 100 * RELFINAL &&          remailer[i].info[t].reliability >= 100 * RELFINAL &&
117          remailer[i].info[t].latency <= MAXLAT &&          remailer[i].info[t].latency <= MAXLAT &&
118          (type == MSG_NULL || !remailer[i].flags.middle) &&          (type == MSG_NULL || !remailer[i].flags.middle) &&
119            !remailer[i].flags.star_ex &&
120          (remailer[i].flags.post || type != MSG_POST))          (remailer[i].flags.post || type != MSG_POST))
121        num++;        num++;
122    }    }
# Line 130  int chain_randfinal(int type, REMAILER * Line 131  int chain_randfinal(int type, REMAILER *
131               remailer[i].info[t].reliability >= 100 * RELFINAL &&               remailer[i].info[t].reliability >= 100 * RELFINAL &&
132               remailer[i].info[t].latency <= MAXLAT &&               remailer[i].info[t].latency <= MAXLAT &&
133               (type == MSG_NULL || !remailer[i].flags.middle) &&               (type == MSG_NULL || !remailer[i].flags.middle) &&
134                 !remailer[i].flags.star_ex &&
135               (remailer[i].flags.post || type != MSG_POST)));               (remailer[i].flags.post || type != MSG_POST)));
136    }    }
137    return (i);    return (i);
# Line 155  int chain_rand(REMAILER *remailer, int m Line 157  int chain_rand(REMAILER *remailer, int m
157          select[i] = ((remailer[i].flags.mix && t == 0) ||          select[i] = ((remailer[i].flags.mix && t == 0) ||
158                       (remailer[i].flags.pgp && remailer[i].flags.ek && t == 1))                       (remailer[i].flags.pgp && remailer[i].flags.ek && t == 1))
159            && remailer[i].info[t].reliability >= 100 * MINREL &&            && remailer[i].info[t].reliability >= 100 * MINREL &&
160              !remailer[i].flags.star_ex &&
161            remailer[i].info[t].latency <= MAXLAT,            remailer[i].info[t].latency <= MAXLAT,
162            randavail += select[i];            randavail += select[i];
163    

Legend:
Removed from v.386  
changed lines
  Added in v.387

  ViewVC Help
Powered by ViewVC 1.1.5