tag | line | file | source code |
ax25_rt | 82 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 89 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 90 | net/ax25/ax25_route.c | if (count == 0 || (ax25_rt->stamp.tv_sec != 0 && ax25_rt->stamp.tv_sec < oldest->stamp.tv_sec)) |
ax25_rt | 91 | net/ax25/ax25_route.c | oldest = ax25_rt; |
ax25_rt | 93 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) { |
ax25_rt | 94 | net/ax25/ax25_route.c | if (ax25_rt->stamp.tv_sec != 0) |
ax25_rt | 95 | net/ax25/ax25_route.c | ax25_rt->stamp = xtime; |
ax25_rt | 96 | net/ax25/ax25_route.c | ax25_rt->n++; |
ax25_rt | 106 | net/ax25/ax25_route.c | ax25_rt = oldest; |
ax25_rt | 108 | net/ax25/ax25_route.c | if ((ax25_rt = (struct ax25_route *)kmalloc(sizeof(struct ax25_route), GFP_ATOMIC)) == NULL) |
ax25_rt | 112 | net/ax25/ax25_route.c | ax25_rt->callsign = *src; |
ax25_rt | 113 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
ax25_rt | 114 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 115 | net/ax25/ax25_route.c | ax25_rt->stamp = xtime; |
ax25_rt | 116 | net/ax25/ax25_route.c | ax25_rt->n = 1; |
ax25_rt | 117 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ' '; |
ax25_rt | 120 | net/ax25/ax25_route.c | if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { |
ax25_rt | 121 | net/ax25/ax25_route.c | kfree_s(ax25_rt, sizeof(struct ax25_route)); |
ax25_rt | 124 | net/ax25/ax25_route.c | *ax25_rt->digipeat = *digi; |
ax25_rt | 127 | net/ax25/ax25_route.c | if (ax25_rt != oldest) { |
ax25_rt | 131 | net/ax25/ax25_route.c | ax25_rt->next = ax25_route; |
ax25_rt | 132 | net/ax25/ax25_route.c | ax25_route = ax25_rt; |
ax25_rt | 140 | net/ax25/ax25_route.c | struct ax25_route *s, *t, *ax25_rt = ax25_route; |
ax25_rt | 142 | net/ax25/ax25_route.c | while (ax25_rt != NULL) { |
ax25_rt | 143 | net/ax25/ax25_route.c | s = ax25_rt; |
ax25_rt | 144 | net/ax25/ax25_route.c | ax25_rt = ax25_rt->next; |
ax25_rt | 170 | net/ax25/ax25_route.c | struct ax25_route *s, *t, *ax25_rt; |
ax25_rt | 184 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 185 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == dev) { |
ax25_rt | 186 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) { |
ax25_rt | 187 | net/ax25/ax25_route.c | kfree_s(ax25_rt->digipeat, sizeof(ax25_digi)); |
ax25_rt | 188 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 191 | net/ax25/ax25_route.c | if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) |
ax25_rt | 193 | net/ax25/ax25_route.c | ax25_rt->digipeat->lastrepeat = 0; |
ax25_rt | 194 | net/ax25/ax25_route.c | ax25_rt->digipeat->ndigi = route.digi_count; |
ax25_rt | 196 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
ax25_rt | 197 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
ax25_rt | 200 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec = 0; |
ax25_rt | 204 | net/ax25/ax25_route.c | if ((ax25_rt = (struct ax25_route *)kmalloc(sizeof(struct ax25_route), GFP_ATOMIC)) == NULL) |
ax25_rt | 206 | net/ax25/ax25_route.c | ax25_rt->callsign = route.dest_addr; |
ax25_rt | 207 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
ax25_rt | 208 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 209 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec = 0; |
ax25_rt | 210 | net/ax25/ax25_route.c | ax25_rt->n = 0; |
ax25_rt | 211 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ' '; |
ax25_rt | 213 | net/ax25/ax25_route.c | if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { |
ax25_rt | 214 | net/ax25/ax25_route.c | kfree_s(ax25_rt, sizeof(struct ax25_route)); |
ax25_rt | 217 | net/ax25/ax25_route.c | ax25_rt->digipeat->lastrepeat = 0; |
ax25_rt | 218 | net/ax25/ax25_route.c | ax25_rt->digipeat->ndigi = route.digi_count; |
ax25_rt | 220 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
ax25_rt | 221 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
ax25_rt | 226 | net/ax25/ax25_route.c | ax25_rt->next = ax25_route; |
ax25_rt | 227 | net/ax25/ax25_route.c | ax25_route = ax25_rt; |
ax25_rt | 237 | net/ax25/ax25_route.c | ax25_rt = ax25_route; |
ax25_rt | 238 | net/ax25/ax25_route.c | while (ax25_rt != NULL) { |
ax25_rt | 239 | net/ax25/ax25_route.c | s = ax25_rt; |
ax25_rt | 240 | net/ax25/ax25_route.c | ax25_rt = ax25_rt->next; |
ax25_rt | 268 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 279 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 280 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0) |
ax25_rt | 283 | net/ax25/ax25_route.c | callsign = ax2asc(&ax25_rt->callsign); |
ax25_rt | 286 | net/ax25/ax25_route.c | ax25_rt->dev ? ax25_rt->dev->name : "???", |
ax25_rt | 287 | net/ax25/ax25_route.c | ax25_rt->n, |
ax25_rt | 288 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec); |
ax25_rt | 290 | net/ax25/ax25_route.c | switch (ax25_rt->ip_mode) { |
ax25_rt | 304 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) |
ax25_rt | 305 | net/ax25/ax25_route.c | for (i = 0; i < ax25_rt->digipeat->ndigi; i++) |
ax25_rt | 306 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); |
ax25_rt | 373 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 380 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 381 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev != NULL) |
ax25_rt | 382 | net/ax25/ax25_route.c | ax25_spe_rt = ax25_rt; |
ax25_rt | 383 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev != NULL) |
ax25_rt | 384 | net/ax25/ax25_route.c | ax25_def_rt = ax25_rt; |
ax25_rt | 388 | net/ax25/ax25_route.c | ax25_rt = ax25_spe_rt; |
ax25_rt | 390 | net/ax25/ax25_route.c | ax25_rt = ax25_def_rt; |
ax25_rt | 402 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) { |
ax25_rt | 405 | net/ax25/ax25_route.c | *ax25->digipeat = *ax25_rt->digipeat; |
ax25_rt | 419 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 421 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 422 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->digipeat != NULL) { |
ax25_rt | 423 | net/ax25/ax25_route.c | if (ax25_rt->dev == NULL) |
ax25_rt | 429 | net/ax25/ax25_route.c | ax25->device = ax25_rt->dev; |
ax25_rt | 430 | net/ax25/ax25_route.c | *ax25->digipeat = *ax25_rt->digipeat; |
ax25_rt | 441 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 446 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 447 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev == dev) { |
ax25_rt | 448 | net/ax25/ax25_route.c | if (ax25_rt->digipeat == NULL) |
ax25_rt | 451 | net/ax25/ax25_route.c | len = ax25_rt->digipeat->ndigi * AX25_ADDR_LEN; |
ax25_rt | 465 | net/ax25/ax25_route.c | build_ax25_addr(bp, &src, &dest, ax25_rt->digipeat, C_COMMAND, MODULUS); |
ax25_rt | 478 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 480 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 481 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) { |
ax25_rt | 482 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ip_mode; |
ax25_rt | 493 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 495 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) |
ax25_rt | 496 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) |
ax25_rt | 497 | net/ax25/ax25_route.c | return ax25_rt->ip_mode; |