Lines Matching defs:te
75 struct throttle_entry *te;
78 len = sizeof(*te)
82 if ((te = racoon_malloc(len)) == NULL)
85 te->penalty = time(NULL) + isakmp_cfg_config.auth_throttle;
86 memcpy(&te->host, addr, sysdep_sa_len(addr));
87 TAILQ_INSERT_HEAD(&throttle_list, te, next);
89 return te;
97 struct throttle_entry *te;
107 RACOON_TAILQ_FOREACH_REVERSE(te, &throttle_list, throttle_list, next) {
111 if (te->penalty < now) {
112 TAILQ_REMOVE(&throttle_list, te, next);
113 racoon_free(te);
117 if (cmpsaddrwop(addr, (struct sockaddr *)&te->host) == 0) {
130 if ((te = throttle_add(addr)) == NULL) {
146 remaining = te->penalty - now;
152 te->penalty = now + new;
156 return te->penalty;