Lines Matching refs:route
72 static int __must_check ax25_rt_add(struct ax25_routes_struct *route) in ax25_rt_add() argument
78 if (route->digi_count > AX25_MAX_DIGIS) in ax25_rt_add()
81 ax25_dev = ax25_addr_ax25dev(&route->port_addr); in ax25_rt_add()
89 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 && in ax25_rt_add()
93 if (route->digi_count != 0) { in ax25_rt_add()
100 ax25_rt->digipeat->ndigi = route->digi_count; in ax25_rt_add()
101 for (i = 0; i < route->digi_count; i++) { in ax25_rt_add()
103 ax25_rt->digipeat->calls[i] = route->digi_addr[i]; in ax25_rt_add()
119 ax25_rt->callsign = route->dest_addr; in ax25_rt_add()
123 if (route->digi_count != 0) { in ax25_rt_add()
131 ax25_rt->digipeat->ndigi = route->digi_count; in ax25_rt_add()
132 for (i = 0; i < route->digi_count; i++) { in ax25_rt_add()
134 ax25_rt->digipeat->calls[i] = route->digi_addr[i]; in ax25_rt_add()
151 static int ax25_rt_del(struct ax25_routes_struct *route) in ax25_rt_del() argument
156 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_del()
166 ax25cmp(&route->dest_addr, &s->callsign) == 0) { in ax25_rt_del()
232 struct ax25_routes_struct route; in ax25_rt_ioctl() local
236 if (copy_from_user(&route, arg, sizeof(route))) in ax25_rt_ioctl()
238 return ax25_rt_add(&route); in ax25_rt_ioctl()
241 if (copy_from_user(&route, arg, sizeof(route))) in ax25_rt_ioctl()
243 return ax25_rt_del(&route); in ax25_rt_ioctl()