Lines Matching defs:te
61 struct throttle_entry *te;
65 len = sizeof(*te)
69 if ((te = racoon_malloc(len)) == NULL)
75 timeradd(&now, &penalty, &te->penalty_ends);
77 memcpy(&te->host, addr, sysdep_sa_len(addr));
78 TAILQ_INSERT_HEAD(&throttle_list, te, next);
80 return te;
88 struct throttle_entry *te;
97 RACOON_TAILQ_FOREACH_REVERSE(te, &throttle_list, throttle_list, next) {
101 if (timercmp(&te->penalty_ends, &now, <)) {
102 TAILQ_REMOVE(&throttle_list, te, next);
103 racoon_free(te);
107 if (cmpsaddr(addr, (struct sockaddr *) &te->host) <= CMPSADDR_WOP_MATCH) {
120 if ((te = throttle_add(addr)) == NULL) {
134 timersub(&te->penalty_ends, &now, &remaining);
142 timeradd(&now, &res, &te->penalty_ends);
146 timersub(&te->penalty_ends, &now, &res);