Lines Matching refs:ax25_rt
89 ax25_route *s, *t, *ax25_rt = ax25_route_list; in ax25_rt_device_down() local
91 while (ax25_rt != NULL) { in ax25_rt_device_down()
92 s = ax25_rt; in ax25_rt_device_down()
93 ax25_rt = ax25_rt->next; in ax25_rt_device_down()
119 ax25_route *s, *t, *ax25_rt; in ax25_rt_ioctl() local
133 for (ax25_rt = ax25_route_list; ax25_rt != NULL; ax25_rt = ax25_rt->next) { in ax25_rt_ioctl()
134 if (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == ax25_dev->dev) { in ax25_rt_ioctl()
135 if (ax25_rt->digipeat != NULL) { in ax25_rt_ioctl()
136 kfree(ax25_rt->digipeat); in ax25_rt_ioctl()
137 ax25_rt->digipeat = NULL; in ax25_rt_ioctl()
140 if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) in ax25_rt_ioctl()
142 ax25_rt->digipeat->lastrepeat = -1; in ax25_rt_ioctl()
143 ax25_rt->digipeat->ndigi = route.digi_count; in ax25_rt_ioctl()
145 ax25_rt->digipeat->repeated[i] = 0; in ax25_rt_ioctl()
146 ax25_rt->digipeat->calls[i] = route.digi_addr[i]; in ax25_rt_ioctl()
152 if ((ax25_rt = kmalloc(sizeof(ax25_route), GFP_ATOMIC)) == NULL) in ax25_rt_ioctl()
154 ax25_rt->callsign = route.dest_addr; in ax25_rt_ioctl()
155 ax25_rt->dev = ax25_dev->dev; in ax25_rt_ioctl()
156 ax25_rt->digipeat = NULL; in ax25_rt_ioctl()
157 ax25_rt->ip_mode = ' '; in ax25_rt_ioctl()
159 if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { in ax25_rt_ioctl()
160 kfree(ax25_rt); in ax25_rt_ioctl()
163 ax25_rt->digipeat->lastrepeat = -1; in ax25_rt_ioctl()
164 ax25_rt->digipeat->ndigi = route.digi_count; in ax25_rt_ioctl()
166 ax25_rt->digipeat->repeated[i] = 0; in ax25_rt_ioctl()
167 ax25_rt->digipeat->calls[i] = route.digi_addr[i]; in ax25_rt_ioctl()
171 ax25_rt->next = ax25_route_list; in ax25_rt_ioctl()
172 ax25_route_list = ax25_rt; in ax25_rt_ioctl()
181 ax25_rt = ax25_route_list; in ax25_rt_ioctl()
182 while (ax25_rt != NULL) { in ax25_rt_ioctl()
183 s = ax25_rt; in ax25_rt_ioctl()
184 ax25_rt = ax25_rt->next; in ax25_rt_ioctl()
211 for (ax25_rt = ax25_route_list; ax25_rt != NULL; ax25_rt = ax25_rt->next) { in ax25_rt_ioctl()
212 if (ax25_rt->dev == ax25_dev->dev && ax25cmp(&rt_option.dest_addr, &ax25_rt->callsign) == 0) { in ax25_rt_ioctl()
219 ax25_rt->ip_mode = rt_option.arg; in ax25_rt_ioctl()
241 ax25_route *ax25_rt; in ax25_rt_get_info() local
252 for (ax25_rt = ax25_route_list; ax25_rt != NULL; ax25_rt = ax25_rt->next) { in ax25_rt_get_info()
253 if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0) in ax25_rt_get_info()
256 callsign = ax2asc(&ax25_rt->callsign); in ax25_rt_get_info()
259 ax25_rt->dev ? ax25_rt->dev->name : "???"); in ax25_rt_get_info()
261 switch (ax25_rt->ip_mode) { in ax25_rt_get_info()
273 if (ax25_rt->digipeat != NULL) in ax25_rt_get_info()
274 for (i = 0; i < ax25_rt->digipeat->ndigi; i++) in ax25_rt_get_info()
275 len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); in ax25_rt_get_info()
307 ax25_route *ax25_rt; in ax25_find_route() local
313 for (ax25_rt = ax25_route_list; ax25_rt != NULL; ax25_rt = ax25_rt->next) { in ax25_find_route()
315 if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev != NULL) in ax25_find_route()
316 ax25_spe_rt = ax25_rt; in ax25_find_route()
317 if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev != NULL) in ax25_find_route()
318 ax25_def_rt = ax25_rt; in ax25_find_route()
320 if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev == dev) in ax25_find_route()
321 ax25_spe_rt = ax25_rt; in ax25_find_route()
322 if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev == dev) in ax25_find_route()
323 ax25_def_rt = ax25_rt; in ax25_find_route()
356 ax25_route *ax25_rt; in ax25_rt_autobind() local
359 if ((ax25_rt = ax25_find_route(addr, NULL)) == NULL) in ax25_rt_autobind()
362 if ((ax25->ax25_dev = ax25_dev_ax25dev(ax25_rt->dev)) == NULL) in ax25_rt_autobind()
373 if (ax25_rt->digipeat != NULL) { in ax25_rt_autobind()
376 memcpy(ax25->digipeat, ax25_rt->digipeat, sizeof(ax25_digi)); in ax25_rt_autobind()
393 ax25_route *ax25_rt; in ax25_rt_find_route() local
395 if ((ax25_rt = ax25_find_route(addr, dev)) == NULL) { in ax25_rt_find_route()
404 return ax25_rt; in ax25_rt_find_route()
441 ax25_route *s, *ax25_rt = ax25_route_list; in ax25_rt_free() local
443 while (ax25_rt != NULL) { in ax25_rt_free()
444 s = ax25_rt; in ax25_rt_free()
445 ax25_rt = ax25_rt->next; in ax25_rt_free()