Lines Matching refs:route
74 static int __must_check ax25_rt_add(struct ax25_routes_struct *route)
80 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL)
82 if (route->digi_count > AX25_MAX_DIGIS)
89 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 &&
93 if (route->digi_count != 0) {
99 ax25_rt->digipeat->ndigi = route->digi_count;
100 for (i = 0; i < route->digi_count; i++) {
102 ax25_rt->digipeat->calls[i] = route->digi_addr[i];
117 ax25_rt->callsign = route->dest_addr;
121 if (route->digi_count != 0) {
128 ax25_rt->digipeat->ndigi = route->digi_count;
129 for (i = 0; i < route->digi_count; i++) {
131 ax25_rt->digipeat->calls[i] = route->digi_addr[i];
147 static int ax25_rt_del(struct ax25_routes_struct *route)
152 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL)
162 ax25cmp(&route->dest_addr, &s->callsign) == 0) {
226 struct ax25_routes_struct route;
230 if (copy_from_user(&route, arg, sizeof(route)))
232 return ax25_rt_add(&route);
235 if (copy_from_user(&route, arg, sizeof(route)))
237 return ax25_rt_del(&route);
346 * Find AX.25 route
359 * route if none is found;
388 * Adjust path: If you specify a default route and want to connect
389 * a target on the digipeater path but w/o having a special route