Lines Matching defs: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];
120 ax25_rt->callsign = route->dest_addr;
124 if (route->digi_count != 0) {
132 ax25_rt->digipeat->ndigi = route->digi_count;
133 for (i = 0; i < route->digi_count; i++) {
135 ax25_rt->digipeat->calls[i] = route->digi_addr[i];
152 static int ax25_rt_del(struct ax25_routes_struct *route)
157 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL)
167 ax25cmp(&route->dest_addr, &s->callsign) == 0) {
233 struct ax25_routes_struct route;
237 if (copy_from_user(&route, arg, sizeof(route)))
239 return ax25_rt_add(&route);
242 if (copy_from_user(&route, arg, sizeof(route)))
244 return ax25_rt_del(&route);
341 * Find AX.25 route
354 * route if none is found;
378 * Adjust path: If you specify a default route and want to connect
379 * a target on the digipeater path but w/o having a special route