Lines Matching refs:itag
4706 struct ipsec_tag *itag; in ipsec_addaux() local
4713 itag = (struct ipsec_tag*)(tag + 1); in ipsec_addaux()
4714 itag->socket = 0; in ipsec_addaux()
4715 itag->history_count = 0; in ipsec_addaux()
4752 struct ipsec_tag *itag) in ipsec_optaux() argument
4754 if (itag && itag->socket == NULL && itag->history_count == 0) { in ipsec_optaux()
4755 m_tag_delete(m, ((struct m_tag*)itag) - 1); in ipsec_optaux()
4783 struct ipsec_tag *itag; in ipsec_getsocket() local
4785 itag = ipsec_findaux(m); in ipsec_getsocket()
4786 if (itag) { in ipsec_getsocket()
4787 return itag->socket; in ipsec_getsocket()
4799 struct ipsec_tag *itag; in ipsec_addhist() local
4801 itag = ipsec_addaux(m); in ipsec_addhist()
4802 if (!itag) { in ipsec_addhist()
4805 if (itag->history_count == IPSEC_HISTORY_MAX) { in ipsec_addhist()
4808 p = &itag->history[itag->history_count]; in ipsec_addhist()
4809 itag->history_count++; in ipsec_addhist()
4823 struct ipsec_tag *itag; in ipsec_gethist() local
4825 itag = ipsec_findaux(m); in ipsec_gethist()
4826 if (!itag) { in ipsec_gethist()
4829 if (itag->history_count == 0) { in ipsec_gethist()
4833 *lenp = (int)(itag->history_count * sizeof(struct ipsec_history)); in ipsec_gethist()
4835 return itag->history; in ipsec_gethist()
4842 struct ipsec_tag *itag; in ipsec_clearhist() local
4844 itag = ipsec_findaux(m); in ipsec_clearhist()
4845 if (itag) { in ipsec_clearhist()
4846 itag->history_count = 0; in ipsec_clearhist()
4848 ipsec_optaux(m, itag); in ipsec_clearhist()