Lines Matching refs:ta

6549 	ipftuneable_t *ta, **tap;  local
6551 for (ta = ifs->ifs_ipf_tuneables; ta->ipft_name != NULL; ta++)
6552 if (ta == cookie) {
6562 if ((ta + 1)->ipft_name != NULL)
6563 *next = ta + 1;
6567 return ta;
6570 for (tap = &ifs->ifs_ipf_tunelist; (ta = *tap) != NULL; tap = &ta->ipft_next)
6573 *next = &ta->ipft_next;
6574 return ta;
6596 ipftuneable_t *ta; local
6598 for (ta = ifs->ifs_ipf_tuneables; ta->ipft_name != NULL; ta++)
6599 if (!strcmp(ta->ipft_name, name)) {
6600 return ta;
6603 for (ta = ifs->ifs_ipf_tunelist; ta != NULL; ta = ta->ipft_next)
6604 if (!strcmp(ta->ipft_name, name)) {
6605 return ta;
6625 ipftuneable_t *ta, **tap; local
6627 ta = fr_findtunebyname(newtune->ipft_name, ifs);
6628 if (ta != NULL)
6654 ipftuneable_t *ta, **tap; local
6656 for (tap = &ifs->ifs_ipf_tunelist; (ta = *tap) != NULL; tap = &ta->ipft_next)
6657 if (ta == oldtune) {
6685 ipftuneable_t *ta; local
6696 ta = NULL;
6711 ta = fr_findtunebycookie(cookie, &tu.ipft_cookie, ifs);
6713 ta = ifs->ifs_ipf_tuneables;
6714 tu.ipft_cookie = ta + 1;
6716 if (ta != NULL) {
6721 if (ta->ipft_sz > sizeof(tu.ipft_un))
6725 if (ta->ipft_sz == sizeof(u_long))
6726 tu.ipft_vlong = *ta->ipft_plong;
6727 else if (ta->ipft_sz == sizeof(u_int))
6728 tu.ipft_vint = *ta->ipft_pint;
6729 else if (ta->ipft_sz == sizeof(u_short))
6730 tu.ipft_vshort = *ta->ipft_pshort;
6731 else if (ta->ipft_sz == sizeof(u_char))
6732 tu.ipft_vchar = *ta->ipft_pchar;
6734 tu.ipft_sz = ta->ipft_sz;
6735 tu.ipft_min = ta->ipft_min;
6736 tu.ipft_max = ta->ipft_max;
6737 tu.ipft_flags = ta->ipft_flags;
6738 bcopy(ta->ipft_name, tu.ipft_name,
6740 strlen(ta->ipft_name) + 1));
6753 ta = fr_findtunebycookie(cookie, NULL, ifs);
6754 if (ta != NULL)
6757 ta = fr_findtunebyname(tu.ipft_name, ifs);
6758 if (ta != NULL)
6769 if (ta->ipft_sz == sizeof(u_long))
6770 tu.ipft_vlong = *ta->ipft_plong;
6771 else if (ta->ipft_sz == sizeof(u_int))
6772 tu.ipft_vint = *ta->ipft_pint;
6773 else if (ta->ipft_sz == sizeof(u_short))
6774 tu.ipft_vshort = *ta->ipft_pshort;
6775 else if (ta->ipft_sz == sizeof(u_char))
6776 tu.ipft_vchar = *ta->ipft_pchar;
6777 tu.ipft_cookie = ta;
6778 tu.ipft_sz = ta->ipft_sz;
6779 tu.ipft_min = ta->ipft_min;
6780 tu.ipft_max = ta->ipft_max;
6781 tu.ipft_flags = ta->ipft_flags;
6792 if (((ta->ipft_flags & IPFT_WRDISABLED) != 0) &&
6799 if (in < ta->ipft_min || in > ta->ipft_max) {
6804 if (ta->ipft_sz == sizeof(u_long)) {
6805 tu.ipft_vlong = *ta->ipft_plong;
6806 *ta->ipft_plong = in;
6807 } else if (ta->ipft_sz == sizeof(u_int)) {
6808 tu.ipft_vint = *ta->ipft_pint;
6809 *ta->ipft_pint = (u_int)(in & 0xffffffff);
6810 } else if (ta->ipft_sz == sizeof(u_short)) {
6811 tu.ipft_vshort = *ta->ipft_pshort;
6812 *ta->ipft_pshort = (u_short)(in & 0xffff);
6813 } else if (ta->ipft_sz == sizeof(u_char)) {
6814 tu.ipft_vchar = *ta->ipft_pchar;
6815 *ta->ipft_pchar = (u_char)(in & 0xff);