Lines Matching refs:ta
6550 ipftuneable_t *ta, **tap; local
6552 for (ta = ifs->ifs_ipf_tuneables; ta->ipft_name != NULL; ta++)
6553 if (ta == cookie) {
6563 if ((ta + 1)->ipft_name != NULL)
6564 *next = ta + 1;
6568 return ta;
6571 for (tap = &ifs->ifs_ipf_tunelist; (ta = *tap) != NULL; tap = &ta->ipft_next)
6574 *next = &ta->ipft_next;
6575 return ta;
6597 ipftuneable_t *ta; local
6599 for (ta = ifs->ifs_ipf_tuneables; ta->ipft_name != NULL; ta++)
6600 if (!strcmp(ta->ipft_name, name)) {
6601 return ta;
6604 for (ta = ifs->ifs_ipf_tunelist; ta != NULL; ta = ta->ipft_next)
6605 if (!strcmp(ta->ipft_name, name)) {
6606 return ta;
6626 ipftuneable_t *ta, **tap; local
6628 ta = fr_findtunebyname(newtune->ipft_name, ifs);
6629 if (ta != NULL)
6655 ipftuneable_t *ta, **tap; local
6657 for (tap = &ifs->ifs_ipf_tunelist; (ta = *tap) != NULL; tap = &ta->ipft_next)
6658 if (ta == oldtune) {
6686 ipftuneable_t *ta; local
6697 ta = NULL;
6712 ta = fr_findtunebycookie(cookie, &tu.ipft_cookie, ifs);
6714 ta = ifs->ifs_ipf_tuneables;
6715 tu.ipft_cookie = ta + 1;
6717 if (ta != NULL) {
6722 if (ta->ipft_sz > sizeof(tu.ipft_un))
6726 if (ta->ipft_sz == sizeof(u_long))
6727 tu.ipft_vlong = *ta->ipft_plong;
6728 else if (ta->ipft_sz == sizeof(u_int))
6729 tu.ipft_vint = *ta->ipft_pint;
6730 else if (ta->ipft_sz == sizeof(u_short))
6731 tu.ipft_vshort = *ta->ipft_pshort;
6732 else if (ta->ipft_sz == sizeof(u_char))
6733 tu.ipft_vchar = *ta->ipft_pchar;
6735 tu.ipft_sz = ta->ipft_sz;
6736 tu.ipft_min = ta->ipft_min;
6737 tu.ipft_max = ta->ipft_max;
6738 tu.ipft_flags = ta->ipft_flags;
6739 bcopy(ta->ipft_name, tu.ipft_name,
6741 strlen(ta->ipft_name) + 1));
6754 ta = fr_findtunebycookie(cookie, NULL, ifs);
6755 if (ta != NULL)
6758 ta = fr_findtunebyname(tu.ipft_name, ifs);
6759 if (ta != NULL)
6770 if (ta->ipft_sz == sizeof(u_long))
6771 tu.ipft_vlong = *ta->ipft_plong;
6772 else if (ta->ipft_sz == sizeof(u_int))
6773 tu.ipft_vint = *ta->ipft_pint;
6774 else if (ta->ipft_sz == sizeof(u_short))
6775 tu.ipft_vshort = *ta->ipft_pshort;
6776 else if (ta->ipft_sz == sizeof(u_char))
6777 tu.ipft_vchar = *ta->ipft_pchar;
6778 tu.ipft_cookie = ta;
6779 tu.ipft_sz = ta->ipft_sz;
6780 tu.ipft_min = ta->ipft_min;
6781 tu.ipft_max = ta->ipft_max;
6782 tu.ipft_flags = ta->ipft_flags;
6793 if (((ta->ipft_flags & IPFT_WRDISABLED) != 0) &&
6800 if (in < ta->ipft_min || in > ta->ipft_max) {
6805 if (ta->ipft_sz == sizeof(u_long)) {
6806 tu.ipft_vlong = *ta->ipft_plong;
6807 *ta->ipft_plong = in;
6808 } else if (ta->ipft_sz == sizeof(u_int)) {
6809 tu.ipft_vint = *ta->ipft_pint;
6810 *ta->ipft_pint = (u_int)(in & 0xffffffff);
6811 } else if (ta->ipft_sz == sizeof(u_short)) {
6812 tu.ipft_vshort = *ta->ipft_pshort;
6813 *ta->ipft_pshort = (u_short)(in & 0xffff);
6814 } else if (ta->ipft_sz == sizeof(u_char)) {
6815 tu.ipft_vchar = *ta->ipft_pchar;
6816 *ta->ipft_pchar = (u_char)(in & 0xff);