tag | line | file | source code |
ax25_parms | 517 | net/ax25/ax25_route.c | struct ax25_parms_struct ax25_parms; |
ax25_parms | 526 | net/ax25/ax25_route.c | if ((err = verify_area(VERIFY_READ, arg, sizeof(ax25_parms))) != 0) |
ax25_parms | 528 | net/ax25/ax25_route.c | memcpy_fromfs(&ax25_parms, arg, sizeof(ax25_parms)); |
ax25_parms | 529 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL) |
ax25_parms | 533 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_IPDEFMODE] != 'D' && |
ax25_parms | 534 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_IPDEFMODE] != 'V') |
ax25_parms | 536 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_AXDEFMODE] != MODULUS && |
ax25_parms | 537 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_AXDEFMODE] != EMODULUS) |
ax25_parms | 539 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_NETROM] != 0 && |
ax25_parms | 540 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_NETROM] != 1) |
ax25_parms | 542 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_TEXT] != 0 && |
ax25_parms | 543 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_TEXT] != 1) |
ax25_parms | 545 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_BACKOFF] != 'E' && |
ax25_parms | 546 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_BACKOFF] != 'L') |
ax25_parms | 548 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_CONMODE] != 0 && |
ax25_parms | 549 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_CONMODE] != 1) |
ax25_parms | 551 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_WINDOW] < 1 || |
ax25_parms | 552 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_WINDOW] > 7) |
ax25_parms | 554 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_EWINDOW] < 1 || |
ax25_parms | 555 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_EWINDOW] > 63) |
ax25_parms | 557 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_T1] < 1) |
ax25_parms | 559 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_T2] < 1) |
ax25_parms | 561 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_T3] < 1) |
ax25_parms | 563 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_N2] < 1 || |
ax25_parms | 564 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_N2] > 31) |
ax25_parms | 566 | net/ax25/ax25_route.c | if ((ax25_parms.values[AX25_VALUES_DIGI] & |
ax25_parms | 569 | net/ax25/ax25_route.c | memcpy(ax25_dev->values, ax25_parms.values, AX25_MAX_VALUES * sizeof(short)); |
ax25_parms | 579 | net/ax25/ax25_route.c | memcpy_fromfs(&ax25_parms, arg, sizeof(ax25_parms)); |
ax25_parms | 580 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL) |
ax25_parms | 584 | net/ax25/ax25_route.c | memcpy(ax25_parms.values, ax25_dev->values, AX25_MAX_VALUES * sizeof(short)); |
ax25_parms | 585 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T1] *= 2; |
ax25_parms | 586 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T1] /= PR_SLOWHZ; |
ax25_parms | 587 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T2] /= PR_SLOWHZ; |
ax25_parms | 588 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T3] /= PR_SLOWHZ; |
ax25_parms | 589 | net/ax25/ax25_route.c | memcpy_tofs(arg, &ax25_parms, sizeof(ax25_parms)); |