Lines Matching defs:token

38 static boolean_t tmptoken_isvalid(struct in6_addr *token);
116 * TmpDesyncFactor is used to desynchronize temporary token
271 /* Ignore interface if the token is all zeros */
274 logmsg(LOG_ERR, "ignoring interface %s: zero token\n",
283 * Guess a remote token for POINTOPOINT by looking at
701 * Validate a temporary token against a list of known bad values.
702 * Currently assumes that token is 8 bytes long! Current known
704 * used by ISATAP (draft-ietf-ngtrans-isatap-N), any token already
705 * assigned to this interface, or any token for which the global
710 * Return _B_TRUE if token is valid (no match), _B_FALSE if not.
713 tmptoken_isvalid(struct in6_addr *token)
724 if (IN6_IS_ADDR_UNSPECIFIED(token))
727 if (token->s6_addr[8] & 0x2)
730 (void) memcpy(&mask, token, sizeof (mask));
732 if (IN6_ARE_ADDR_EQUAL(&isatap, token))
735 mask._S6_un._S6_u32[3] = token->_S6_un._S6_u32[3] & 0xffffff80;
736 if (IN6_ARE_ADDR_EQUAL(&anycast, token))
741 IN6_ARE_ADDR_EQUAL(&pi->pi_token, token)) ||
742 IN6_ARE_ADDR_EQUAL(&pi->pi_tmp_token, token))
751 * Generate a temporary token and set up its timer
753 * Called from incoming_prefix_addrconf_process() (when token is first
754 * needed) and from tmptoken_timer() (when current token expires).
756 * Returns _B_TRUE if a token was successfully generated, _B_FALSE if not.
762 struct in6_addr token;
763 uint32_t *tokenp = &(token._S6_un._S6_u32[2]);
771 bzero((char *)&token, sizeof (token));
781 * token len; need to clear global bit.
783 token.s6_addr[8] &= 0xfd;
787 } while (!tmptoken_isvalid(&token) && i < max_tries);
794 "token; disabling temporary addresses on %s\n",
800 pi->pi_tmp_token = token;
804 "token %s\n", pi->pi_name,
816 * Delete a temporary token. This is outside the normal timeout process,
817 * so mark any existing addresses based on this token DEPRECATED and set
849 * for the tmp token. Returns TIMER_INFINITY for "never".
872 * Tmp token timer has expired. Start by generating a new token.
873 * If we can't get a new token, tmp addrs are disabled on this
880 * Now that we have a new token, walk the list of prefixes to
948 * the token and addresses were created.
954 * tlen specifies the token length in bits. Compares the lower
1640 * prefix and prefix len together with the remote token