tag | line | file | source code |
nr_neigh | 76 | include/net/netrom.h | struct nr_neigh *next; |
nr_neigh | 58 | net/netrom/nr_route.c | static struct nr_neigh *nr_neigh_list = NULL; |
nr_neigh | 68 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 77 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 78 | net/netrom/nr_route.c | if (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 81 | net/netrom/nr_route.c | if (quality == 0 && nr_neigh != NULL && nr_node != NULL) |
nr_neigh | 84 | net/netrom/nr_route.c | if (nr_neigh == NULL) { |
nr_neigh | 85 | net/netrom/nr_route.c | if ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL) |
nr_neigh | 88 | net/netrom/nr_route.c | memcpy(&nr_neigh->callsign, ax25, sizeof(ax25_address)); |
nr_neigh | 90 | net/netrom/nr_route.c | nr_neigh->digipeat= NULL; |
nr_neigh | 91 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
nr_neigh | 92 | net/netrom/nr_route.c | nr_neigh->quality = nr_default.quality; |
nr_neigh | 93 | net/netrom/nr_route.c | nr_neigh->locked = 0; |
nr_neigh | 94 | net/netrom/nr_route.c | nr_neigh->count = 0; |
nr_neigh | 95 | net/netrom/nr_route.c | nr_neigh->number = nr_neigh_no++; |
nr_neigh | 98 | net/netrom/nr_route.c | if ((nr_neigh->digipeat = kmalloc(sizeof(*ax25_digi), GFP_KERNEL)) == NULL) { |
nr_neigh | 99 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(*nr_neigh)); |
nr_neigh | 102 | net/netrom/nr_route.c | memcpy(nr_neigh->digipeat, ax25_digi, sizeof(*ax25_digi)); |
nr_neigh | 108 | net/netrom/nr_route.c | nr_neigh->next = nr_neigh_list; |
nr_neigh | 109 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh; |
nr_neigh | 126 | net/netrom/nr_route.c | nr_node->routes[0].neighbour = nr_neigh->number; |
nr_neigh | 136 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 142 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 158 | net/netrom/nr_route.c | nr_node->routes[0].neighbour = nr_neigh->number; |
nr_neigh | 161 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 167 | net/netrom/nr_route.c | nr_node->routes[2].neighbour = nr_neigh->number; |
nr_neigh | 169 | net/netrom/nr_route.c | nr_neigh->count++; |
nr_neigh | 213 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 252 | net/netrom/nr_route.c | static void nr_remove_neigh(struct nr_neigh *nr_neigh) |
nr_neigh | 254 | net/netrom/nr_route.c | struct nr_neigh *s; |
nr_neigh | 260 | net/netrom/nr_route.c | if ((s = nr_neigh_list) == nr_neigh) { |
nr_neigh | 261 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh->next; |
nr_neigh | 263 | net/netrom/nr_route.c | if (nr_neigh->digipeat != NULL) |
nr_neigh | 264 | net/netrom/nr_route.c | kfree_s(nr_neigh->digipeat, sizeof(ax25_digi)); |
nr_neigh | 265 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(struct nr_neigh)); |
nr_neigh | 270 | net/netrom/nr_route.c | if (s->next == nr_neigh) { |
nr_neigh | 271 | net/netrom/nr_route.c | s->next = nr_neigh->next; |
nr_neigh | 273 | net/netrom/nr_route.c | if (nr_neigh->digipeat != NULL) |
nr_neigh | 274 | net/netrom/nr_route.c | kfree_s(nr_neigh->digipeat, sizeof(ax25_digi)); |
nr_neigh | 275 | net/netrom/nr_route.c | kfree_s(nr_neigh, sizeof(struct nr_neigh)); |
nr_neigh | 292 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 301 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 302 | net/netrom/nr_route.c | if (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 305 | net/netrom/nr_route.c | if (nr_neigh == NULL) return -EINVAL; |
nr_neigh | 308 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
nr_neigh | 309 | net/netrom/nr_route.c | nr_neigh->count--; |
nr_neigh | 311 | net/netrom/nr_route.c | if (nr_neigh->count == 0 && !nr_neigh->locked) |
nr_neigh | 312 | net/netrom/nr_route.c | nr_remove_neigh(nr_neigh); |
nr_neigh | 341 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 344 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) { |
nr_neigh | 345 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) { |
nr_neigh | 346 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 347 | net/netrom/nr_route.c | nr_neigh->locked = 1; |
nr_neigh | 352 | net/netrom/nr_route.c | if ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL) |
nr_neigh | 355 | net/netrom/nr_route.c | memcpy(&nr_neigh->callsign, callsign, sizeof(ax25_address)); |
nr_neigh | 357 | net/netrom/nr_route.c | nr_neigh->digipeat= NULL; |
nr_neigh | 358 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
nr_neigh | 359 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 360 | net/netrom/nr_route.c | nr_neigh->locked = 1; |
nr_neigh | 361 | net/netrom/nr_route.c | nr_neigh->count = 0; |
nr_neigh | 362 | net/netrom/nr_route.c | nr_neigh->number = nr_neigh_no++; |
nr_neigh | 367 | net/netrom/nr_route.c | nr_neigh->next = nr_neigh_list; |
nr_neigh | 368 | net/netrom/nr_route.c | nr_neigh_list = nr_neigh; |
nr_neigh | 381 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 383 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 384 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 387 | net/netrom/nr_route.c | if (nr_neigh == NULL) return -EINVAL; |
nr_neigh | 389 | net/netrom/nr_route.c | nr_neigh->quality = quality; |
nr_neigh | 390 | net/netrom/nr_route.c | nr_neigh->locked = 0; |
nr_neigh | 392 | net/netrom/nr_route.c | if (nr_neigh->count == 0) |
nr_neigh | 393 | net/netrom/nr_route.c | nr_remove_neigh(nr_neigh); |
nr_neigh | 405 | net/netrom/nr_route.c | struct nr_neigh *t, *nr_neigh; |
nr_neigh | 422 | net/netrom/nr_route.c | nr_neigh = nr_neigh_list; |
nr_neigh | 424 | net/netrom/nr_route.c | while (nr_neigh != NULL) { |
nr_neigh | 425 | net/netrom/nr_route.c | t = nr_neigh; |
nr_neigh | 426 | net/netrom/nr_route.c | nr_neigh = nr_neigh->next; |
nr_neigh | 469 | net/netrom/nr_route.c | struct nr_neigh *s, *nr_neigh = nr_neigh_list; |
nr_neigh | 473 | net/netrom/nr_route.c | while (nr_neigh != NULL) { |
nr_neigh | 474 | net/netrom/nr_route.c | s = nr_neigh; |
nr_neigh | 475 | net/netrom/nr_route.c | nr_neigh = nr_neigh->next; |
nr_neigh | 620 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 623 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 624 | net/netrom/nr_route.c | if (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev) |
nr_neigh | 627 | net/netrom/nr_route.c | if (nr_neigh == NULL) return; |
nr_neigh | 630 | net/netrom/nr_route.c | if (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number) |
nr_neigh | 641 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 666 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) |
nr_neigh | 667 | net/netrom/nr_route.c | if (nr_neigh->number == nr_node->routes[nr_node->which].neighbour) |
nr_neigh | 670 | net/netrom/nr_route.c | if (nr_neigh == NULL) |
nr_neigh | 679 | 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 | 735 | net/netrom/nr_route.c | struct nr_neigh *nr_neigh; |
nr_neigh | 744 | net/netrom/nr_route.c | for (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) { |
nr_neigh | 746 | net/netrom/nr_route.c | nr_neigh->number, |
nr_neigh | 747 | net/netrom/nr_route.c | ax2asc(&nr_neigh->callsign), |
nr_neigh | 748 | net/netrom/nr_route.c | nr_neigh->dev ? nr_neigh->dev->name : "???", |
nr_neigh | 749 | net/netrom/nr_route.c | nr_neigh->quality, |
nr_neigh | 750 | net/netrom/nr_route.c | nr_neigh->locked, |
nr_neigh | 751 | net/netrom/nr_route.c | nr_neigh->count); |