Lines Matching refs:tag
3932 struct m_tag *tag;
3934 /* Check if the tag already exists */
3935 tag = m_tag_locate(m, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_IPSEC, NULL);
3937 if (tag == NULL) {
3940 /* Allocate a tag */
3941 tag = m_tag_alloc(KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_IPSEC,
3944 if (tag) {
3945 itag = (struct ipsec_tag*)(tag + 1);
3949 m_tag_prepend(m, tag);
3953 return tag ? (struct ipsec_tag*)(tag + 1) : NULL;
3960 struct m_tag *tag;
3962 tag = m_tag_locate(m, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_IPSEC, NULL);
3964 return tag ? (struct ipsec_tag*)(tag + 1) : NULL;
3971 struct m_tag *tag;
3973 tag = m_tag_locate(m, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_IPSEC, NULL);
3975 if (tag) {
3976 m_tag_delete(m, tag);
3996 struct ipsec_tag *tag;
4000 tag = ipsec_addaux(m);
4001 if (!tag)
4004 tag = ipsec_findaux(m);
4005 if (tag) {
4006 tag->socket = so;
4007 ipsec_optaux(m, tag);