tag | line | file | source code |
ax25_parms | 736 | net/ax25/ax25_route.c | struct ax25_parms_struct ax25_parms; |
ax25_parms | 745 | net/ax25/ax25_route.c | if ((err = verify_area(VERIFY_READ, arg, sizeof(ax25_parms))) != 0) |
ax25_parms | 747 | net/ax25/ax25_route.c | memcpy_fromfs(&ax25_parms, arg, sizeof(ax25_parms)); |
ax25_parms | 748 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL) |
ax25_parms | 752 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_IPDEFMODE] != 'D' && |
ax25_parms | 753 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_IPDEFMODE] != 'V') |
ax25_parms | 755 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_AXDEFMODE] != MODULUS && |
ax25_parms | 756 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_AXDEFMODE] != EMODULUS) |
ax25_parms | 758 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_NETROM] != 0 && |
ax25_parms | 759 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_NETROM] != 1) |
ax25_parms | 761 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_TEXT] != 0 && |
ax25_parms | 762 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_TEXT] != 1) |
ax25_parms | 764 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_BACKOFF] != 'E' && |
ax25_parms | 765 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_BACKOFF] != 'L') |
ax25_parms | 767 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_CONMODE] != 0 && |
ax25_parms | 768 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_CONMODE] != 1) |
ax25_parms | 770 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_WINDOW] < 1 || |
ax25_parms | 771 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_WINDOW] > 7) |
ax25_parms | 773 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_EWINDOW] < 1 || |
ax25_parms | 774 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_EWINDOW] > 63) |
ax25_parms | 776 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_T1] < 1) |
ax25_parms | 778 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_T2] < 1) |
ax25_parms | 780 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_T3] < 1) |
ax25_parms | 782 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_IDLE] > 100) |
ax25_parms | 784 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_N2] < 1 || |
ax25_parms | 785 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_N2] > 31) |
ax25_parms | 787 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_PACLEN] < 22) |
ax25_parms | 789 | net/ax25/ax25_route.c | if ((ax25_parms.values[AX25_VALUES_DIGI] & |
ax25_parms | 792 | net/ax25/ax25_route.c | if (ax25_parms.values[AX25_VALUES_IPMAXQUEUE] < 1) |
ax25_parms | 794 | net/ax25/ax25_route.c | memcpy(ax25_dev->values, ax25_parms.values, AX25_MAX_VALUES * sizeof(short)); |
ax25_parms | 805 | net/ax25/ax25_route.c | memcpy_fromfs(&ax25_parms, arg, sizeof(ax25_parms)); |
ax25_parms | 806 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL) |
ax25_parms | 810 | net/ax25/ax25_route.c | memcpy(ax25_parms.values, ax25_dev->values, AX25_MAX_VALUES * sizeof(short)); |
ax25_parms | 811 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T1] *= 2; |
ax25_parms | 812 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T1] /= PR_SLOWHZ; |
ax25_parms | 813 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T2] /= PR_SLOWHZ; |
ax25_parms | 814 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_T3] /= PR_SLOWHZ; |
ax25_parms | 815 | net/ax25/ax25_route.c | ax25_parms.values[AX25_VALUES_IDLE] /= PR_SLOWHZ * 60; |
ax25_parms | 816 | net/ax25/ax25_route.c | memcpy_tofs(arg, &ax25_parms, sizeof(ax25_parms)); |