Lines Matching defs:tuninfo
30 static size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
34 switch (tuninfo->mode) {
44 return ((tuninfo->srh->hdrlen + 1) << 3) + head;
49 struct seg6_iptunnel_encap tuninfo[];
60 return seg6_lwt_lwtunnel(lwt)->tuninfo;
68 struct seg6_iptunnel_encap *tuninfo)
74 len = SEG6_IPTUN_ENCAP_SIZE(tuninfo);
81 memcpy(data, tuninfo, len);
413 struct seg6_iptunnel_encap *tuninfo;
431 tuninfo = nla_data(tb[SEG6_IPTUNNEL_SRH]);
434 /* tuninfo must contain at least the iptunnel encap structure,
437 min_size = sizeof(*tuninfo) + sizeof(struct ipv6_sr_hdr) +
442 switch (tuninfo->mode) {
457 if (!seg6_validate_srh(tuninfo->srh, tuninfo_len - sizeof(*tuninfo), false))
472 memcpy(&slwt->tuninfo, tuninfo, tuninfo_len);
477 if (tuninfo->mode != SEG6_IPTUN_MODE_L2ENCAP)
480 newts->headroom = seg6_lwt_headroom(tuninfo);
495 struct seg6_iptunnel_encap *tuninfo = seg6_encap_lwtunnel(lwtstate);
497 if (nla_put_srh(skb, SEG6_IPTUNNEL_SRH, tuninfo))
505 struct seg6_iptunnel_encap *tuninfo = seg6_encap_lwtunnel(lwtstate);
507 return nla_total_size(SEG6_IPTUN_ENCAP_SIZE(tuninfo));