Searched refs:isrh (Results 1 – 2 of 2) sorted by relevance
/linux/net/ipv6/ |
A D | seg6_iptunnel.c | 131 struct ipv6_sr_hdr *isrh; in seg6_do_srh_encap() local 177 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_encap() 179 isrh->nexthdr = proto; in seg6_do_srh_encap() 181 hdr->daddr = isrh->segments[isrh->first_segment]; in seg6_do_srh_encap() 185 if (sr_has_hmac(isrh)) { in seg6_do_srh_encap() 202 struct ipv6_sr_hdr *isrh; in seg6_do_srh_inline() local 226 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_inline() 228 isrh->nexthdr = hdr->nexthdr; in seg6_do_srh_inline() 231 isrh->segments[0] = hdr->daddr; in seg6_do_srh_inline() 232 hdr->daddr = isrh->segments[isrh->first_segment]; in seg6_do_srh_inline() [all …]
|
A D | rpl_iptunnel.c | 130 struct ipv6_rpl_sr_hdr *isrh, *csrh; in rpl_do_srh_inline() local 143 isrh = (struct ipv6_rpl_sr_hdr *)buf; in rpl_do_srh_inline() 146 memcpy(isrh, srh, sizeof(*isrh)); in rpl_do_srh_inline() 147 memcpy(isrh->rpl_segaddr, &srh->rpl_segaddr[1], in rpl_do_srh_inline() 149 isrh->rpl_segaddr[srh->segments_left - 1] = oldhdr->daddr; in rpl_do_srh_inline() 151 ipv6_rpl_srh_compress(csrh, isrh, &srh->rpl_segaddr[0], in rpl_do_srh_inline() 152 isrh->segments_left - 1); in rpl_do_srh_inline() 172 isrh = (void *)hdr + sizeof(*hdr); in rpl_do_srh_inline() 173 memcpy(isrh, csrh, hdrlen); in rpl_do_srh_inline() 175 isrh->nexthdr = hdr->nexthdr; in rpl_do_srh_inline()
|
Completed in 10 milliseconds