Searched refs:tuninfo (Results 1 – 2 of 2) sorted by relevance
/external/kernel-headers/original/uapi/linux/ |
D | seg6_iptunnel.h | 42 static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo) in seg6_lwt_headroom() argument 46 switch (tuninfo->mode) { in seg6_lwt_headroom() 56 return ((tuninfo->srh->hdrlen + 1) << 3) + head; in seg6_lwt_headroom()
|
/external/iproute2/ip/ |
D | iproute_lwtunnel.c | 142 struct seg6_iptunnel_encap *tuninfo; in print_encap_seg6() local 149 tuninfo = RTA_DATA(tb[SEG6_IPTUNNEL_SRH]); in print_encap_seg6() 150 fprintf(fp, "mode %s ", format_seg6mode_type(tuninfo->mode)); in print_encap_seg6() 152 print_srh(fp, tuninfo->srh); in print_encap_seg6() 471 struct seg6_iptunnel_encap *tuninfo; in parse_encap_seg6() local 511 tuninfo = malloc(sizeof(*tuninfo) + srhlen); in parse_encap_seg6() 512 memset(tuninfo, 0, sizeof(*tuninfo) + srhlen); in parse_encap_seg6() 514 tuninfo->mode = encap; in parse_encap_seg6() 516 memcpy(tuninfo->srh, srh, srhlen); in parse_encap_seg6() 518 rta_addattr_l(rta, len, SEG6_IPTUNNEL_SRH, tuninfo, in parse_encap_seg6() [all …]
|