Lines Matching refs:nr_route

69 	struct nr_route nr_route;  in nr_add_node()  local
224 nr_route = nr_node->routes[0]; in nr_add_node()
226 nr_node->routes[1] = nr_route; in nr_add_node()
234 nr_route = nr_node->routes[1]; in nr_add_node()
236 nr_node->routes[2] = nr_route; in nr_add_node()
245 nr_route = nr_node->routes[0]; in nr_add_node()
247 nr_node->routes[1] = nr_route; in nr_add_node()
636 struct nr_route_struct nr_route; in nr_rt_ioctl() local
643 if (copy_from_user(&nr_route, arg, sizeof(struct nr_route_struct))) in nr_rt_ioctl()
645 if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL) in nr_rt_ioctl()
647 if (nr_route.ndigis < 0 || nr_route.ndigis > AX25_MAX_DIGIS) { in nr_rt_ioctl()
651 switch (nr_route.type) { in nr_rt_ioctl()
653 ret = nr_add_node(&nr_route.callsign, in nr_rt_ioctl()
654 nr_route.mnemonic, in nr_rt_ioctl()
655 &nr_route.neighbour, in nr_rt_ioctl()
656 nr_call_to_digi(nr_route.ndigis, nr_route.digipeaters), in nr_rt_ioctl()
657 dev, nr_route.quality, in nr_rt_ioctl()
658 nr_route.obs_count); in nr_rt_ioctl()
661 ret = nr_add_neigh(&nr_route.callsign, in nr_rt_ioctl()
662 nr_call_to_digi(nr_route.ndigis, nr_route.digipeaters), in nr_rt_ioctl()
663 dev, nr_route.quality); in nr_rt_ioctl()
673 if (copy_from_user(&nr_route, arg, sizeof(struct nr_route_struct))) in nr_rt_ioctl()
675 if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL) in nr_rt_ioctl()
677 switch (nr_route.type) { in nr_rt_ioctl()
679 ret = nr_del_node(&nr_route.callsign, in nr_rt_ioctl()
680 &nr_route.neighbour, dev); in nr_rt_ioctl()
683 ret = nr_del_neigh(&nr_route.callsign, in nr_rt_ioctl()
684 dev, nr_route.quality); in nr_rt_ioctl()