tag | line | file | source code |
nr_neigh | 83 | 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 | nr_neigh->callsign = *ax25; |
nr_neigh | 92 | net/netrom/nr_route.c | nr_neigh->digipeat = NULL; |
nr_neigh | 93 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
nr_neigh | 94 | net/netrom/nr_route.c | nr_neigh->quality = nr_default.quality; |
nr_neigh | 95 | net/netrom/nr_route.c | nr_neigh->locked = 0; |
nr_neigh | 96 | net/netrom/nr_route.c | nr_neigh->count = 0; |
nr_neigh | 97 | net/netrom/nr_route.c | nr_neigh->number = nr_neigh_no++; |
nr_neigh | 100 | net/netrom/nr_route.c | if ((nr_neigh->digipeat = kmalloc(sizeof(*ax25_digi), GFP_KERNEL)) == NULL) { |
nr_neigh | 101 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(*nr_neigh)); |
nr_neigh | 104 | net/netrom/nr_route.c | *nr_neigh->digipeat = *ax25_digi; |
nr_neigh | 110 | net/netrom/nr_route.c | nr_neigh->next = nr_neigh_list; |
nr_neigh | 111 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh; |
nr_neigh | 128 | net/netrom/nr_route.c | nr_node->routes[0].neighbour = nr_neigh->number; |
nr_neigh | 138 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 144 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 160 | net/netrom/nr_route.c | nr_node->routes[0].neighbour = nr_neigh->number; |
nr_neigh | 163 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 169 | net/netrom/nr_route.c | nr_node->routes[2].neighbour = nr_neigh->number; |
nr_neigh | 171 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 215 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 254 | net/netrom/nr_route.c | static void nr_remove_neigh(struct nr_neigh *nr_neigh) |
nr_neigh | 256 | net/netrom/nr_route.c | struct nr_neigh *s; |
nr_neigh | 262 | net/netrom/nr_route.c | if ((s = nr_neigh_list) == nr_neigh) { |
nr_neigh | 263 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh->next; |
nr_neigh | 265 | net/netrom/nr_route.c | if (nr_neigh->digipeat != NULL) |
nr_neigh | 266 | net/netrom/nr_route.c | kfree_s(nr_neigh->digipeat, sizeof(ax25_digi)); |
nr_neigh | 267 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(struct nr_neigh)); |
nr_neigh | 272 | net/netrom/nr_route.c | if (s->next == nr_neigh) { |
nr_neigh | 273 | net/netrom/nr_route.c | s->next = nr_neigh->next; |
nr_neigh | 275 | net/netrom/nr_route.c | if (nr_neigh->digipeat != NULL) |
nr_neigh | 276 | net/netrom/nr_route.c | kfree_s(nr_neigh->digipeat, sizeof(ax25_digi)); |
nr_neigh | 277 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(struct nr_neigh)); |
nr_neigh | 294 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 303 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 304 | net/netrom/nr_route.c | if (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 307 | net/netrom/nr_route.c | if (nr_neigh == NULL) return -EINVAL; |
nr_neigh | 310 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 311 | net/netrom/nr_route.c | nr_neigh->count--; |
nr_neigh | 313 | net/netrom/nr_route.c | if (nr_neigh->count == 0 && !nr_neigh->locked) |
nr_neigh | 314 | net/netrom/nr_route.c | nr_remove_neigh(nr_neigh); |
nr_neigh | 343 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 346 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) { |
nr_neigh | 347 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) { |
nr_neigh | 348 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 349 | net/netrom/nr_route.c | nr_neigh->locked = 1; |
nr_neigh | 354 | net/netrom/nr_route.c | if ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL) |
nr_neigh | 357 | net/netrom/nr_route.c | nr_neigh->callsign = *callsign; |
nr_neigh | 358 | net/netrom/nr_route.c | nr_neigh->digipeat = NULL; |
nr_neigh | 359 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
nr_neigh | 360 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 361 | net/netrom/nr_route.c | nr_neigh->locked = 1; |
nr_neigh | 362 | net/netrom/nr_route.c | nr_neigh->count = 0; |
nr_neigh | 363 | net/netrom/nr_route.c | nr_neigh->number = nr_neigh_no++; |
nr_neigh | 368 | net/netrom/nr_route.c | nr_neigh->next = nr_neigh_list; |
nr_neigh | 369 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh; |
nr_neigh | 382 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 384 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 385 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 388 | net/netrom/nr_route.c | if (nr_neigh == NULL) return -EINVAL; |
nr_neigh | 390 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 391 | net/netrom/nr_route.c | nr_neigh->locked = 0; |
nr_neigh | 393 | net/netrom/nr_route.c | if (nr_neigh->count == 0) |
nr_neigh | 394 | net/netrom/nr_route.c | nr_remove_neigh(nr_neigh); |
nr_neigh | 406 | net/netrom/nr_route.c | struct nr_neigh *t, *nr_neigh; |
nr_neigh | 423 | net/netrom/nr_route.c | nr_neigh = nr_neigh_list; |
nr_neigh | 425 | net/netrom/nr_route.c | while (nr_neigh != NULL) { |
nr_neigh | 426 | net/netrom/nr_route.c | t = nr_neigh; |
nr_neigh | 427 | net/netrom/nr_route.c | nr_neigh = nr_neigh->next; |
nr_neigh | 470 | net/netrom/nr_route.c | struct nr_neigh *s, *nr_neigh = nr_neigh_list; |
nr_neigh | 474 | net/netrom/nr_route.c | while (nr_neigh != NULL) { |
nr_neigh | 475 | net/netrom/nr_route.c | s = nr_neigh; |
nr_neigh | 476 | net/netrom/nr_route.c | nr_neigh = nr_neigh->next; |
nr_neigh | 630 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 633 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 634 | net/netrom/nr_route.c | if (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 637 | net/netrom/nr_route.c | if (nr_neigh == NULL) return; |
nr_neigh | 640 | net/netrom/nr_route.c | if (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number) |
nr_neigh | 652 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 687 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 688 | net/netrom/nr_route.c | if (nr_neigh->number == nr_node->routes[nr_node->which].neighbour) |
nr_neigh | 691 | net/netrom/nr_route.c | if (nr_neigh == NULL) |
nr_neigh | 705 | 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 | 763 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 772 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) { |
nr_neigh | 774 | net/netrom/nr_route.c | nr_neigh->number, |
nr_neigh | 775 | net/netrom/nr_route.c | ax2asc(&nr_neigh->callsign), |
nr_neigh | 776 | net/netrom/nr_route.c | nr_neigh->dev ? nr_neigh->dev->name : "???", |
nr_neigh | 777 | net/netrom/nr_route.c | nr_neigh->quality, |
nr_neigh | 778 | net/netrom/nr_route.c | nr_neigh->locked, |
nr_neigh | 779 | net/netrom/nr_route.c | nr_neigh->count); |