Lines Matching defs:rti
160 struct router_info *rti = Head;
166 while (rti) {
167 if (rti->rti_ifp == ifp) {
171 return rti;
173 rti = rti->rti_next;
176 MALLOC(rti, struct router_info *, sizeof *rti, M_IGMP, wait);
177 if (rti != NULL)
179 rti->rti_ifp = ifp;
180 rti->rti_type = IGMP_V2_ROUTER;
181 rti->rti_time = 0;
182 rti->rti_next = Head;
183 Head = rti;
186 if (rti) printf("[igmp.c, _find_rti] --> created an entry \n");
188 return rti;
204 struct router_info *rti;
246 rti = find_rti(ifp, M_NOWAIT);
247 if (rti == NULL) {
278 rti->rti_type = IGMP_V1_ROUTER;
279 rti->rti_time = 0;
454 struct router_info *rti = Head;
459 while (rti) {
460 if (rti->rti_type == IGMP_V1_ROUTER) {
461 rti->rti_time++;
462 if (rti->rti_time >= IGMP_AGE_THRESHOLD) {
463 rti->rti_type = IGMP_V2_ROUTER;
466 rti = rti->rti_next;