chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put timer information into the entropy pool when packets are received
[tripe]
/
admin.c
diff --git
a/admin.c
b/admin.c
index 508976f21802652a52191c44c8c1971def0bbd05..766b30528e9170fb254baba6a5183d64d53e8124 100644
(file)
--- a/
admin.c
+++ b/
admin.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: admin.c,v 1.
1 2001/02/03 20:26:37
mdw Exp $
+ * $Id: admin.c,v 1.
2 2001/02/03 22:40:29
mdw Exp $
*
* Admin interface for configuration
*
*
* Admin interface for configuration
*
@@
-29,6
+29,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: admin.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: admin.c,v $
+ * Revision 1.2 2001/02/03 22:40:29 mdw
+ * Put timer information into the entropy pool when packets are received
+ * and on similar events. Reseed the generator on the interval timer.
+ *
* Revision 1.1 2001/02/03 20:26:37 mdw
* Initial checkin.
*
* Revision 1.1 2001/02/03 20:26:37 mdw
* Initial checkin.
*
@@
-227,6
+231,7
@@
static void a_resolve(struct hostent *h, void *v)
{
admin *a = v;
T( trace(T_ADMIN, "admin: %u resolved", a->seq); )
{
admin *a = v;
T( trace(T_ADMIN, "admin: %u resolved", a->seq); )
+ TIMER;
sel_rmtimer(&a->t);
if (!h)
a_write(a, "ERR couldn't resolve hostname `%s'\n", a->paddr);
sel_rmtimer(&a->t);
if (!h)
a_write(a, "ERR couldn't resolve hostname `%s'\n", a->paddr);
@@
-548,6
+553,7
@@
static void a_line(char *p, void *vp)
char *av[4];
size_t ac;
char *av[4];
size_t ac;
+ TIMER;
if (!p) {
a_destroy(a);
return;
if (!p) {
a_destroy(a);
return;