• Home
  • Raw
  • Download

Lines Matching refs:encap

117 	if (sa->encap) {  in xfrm_sa_free_data()
118 if (sa->encap->encap_oa) in xfrm_sa_free_data()
119 nl_addr_put(sa->encap->encap_oa); in xfrm_sa_free_data()
120 free(sa->encap); in xfrm_sa_free_data()
184 if (src->encap) in xfrm_sa_clone()
187 if ((dst->encap = calloc (1, len)) == NULL) in xfrm_sa_clone()
189 memcpy ((void *)dst->encap, (void *)src->encap, len); in xfrm_sa_clone()
253 diff |= XFRM_SA_DIFF(ENCAP,((a->encap->encap_type != b->encap->encap_type) || in xfrm_sa_compare()
254 (a->encap->encap_sport != b->encap->encap_sport) || in xfrm_sa_compare()
255 (a->encap->encap_dport != b->encap->encap_dport) || in xfrm_sa_compare()
256 nl_addr_cmp(a->encap->encap_oa, b->encap->encap_oa))); in xfrm_sa_compare()
327 __ADD(XFRM_SA_ATTR_ENCAP, encap),
492 if (sa->encap) in xfrm_sa_dump_line()
496 sa->encap->encap_type, sa->encap->encap_sport, sa->encap->encap_dport, in xfrm_sa_dump_line()
497 nl_addr2str (sa->encap->encap_oa, dst, sizeof (dst))); in xfrm_sa_dump_line()
830 struct xfrm_encap_tmpl* encap = nla_data(tb[XFRMA_ENCAP]); in xfrmnl_sa_parse() local
832 if ((sa->encap = calloc (1, len)) == NULL) in xfrmnl_sa_parse()
837 sa->encap->encap_type = encap->encap_type; in xfrmnl_sa_parse()
838 sa->encap->encap_sport = ntohs(encap->encap_sport); in xfrmnl_sa_parse()
839 sa->encap->encap_dport = ntohs(encap->encap_dport); in xfrmnl_sa_parse()
841 …sa->encap->encap_oa = nl_addr_build (sa_info->family, &encap->encap_oa.a4, sizeof (encap->encap_… in xfrmnl_sa_parse()
843 …sa->encap->encap_oa = nl_addr_build (sa_info->family, &encap->encap_oa.a6, sizeof (encap->encap_… in xfrmnl_sa_parse()
1226 encap_tmpl->encap_type = tmpl->encap->encap_type; in build_xfrm_sa_message()
1227 encap_tmpl->encap_sport = htons (tmpl->encap->encap_sport); in build_xfrm_sa_message()
1228 encap_tmpl->encap_dport = htons (tmpl->encap->encap_dport); in build_xfrm_sa_message()
1229 …l->encap_oa, nl_addr_get_binary_addr (tmpl->encap->encap_oa), sizeof (uint8_t) * nl_addr_get_len (… in build_xfrm_sa_message()
1874 *encap_type = sa->encap->encap_type; in xfrmnl_sa_get_encap_tmpl()
1875 *encap_sport = sa->encap->encap_sport; in xfrmnl_sa_get_encap_tmpl()
1876 *encap_dport = sa->encap->encap_dport; in xfrmnl_sa_get_encap_tmpl()
1877 *encap_oa = nl_addr_clone (sa->encap->encap_oa); in xfrmnl_sa_get_encap_tmpl()
1887 if (sa->encap) { in xfrmnl_sa_set_encap_tmpl()
1889 if (sa->encap->encap_oa) in xfrmnl_sa_set_encap_tmpl()
1890 nl_addr_put(sa->encap->encap_oa); in xfrmnl_sa_set_encap_tmpl()
1891 memset(sa->encap, 0, sizeof (*sa->encap)); in xfrmnl_sa_set_encap_tmpl()
1892 } else if ((sa->encap = calloc(1, sizeof(*sa->encap))) == NULL) in xfrmnl_sa_set_encap_tmpl()
1896 sa->encap->encap_type = encap_type; in xfrmnl_sa_set_encap_tmpl()
1897 sa->encap->encap_sport = encap_sport; in xfrmnl_sa_set_encap_tmpl()
1898 sa->encap->encap_dport = encap_dport; in xfrmnl_sa_set_encap_tmpl()
1900 sa->encap->encap_oa = encap_oa; in xfrmnl_sa_set_encap_tmpl()