Searched refs:tuninfo (Results 1 – 3 of 3) sorted by relevance
46 struct ioam6_lwt_encap tuninfo; member61 return &ioam6_lwt_state(lwt)->tuninfo; in ioam6_lwt_info()66 return &(ioam6_lwt_state(lwt)->tuninfo.traceh); in ioam6_lwt_trace()108 struct ioam6_lwt_encap *tuninfo; in ioam6_build_state() local183 tuninfo = ioam6_lwt_info(lwt); in ioam6_build_state()184 tuninfo->eh.hdrlen = ((sizeof(*tuninfo) + len_aligned) >> 3) - 1; in ioam6_build_state()185 tuninfo->pad[0] = IPV6_TLV_PADN; in ioam6_build_state()186 tuninfo->ioamh.type = IOAM6_TYPE_PREALLOC; in ioam6_build_state()187 tuninfo->ioamh.opt_type = IPV6_TLV_IOAM; in ioam6_build_state()188 tuninfo->ioamh.opt_len = sizeof(tuninfo->ioamh) - 2 + sizeof(*trace) in ioam6_build_state()[all …]
31 static size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo) in seg6_lwt_headroom() argument35 switch (tuninfo->mode) { in seg6_lwt_headroom()47 return ((tuninfo->srh->hdrlen + 1) << 3) + head; in seg6_lwt_headroom()52 struct seg6_iptunnel_encap tuninfo[]; member63 return seg6_lwt_lwtunnel(lwt)->tuninfo; in seg6_encap_lwtunnel()71 struct seg6_iptunnel_encap *tuninfo) in nla_put_srh() argument77 len = SEG6_IPTUN_ENCAP_SIZE(tuninfo); in nla_put_srh()84 memcpy(data, tuninfo, len); in nla_put_srh()640 struct seg6_iptunnel_encap *tuninfo; in seg6_build_state() local658 tuninfo = nla_data(tb[SEG6_IPTUNNEL_SRH]); in seg6_build_state()[all …]
21 struct rpl_iptunnel_encap tuninfo; member32 return &rpl_lwt_lwtunnel(lwt)->tuninfo; in rpl_encap_lwtunnel()111 memcpy(&rlwt->tuninfo.srh, srh, srh_len); in rpl_build_state()311 struct rpl_iptunnel_encap *tuninfo) in nla_put_rpl_srh() argument317 len = RPL_IPTUNNEL_SRH_SIZE(tuninfo->srh); in nla_put_rpl_srh()324 memcpy(data, tuninfo->srh, len); in nla_put_rpl_srh()332 struct rpl_iptunnel_encap *tuninfo = rpl_encap_lwtunnel(lwtstate); in rpl_fill_encap_info() local334 if (nla_put_rpl_srh(skb, RPL_IPTUNNEL_SRH, tuninfo)) in rpl_fill_encap_info()342 struct rpl_iptunnel_encap *tuninfo = rpl_encap_lwtunnel(lwtstate); in rpl_encap_nlsize() local344 return nla_total_size(RPL_IPTUNNEL_SRH_SIZE(tuninfo->srh)); in rpl_encap_nlsize()