uid clear

Kevin C. Miller kevinm at andrew.cmu.edu
Thu Mar 28 06:00:34 UTC 2002


So I added the following to make_binding_state_transition (near 1177)

if (lease -> uid) {
        dfree (lease -> uid, MDL);
        lease -> uid_len = 0;
        lease -> uid_max = 0;
}

This causes the uid to go away on the primary, but not the secondary. 
Leases (and yes, still running with my f_update patch -- gotta make a 
better fix):

primary:
lease 128.237.174.201 {
  starts 4 2002/03/28 04:47:08;
  ends 4 2002/03/28 05:47:08;
  tstp 4 2002/03/28 16:23:48;
  tsfp 4 2002/03/28 16:23:48;
  cltt 4 2002/03/28 04:47:08;
  binding state active;
  next binding state expired;
  hardware ethernet 00:10:a4:a0:81:fc;
  uid "\001\000\020\244\240\201\374";
  client-hostname "Angel's Laptop";
}
lease 128.237.174.201 {
  starts 4 2002/03/28 04:47:08;
  ends 4 2002/03/28 05:47:08;
  tstp 4 2002/03/28 16:23:48;
  tsfp 4 2002/03/28 16:23:48;
  cltt 4 2002/03/28 04:47:08;
  binding state expired;
  next binding state free;
  hardware ethernet 00:10:a4:a0:81:fc;
  uid "\001\000\020\244\240\201\374";
  client-hostname "Angel's Laptop";
}
lease 128.237.174.201 {
  starts 4 2002/03/28 04:47:08;
  ends 4 2002/03/28 05:47:08;
  tstp 4 2002/03/28 16:23:48;
  tsfp 4 2002/03/28 16:23:48;
  cltt 4 2002/03/28 04:47:08;
  f_lupdate 4 2002/03/28 05:47:08;
  binding state expired;
  next binding state free;
  hardware ethernet 00:10:a4:a0:81:fc;
  uid "\001\000\020\244\240\201\374";
  client-hostname "Angel's Laptop";
}
lease 128.237.174.201 {
  starts 4 2002/03/28 04:47:08;
  ends 4 2002/03/28 05:47:08;
  tstp 4 2002/03/28 05:47:08;
  tsfp 4 2002/03/28 16:23:48;
  cltt 4 2002/03/28 04:47:08;
  binding state free;
  hardware ethernet 00:10:a4:a0:81:fc;
}

Secondary:
lease 128.237.174.201 {
  starts 4 2002/03/28 04:47:08;
  ends 4 2002/03/28 05:47:08;
  tstp 3 2002/03/27 21:40:17;
  tsfp 4 2002/03/28 16:23:48;
  cltt 4 2002/03/28 04:47:08;
  binding state active;
  next binding state expired;
  hardware ethernet 00:10:a4:a0:81:fc;
  uid "\001\000\020\244\240\201\374";
  client-hostname "Angel's Laptop";
}
lease 128.237.174.201 {
  starts 4 2002/03/28 04:47:08;
  ends 4 2002/03/28 05:47:08;
  tstp 3 2002/03/27 21:40:17;
  tsfp 4 2002/03/28 16:23:48;
  cltt 4 2002/03/28 04:47:08;
  binding state free;
  hardware ethernet 00:10:a4:a0:81:fc;
  uid "\001\000\020\244\240\201\374";
  client-hostname "Angel's Laptop";
}

So this inconsistency is definitely just a failover issue. I'll try 
and look at it more tomorrow.

-Kevin


---------------------------------------------------
Kevin C. Miller <kcm at cmu.edu>
Network Group
Carnegie Mellon University


More information about the dhcp-hackers mailing list