tag | line | file | source code |
ax25_rt | 121 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 128 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 129 | net/ax25/ax25_route.c | if (count == 0 || oldest->stamp.tv_sec == 0 || (ax25_rt->stamp.tv_sec != 0 && ax25_rt->stamp.tv_sec < oldest->stamp.tv_sec)) |
ax25_rt | 130 | net/ax25/ax25_route.c | oldest = ax25_rt; |
ax25_rt | 132 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, src) == 0) { |
ax25_rt | 133 | net/ax25/ax25_route.c | if (ax25_rt->stamp.tv_sec != 0) |
ax25_rt | 134 | net/ax25/ax25_route.c | ax25_rt->stamp = xtime; |
ax25_rt | 136 | net/ax25/ax25_route.c | if (ax25_rt->perm == AX25_RT_PERMANENT) { |
ax25_rt | 137 | net/ax25/ax25_route.c | ax25_rt->n++; |
ax25_rt | 141 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
ax25_rt | 144 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) { |
ax25_rt | 145 | net/ax25/ax25_route.c | kfree_s(ax25_rt->digipeat, sizeof(ax25_digi)); |
ax25_rt | 146 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 151 | net/ax25/ax25_route.c | if (ax25_rt->digipeat == NULL && (ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) |
ax25_rt | 154 | net/ax25/ax25_route.c | ax25_route_invert(digi, ax25_rt->digipeat); |
ax25_rt | 166 | net/ax25/ax25_route.c | ax25_rt = oldest; |
ax25_rt | 168 | net/ax25/ax25_route.c | if ((ax25_rt = (struct ax25_route *)kmalloc(sizeof(struct ax25_route), GFP_ATOMIC)) == NULL) |
ax25_rt | 172 | net/ax25/ax25_route.c | ax25_rt->callsign = *src; |
ax25_rt | 173 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
ax25_rt | 174 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 175 | net/ax25/ax25_route.c | ax25_rt->stamp = xtime; |
ax25_rt | 176 | net/ax25/ax25_route.c | ax25_rt->n = 1; |
ax25_rt | 177 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ' '; |
ax25_rt | 178 | net/ax25/ax25_route.c | ax25_rt->perm = AX25_RT_DYNAMIC; |
ax25_rt | 181 | net/ax25/ax25_route.c | if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { |
ax25_rt | 182 | net/ax25/ax25_route.c | kfree_s(ax25_rt, sizeof(struct ax25_route)); |
ax25_rt | 186 | net/ax25/ax25_route.c | ax25_route_invert(digi, ax25_rt->digipeat); |
ax25_rt | 190 | net/ax25/ax25_route.c | if (ax25_rt != oldest) { |
ax25_rt | 194 | net/ax25/ax25_route.c | ax25_rt->next = ax25_route; |
ax25_rt | 195 | net/ax25/ax25_route.c | ax25_route = ax25_rt; |
ax25_rt | 203 | net/ax25/ax25_route.c | struct ax25_route *s, *t, *ax25_rt = ax25_route; |
ax25_rt | 205 | net/ax25/ax25_route.c | while (ax25_rt != NULL) { |
ax25_rt | 206 | net/ax25/ax25_route.c | s = ax25_rt; |
ax25_rt | 207 | net/ax25/ax25_route.c | ax25_rt = ax25_rt->next; |
ax25_rt | 233 | net/ax25/ax25_route.c | struct ax25_route *s, *t, *ax25_rt; |
ax25_rt | 248 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 249 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == dev) { |
ax25_rt | 250 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) { |
ax25_rt | 251 | net/ax25/ax25_route.c | kfree_s(ax25_rt->digipeat, sizeof(ax25_digi)); |
ax25_rt | 252 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 255 | net/ax25/ax25_route.c | if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) |
ax25_rt | 257 | net/ax25/ax25_route.c | ax25_rt->digipeat->lastrepeat = 0; |
ax25_rt | 258 | net/ax25/ax25_route.c | ax25_rt->digipeat->ndigi = route.digi_count; |
ax25_rt | 260 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
ax25_rt | 261 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
ax25_rt | 264 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec = 0; |
ax25_rt | 268 | net/ax25/ax25_route.c | if ((ax25_rt = (struct ax25_route *)kmalloc(sizeof(struct ax25_route), GFP_ATOMIC)) == NULL) |
ax25_rt | 270 | net/ax25/ax25_route.c | ax25_rt->callsign = route.dest_addr; |
ax25_rt | 271 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
ax25_rt | 272 | net/ax25/ax25_route.c | ax25_rt->digipeat = NULL; |
ax25_rt | 273 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec = 0; |
ax25_rt | 274 | net/ax25/ax25_route.c | ax25_rt->n = 0; |
ax25_rt | 275 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ' '; |
ax25_rt | 276 | net/ax25/ax25_route.c | ax25_rt->perm = AX25_RT_DYNAMIC; |
ax25_rt | 278 | net/ax25/ax25_route.c | if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { |
ax25_rt | 279 | net/ax25/ax25_route.c | kfree_s(ax25_rt, sizeof(struct ax25_route)); |
ax25_rt | 282 | net/ax25/ax25_route.c | ax25_rt->digipeat->lastrepeat = 0; |
ax25_rt | 283 | net/ax25/ax25_route.c | ax25_rt->digipeat->ndigi = route.digi_count; |
ax25_rt | 285 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
ax25_rt | 286 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
ax25_rt | 291 | net/ax25/ax25_route.c | ax25_rt->next = ax25_route; |
ax25_rt | 292 | net/ax25/ax25_route.c | ax25_route = ax25_rt; |
ax25_rt | 302 | net/ax25/ax25_route.c | ax25_rt = ax25_route; |
ax25_rt | 303 | net/ax25/ax25_route.c | while (ax25_rt != NULL) { |
ax25_rt | 304 | net/ax25/ax25_route.c | s = ax25_rt; |
ax25_rt | 305 | net/ax25/ax25_route.c | ax25_rt = ax25_rt->next; |
ax25_rt | 332 | net/ax25/ax25_route.c | ax25_rt = ax25_route; |
ax25_rt | 333 | net/ax25/ax25_route.c | while (ax25_rt != NULL) { |
ax25_rt | 334 | net/ax25/ax25_route.c | if (ax25_rt->dev == dev && ax25cmp(&rt_option.dest_addr, &ax25_rt->callsign) == 0) { |
ax25_rt | 337 | net/ax25/ax25_route.c | ax25_rt->perm = (char) rt_option.arg; |
ax25_rt | 338 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec = 0; |
ax25_rt | 343 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ' '; |
ax25_rt | 346 | net/ax25/ax25_route.c | ax25_rt->ip_mode = 'D'; |
ax25_rt | 349 | net/ax25/ax25_route.c | ax25_rt->ip_mode = 'V'; |
ax25_rt | 357 | net/ax25/ax25_route.c | ax25_rt = ax25_rt->next; |
ax25_rt | 367 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 378 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 379 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0) |
ax25_rt | 382 | net/ax25/ax25_route.c | callsign = ax2asc(&ax25_rt->callsign); |
ax25_rt | 385 | net/ax25/ax25_route.c | ax25_rt->dev ? ax25_rt->dev->name : "???", |
ax25_rt | 386 | net/ax25/ax25_route.c | ax25_rt->n, |
ax25_rt | 387 | net/ax25/ax25_route.c | ax25_rt->stamp.tv_sec); |
ax25_rt | 389 | net/ax25/ax25_route.c | switch (ax25_rt->ip_mode) { |
ax25_rt | 403 | net/ax25/ax25_route.c | switch (ax25_rt->perm) { |
ax25_rt | 405 | net/ax25/ax25_route.c | if (ax25_rt->stamp.tv_sec == 0) |
ax25_rt | 417 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) |
ax25_rt | 418 | net/ax25/ax25_route.c | for (i = 0; i < ax25_rt->digipeat->ndigi; i++) |
ax25_rt | 419 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); |
ax25_rt | 487 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 493 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 494 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev != NULL) |
ax25_rt | 495 | net/ax25/ax25_route.c | ax25_spe_rt = ax25_rt; |
ax25_rt | 496 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev != NULL) |
ax25_rt | 497 | net/ax25/ax25_route.c | ax25_def_rt = ax25_rt; |
ax25_rt | 530 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 533 | net/ax25/ax25_route.c | if ((ax25_rt = ax25_find_route(addr)) == NULL) |
ax25_rt | 546 | net/ax25/ax25_route.c | if (ax25_rt->digipeat != NULL) { |
ax25_rt | 549 | net/ax25/ax25_route.c | *ax25->digipeat = *ax25_rt->digipeat; |
ax25_rt | 565 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 567 | net/ax25/ax25_route.c | ax25_rt = ax25_find_route(addr); |
ax25_rt | 569 | net/ax25/ax25_route.c | if (ax25_rt == NULL || ax25_rt->digipeat == NULL) |
ax25_rt | 575 | net/ax25/ax25_route.c | ax25->device = ax25_rt->dev; |
ax25_rt | 576 | net/ax25/ax25_route.c | *ax25->digipeat = *ax25_rt->digipeat; |
ax25_rt | 582 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 590 | net/ax25/ax25_route.c | ax25_rt = ax25_find_route(addr); |
ax25_rt | 591 | net/ax25/ax25_route.c | if (ax25_rt == NULL || ax25_rt->digipeat == NULL) |
ax25_rt | 594 | net/ax25/ax25_route.c | digipeat = *ax25_rt->digipeat; |
ax25_rt | 598 | net/ax25/ax25_route.c | len = ax25_rt->digipeat->ndigi * AX25_ADDR_LEN; |
ax25_rt | 610 | net/ax25/ax25_route.c | build_ax25_addr(bp, &src, &dest, ax25_rt->digipeat, C_COMMAND, MODULUS); |
ax25_rt | 619 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 621 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) { |
ax25_rt | 622 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) { |
ax25_rt | 623 | net/ax25/ax25_route.c | ax25_rt->ip_mode = ip_mode; |
ax25_rt | 634 | net/ax25/ax25_route.c | struct ax25_route *ax25_rt; |
ax25_rt | 636 | net/ax25/ax25_route.c | for (ax25_rt = ax25_route; ax25_rt != NULL; ax25_rt = ax25_rt->next) |
ax25_rt | 637 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) |
ax25_rt | 638 | net/ax25/ax25_route.c | return ax25_rt->ip_mode; |