Lines Matching refs:itag
4720 struct ipsec_tag *itag; in ipsec_addaux() local
4727 itag = (struct ipsec_tag*)(tag + 1); in ipsec_addaux()
4728 itag->socket = 0; in ipsec_addaux()
4729 itag->history_count = 0; in ipsec_addaux()
4766 struct ipsec_tag *itag) in ipsec_optaux() argument
4768 if (itag && itag->socket == NULL && itag->history_count == 0) { in ipsec_optaux()
4769 m_tag_delete(m, ((struct m_tag*)itag) - 1); in ipsec_optaux()
4797 struct ipsec_tag *itag; in ipsec_getsocket() local
4799 itag = ipsec_findaux(m); in ipsec_getsocket()
4800 if (itag) { in ipsec_getsocket()
4801 return itag->socket; in ipsec_getsocket()
4813 struct ipsec_tag *itag; in ipsec_addhist() local
4815 itag = ipsec_addaux(m); in ipsec_addhist()
4816 if (!itag) { in ipsec_addhist()
4819 if (itag->history_count == IPSEC_HISTORY_MAX) { in ipsec_addhist()
4822 p = &itag->history[itag->history_count]; in ipsec_addhist()
4823 itag->history_count++; in ipsec_addhist()
4837 struct ipsec_tag *itag; in ipsec_gethist() local
4839 itag = ipsec_findaux(m); in ipsec_gethist()
4840 if (!itag) { in ipsec_gethist()
4843 if (itag->history_count == 0) { in ipsec_gethist()
4847 *lenp = (int)(itag->history_count * sizeof(struct ipsec_history)); in ipsec_gethist()
4849 return itag->history; in ipsec_gethist()
4856 struct ipsec_tag *itag; in ipsec_clearhist() local
4858 itag = ipsec_findaux(m); in ipsec_clearhist()
4859 if (itag) { in ipsec_clearhist()
4860 itag->history_count = 0; in ipsec_clearhist()
4862 ipsec_optaux(m, itag); in ipsec_clearhist()