Lines Matching refs:route
72 static int __must_check ax25_rt_add(struct ax25_routes_struct *route)
78 if (route->digi_count > AX25_MAX_DIGIS)
81 ax25_dev = ax25_addr_ax25dev(&route->port_addr);
89 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 &&
93 if (route->digi_count != 0) {
100 ax25_rt->digipeat->ndigi = route->digi_count;
101 for (i = 0; i < route->digi_count; i++) {
103 ax25_rt->digipeat->calls[i] = route->digi_addr[i];
119 ax25_rt->callsign = route->dest_addr;
123 if (route->digi_count != 0) {
131 ax25_rt->digipeat->ndigi = route->digi_count;
132 for (i = 0; i < route->digi_count; i++) {
134 ax25_rt->digipeat->calls[i] = route->digi_addr[i];
151 static int ax25_rt_del(struct ax25_routes_struct *route)
156 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL)
166 ax25cmp(&route->dest_addr, &s->callsign) == 0) {
232 struct ax25_routes_struct route;
236 if (copy_from_user(&route, arg, sizeof(route)))
238 return ax25_rt_add(&route);
241 if (copy_from_user(&route, arg, sizeof(route)))
243 return ax25_rt_del(&route);
340 * Find AX.25 route
353 * route if none is found;
377 * Adjust path: If you specify a default route and want to connect
378 * a target on the digipeater path but w/o having a special route