tag | line | file | source code |
nr_neigh | 82 | include/net/netrom.h | struct nr_neigh *next; |
nr_neigh | 61 | net/netrom/nr_route.c | static struct nr_neigh *nr_neigh_list = NULL; |
nr_neigh | 71 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 80 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 81 | net/netrom/nr_route.c | if (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 84 | net/netrom/nr_route.c | if (quality == 0 && nr_neigh != NULL && nr_node != NULL) |
nr_neigh | 87 | net/netrom/nr_route.c | if (nr_neigh == NULL) { |
nr_neigh | 88 | net/netrom/nr_route.c | if ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL) |
nr_neigh | 91 | net/netrom/nr_route.c | memcpy(&nr_neigh->callsign, ax25, sizeof(ax25_address)); |
nr_neigh | 93 | net/netrom/nr_route.c | nr_neigh->digipeat= NULL; |
nr_neigh | 94 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
nr_neigh | 95 | net/netrom/nr_route.c | nr_neigh->quality = nr_default.quality; |
nr_neigh | 96 | net/netrom/nr_route.c | nr_neigh->locked = 0; |
nr_neigh | 97 | net/netrom/nr_route.c | nr_neigh->count = 0; |
nr_neigh | 98 | net/netrom/nr_route.c | nr_neigh->number = nr_neigh_no++; |
nr_neigh | 101 | net/netrom/nr_route.c | if ((nr_neigh->digipeat = kmalloc(sizeof(*ax25_digi), GFP_KERNEL)) == NULL) { |
nr_neigh | 102 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(*nr_neigh)); |
nr_neigh | 105 | net/netrom/nr_route.c | memcpy(nr_neigh->digipeat, ax25_digi, sizeof(*ax25_digi)); |
nr_neigh | 111 | net/netrom/nr_route.c | nr_neigh->next = nr_neigh_list; |
nr_neigh | 112 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh; |
nr_neigh | 129 | net/netrom/nr_route.c | nr_node->routes[0].neighbour = nr_neigh->number; |
nr_neigh | 139 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 145 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 161 | net/netrom/nr_route.c | nr_node->routes[0].neighbour = nr_neigh->number; |
nr_neigh | 164 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 170 | net/netrom/nr_route.c | nr_node->routes[2].neighbour = nr_neigh->number; |
nr_neigh | 172 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 216 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 255 | net/netrom/nr_route.c | static void nr_remove_neigh(struct nr_neigh *nr_neigh) |
nr_neigh | 257 | net/netrom/nr_route.c | struct nr_neigh *s; |
nr_neigh | 263 | net/netrom/nr_route.c | if ((s = nr_neigh_list) == nr_neigh) { |
nr_neigh | 264 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh->next; |
nr_neigh | 266 | net/netrom/nr_route.c | if (nr_neigh->digipeat != NULL) |
nr_neigh | 267 | net/netrom/nr_route.c | kfree_s(nr_neigh->digipeat, sizeof(ax25_digi)); |
nr_neigh | 268 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(struct nr_neigh)); |
nr_neigh | 273 | net/netrom/nr_route.c | if (s->next == nr_neigh) { |
nr_neigh | 274 | net/netrom/nr_route.c | s->next = nr_neigh->next; |
nr_neigh | 276 | net/netrom/nr_route.c | if (nr_neigh->digipeat != NULL) |
nr_neigh | 277 | net/netrom/nr_route.c | kfree_s(nr_neigh->digipeat, sizeof(ax25_digi)); |
nr_neigh | 278 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(struct nr_neigh)); |
nr_neigh | 295 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 304 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 305 | net/netrom/nr_route.c | if (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 308 | net/netrom/nr_route.c | if (nr_neigh == NULL) return -EINVAL; |
nr_neigh | 311 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 312 | net/netrom/nr_route.c | nr_neigh->count--; |
nr_neigh | 314 | net/netrom/nr_route.c | if (nr_neigh->count == 0 && !nr_neigh->locked) |
nr_neigh | 315 | net/netrom/nr_route.c | nr_remove_neigh(nr_neigh); |
nr_neigh | 344 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 347 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) { |
nr_neigh | 348 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) { |
nr_neigh | 349 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 350 | net/netrom/nr_route.c | nr_neigh->locked = 1; |
nr_neigh | 355 | net/netrom/nr_route.c | if ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL) |
nr_neigh | 358 | net/netrom/nr_route.c | memcpy(&nr_neigh->callsign, callsign, sizeof(ax25_address)); |
nr_neigh | 360 | net/netrom/nr_route.c | nr_neigh->digipeat= NULL; |
nr_neigh | 361 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
nr_neigh | 362 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 363 | net/netrom/nr_route.c | nr_neigh->locked = 1; |
nr_neigh | 364 | net/netrom/nr_route.c | nr_neigh->count = 0; |
nr_neigh | 365 | net/netrom/nr_route.c | nr_neigh->number = nr_neigh_no++; |
nr_neigh | 370 | net/netrom/nr_route.c | nr_neigh->next = nr_neigh_list; |
nr_neigh | 371 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh; |
nr_neigh | 384 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 386 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 387 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 390 | net/netrom/nr_route.c | if (nr_neigh == NULL) return -EINVAL; |
nr_neigh | 392 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 393 | net/netrom/nr_route.c | nr_neigh->locked = 0; |
nr_neigh | 395 | net/netrom/nr_route.c | if (nr_neigh->count == 0) |
nr_neigh | 396 | net/netrom/nr_route.c | nr_remove_neigh(nr_neigh); |
nr_neigh | 408 | net/netrom/nr_route.c | struct nr_neigh *t, *nr_neigh; |
nr_neigh | 425 | net/netrom/nr_route.c | nr_neigh = nr_neigh_list; |
nr_neigh | 427 | net/netrom/nr_route.c | while (nr_neigh != NULL) { |
nr_neigh | 428 | net/netrom/nr_route.c | t = nr_neigh; |
nr_neigh | 429 | net/netrom/nr_route.c | nr_neigh = nr_neigh->next; |
nr_neigh | 472 | net/netrom/nr_route.c | struct nr_neigh *s, *nr_neigh = nr_neigh_list; |
nr_neigh | 476 | net/netrom/nr_route.c | while (nr_neigh != NULL) { |
nr_neigh | 477 | net/netrom/nr_route.c | s = nr_neigh; |
nr_neigh | 478 | net/netrom/nr_route.c | nr_neigh = nr_neigh->next; |
nr_neigh | 632 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 635 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 636 | net/netrom/nr_route.c | if (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 639 | net/netrom/nr_route.c | if (nr_neigh == NULL) return; |
nr_neigh | 642 | net/netrom/nr_route.c | if (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number) |
nr_neigh | 654 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 689 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 690 | net/netrom/nr_route.c | if (nr_neigh->number == nr_node->routes[nr_node->which].neighbour) |
nr_neigh | 693 | net/netrom/nr_route.c | if (nr_neigh == NULL) |
nr_neigh | 707 | net/netrom/nr_route.c | ax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev); |
nr_neigh | 765 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 774 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) { |
nr_neigh | 776 | net/netrom/nr_route.c | nr_neigh->number, |
nr_neigh | 777 | net/netrom/nr_route.c | ax2asc(&nr_neigh->callsign), |
nr_neigh | 778 | net/netrom/nr_route.c | nr_neigh->dev ? nr_neigh->dev->name : "???", |
nr_neigh | 779 | net/netrom/nr_route.c | nr_neigh->quality, |
nr_neigh | 780 | net/netrom/nr_route.c | nr_neigh->locked, |
nr_neigh | 781 | net/netrom/nr_route.c | nr_neigh->count); |