Lines Matching defs:tuninfo
31 static size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
35 switch (tuninfo->mode) {
47 return ((tuninfo->srh->hdrlen + 1) << 3) + head;
52 struct seg6_iptunnel_encap tuninfo[];
63 return seg6_lwt_lwtunnel(lwt)->tuninfo;
71 struct seg6_iptunnel_encap *tuninfo)
77 len = SEG6_IPTUN_ENCAP_SIZE(tuninfo);
84 memcpy(data, tuninfo, len);
612 struct seg6_iptunnel_encap *tuninfo;
630 tuninfo = nla_data(tb[SEG6_IPTUNNEL_SRH]);
633 /* tuninfo must contain at least the iptunnel encap structure,
636 min_size = sizeof(*tuninfo) + sizeof(struct ipv6_sr_hdr) +
641 switch (tuninfo->mode) {
660 if (!seg6_validate_srh(tuninfo->srh, tuninfo_len - sizeof(*tuninfo), false))
675 memcpy(&slwt->tuninfo, tuninfo, tuninfo_len);
680 if (tuninfo->mode != SEG6_IPTUN_MODE_L2ENCAP)
683 newts->headroom = seg6_lwt_headroom(tuninfo);
698 struct seg6_iptunnel_encap *tuninfo = seg6_encap_lwtunnel(lwtstate);
700 if (nla_put_srh(skb, SEG6_IPTUNNEL_SRH, tuninfo))
708 struct seg6_iptunnel_encap *tuninfo = seg6_encap_lwtunnel(lwtstate);
710 return nla_total_size(SEG6_IPTUN_ENCAP_SIZE(tuninfo));