• Home
  • Raw
  • Download

Lines Matching refs:encap

118 	if (sa->encap) {  in xfrm_sa_free_data()
119 if (sa->encap->encap_oa) in xfrm_sa_free_data()
120 nl_addr_put(sa->encap->encap_oa); in xfrm_sa_free_data()
121 free(sa->encap); in xfrm_sa_free_data()
147 dst->encap = NULL; in xfrm_sa_clone()
197 if (src->encap) { in xfrm_sa_clone()
199 if ((dst->encap = calloc (1, len)) == NULL) in xfrm_sa_clone()
201 memcpy ((void *)dst->encap, (void *)src->encap, len); in xfrm_sa_clone()
269 diff |= XFRM_SA_DIFF(ENCAP,((a->encap->encap_type != b->encap->encap_type) || in xfrm_sa_compare()
270 (a->encap->encap_sport != b->encap->encap_sport) || in xfrm_sa_compare()
271 (a->encap->encap_dport != b->encap->encap_dport) || in xfrm_sa_compare()
272 nl_addr_cmp(a->encap->encap_oa, b->encap->encap_oa))); in xfrm_sa_compare()
343 __ADD(XFRM_SA_ATTR_ENCAP, encap),
518 if (sa->encap) in xfrm_sa_dump_line()
522 sa->encap->encap_type, sa->encap->encap_sport, sa->encap->encap_dport, in xfrm_sa_dump_line()
523 nl_addr2str (sa->encap->encap_oa, dst, sizeof (dst))); in xfrm_sa_dump_line()
857 struct xfrm_encap_tmpl* encap = nla_data(tb[XFRMA_ENCAP]); in xfrmnl_sa_parse() local
859 if ((sa->encap = calloc (1, len)) == NULL) in xfrmnl_sa_parse()
864 sa->encap->encap_type = encap->encap_type; in xfrmnl_sa_parse()
865 sa->encap->encap_sport = ntohs(encap->encap_sport); in xfrmnl_sa_parse()
866 sa->encap->encap_dport = ntohs(encap->encap_dport); in xfrmnl_sa_parse()
868 …sa->encap->encap_oa = nl_addr_build (sa_info->family, &encap->encap_oa.a4, sizeof (encap->encap_… in xfrmnl_sa_parse()
870 …sa->encap->encap_oa = nl_addr_build (sa_info->family, &encap->encap_oa.a6, sizeof (encap->encap_… in xfrmnl_sa_parse()
1268 encap_tmpl->encap_type = tmpl->encap->encap_type; in build_xfrm_sa_message()
1269 encap_tmpl->encap_sport = htons (tmpl->encap->encap_sport); in build_xfrm_sa_message()
1270 encap_tmpl->encap_dport = htons (tmpl->encap->encap_dport); in build_xfrm_sa_message()
1271 …l->encap_oa, nl_addr_get_binary_addr (tmpl->encap->encap_oa), sizeof (uint8_t) * nl_addr_get_len (… in build_xfrm_sa_message()
1932 *encap_type = sa->encap->encap_type; in xfrmnl_sa_get_encap_tmpl()
1933 *encap_sport = sa->encap->encap_sport; in xfrmnl_sa_get_encap_tmpl()
1934 *encap_dport = sa->encap->encap_dport; in xfrmnl_sa_get_encap_tmpl()
1935 *encap_oa = nl_addr_clone (sa->encap->encap_oa); in xfrmnl_sa_get_encap_tmpl()
1945 if (sa->encap) { in xfrmnl_sa_set_encap_tmpl()
1947 if (sa->encap->encap_oa) in xfrmnl_sa_set_encap_tmpl()
1948 nl_addr_put(sa->encap->encap_oa); in xfrmnl_sa_set_encap_tmpl()
1949 memset(sa->encap, 0, sizeof (*sa->encap)); in xfrmnl_sa_set_encap_tmpl()
1950 } else if ((sa->encap = calloc(1, sizeof(*sa->encap))) == NULL) in xfrmnl_sa_set_encap_tmpl()
1954 sa->encap->encap_type = encap_type; in xfrmnl_sa_set_encap_tmpl()
1955 sa->encap->encap_sport = encap_sport; in xfrmnl_sa_set_encap_tmpl()
1956 sa->encap->encap_dport = encap_dport; in xfrmnl_sa_set_encap_tmpl()
1958 sa->encap->encap_oa = encap_oa; in xfrmnl_sa_set_encap_tmpl()