Searched refs:isrh (Results 1 – 2 of 2) sorted by relevance
/net/ipv6/ |
D | seg6_iptunnel.c | 131 struct ipv6_sr_hdr *isrh; in seg6_do_srh_encap() local 176 isrh = (void *)hdr + sizeof(*hdr); in seg6_do_srh_encap() 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() 186 err = seg6_push_hmac(net, &hdr->saddr, isrh); in seg6_do_srh_encap() 204 struct ipv6_sr_hdr *isrh; in seg6_do_srh_inline() local 227 isrh = (void *)hdr + sizeof(*hdr); in seg6_do_srh_inline() 228 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_inline() [all …]
|
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()
|