Lines Matching refs:ta

6552 	ipftuneable_t *ta, **tap;
6554 for (ta = ifs->ifs_ipf_tuneables; ta->ipft_name != NULL; ta++)
6555 if (ta == cookie) {
6565 if ((ta + 1)->ipft_name != NULL)
6566 *next = ta + 1;
6570 return ta;
6573 for (tap = &ifs->ifs_ipf_tunelist; (ta = *tap) != NULL; tap = &ta->ipft_next)
6576 *next = &ta->ipft_next;
6577 return ta;
6599 ipftuneable_t *ta;
6601 for (ta = ifs->ifs_ipf_tuneables; ta->ipft_name != NULL; ta++)
6602 if (!strcmp(ta->ipft_name, name)) {
6603 return ta;
6606 for (ta = ifs->ifs_ipf_tunelist; ta != NULL; ta = ta->ipft_next)
6607 if (!strcmp(ta->ipft_name, name)) {
6608 return ta;
6628 ipftuneable_t *ta, **tap;
6630 ta = fr_findtunebyname(newtune->ipft_name, ifs);
6631 if (ta != NULL)
6657 ipftuneable_t *ta, **tap;
6659 for (tap = &ifs->ifs_ipf_tunelist; (ta = *tap) != NULL; tap = &ta->ipft_next)
6660 if (ta == oldtune) {
6688 ipftuneable_t *ta;
6699 ta = NULL;
6714 ta = fr_findtunebycookie(cookie, &tu.ipft_cookie, ifs);
6716 ta = ifs->ifs_ipf_tuneables;
6717 tu.ipft_cookie = ta + 1;
6719 if (ta != NULL) {
6724 if (ta->ipft_sz > sizeof(tu.ipft_un))
6728 if (ta->ipft_sz == sizeof(u_long))
6729 tu.ipft_vlong = *ta->ipft_plong;
6730 else if (ta->ipft_sz == sizeof(u_int))
6731 tu.ipft_vint = *ta->ipft_pint;
6732 else if (ta->ipft_sz == sizeof(u_short))
6733 tu.ipft_vshort = *ta->ipft_pshort;
6734 else if (ta->ipft_sz == sizeof(u_char))
6735 tu.ipft_vchar = *ta->ipft_pchar;
6737 tu.ipft_sz = ta->ipft_sz;
6738 tu.ipft_min = ta->ipft_min;
6739 tu.ipft_max = ta->ipft_max;
6740 tu.ipft_flags = ta->ipft_flags;
6741 bcopy(ta->ipft_name, tu.ipft_name,
6743 strlen(ta->ipft_name) + 1));
6756 ta = fr_findtunebycookie(cookie, NULL, ifs);
6757 if (ta != NULL)
6760 ta = fr_findtunebyname(tu.ipft_name, ifs);
6761 if (ta != NULL)
6772 if (ta->ipft_sz == sizeof(u_long))
6773 tu.ipft_vlong = *ta->ipft_plong;
6774 else if (ta->ipft_sz == sizeof(u_int))
6775 tu.ipft_vint = *ta->ipft_pint;
6776 else if (ta->ipft_sz == sizeof(u_short))
6777 tu.ipft_vshort = *ta->ipft_pshort;
6778 else if (ta->ipft_sz == sizeof(u_char))
6779 tu.ipft_vchar = *ta->ipft_pchar;
6780 tu.ipft_cookie = ta;
6781 tu.ipft_sz = ta->ipft_sz;
6782 tu.ipft_min = ta->ipft_min;
6783 tu.ipft_max = ta->ipft_max;
6784 tu.ipft_flags = ta->ipft_flags;
6795 if (((ta->ipft_flags & IPFT_WRDISABLED) != 0) &&
6802 if (in < ta->ipft_min || in > ta->ipft_max) {
6807 if (ta->ipft_sz == sizeof(u_long)) {
6808 tu.ipft_vlong = *ta->ipft_plong;
6809 *ta->ipft_plong = in;
6810 } else if (ta->ipft_sz == sizeof(u_int)) {
6811 tu.ipft_vint = *ta->ipft_pint;
6812 *ta->ipft_pint = (u_int)(in & 0xffffffff);
6813 } else if (ta->ipft_sz == sizeof(u_short)) {
6814 tu.ipft_vshort = *ta->ipft_pshort;
6815 *ta->ipft_pshort = (u_short)(in & 0xffff);
6816 } else if (ta->ipft_sz == sizeof(u_char)) {
6817 tu.ipft_vchar = *ta->ipft_pchar;
6818 *ta->ipft_pchar = (u_char)(in & 0xff);