Lines Matching refs:inhdr
39 const struct ipv6_rpl_sr_hdr *inhdr, in ipv6_rpl_srh_decompress() argument
44 outhdr->nexthdr = inhdr->nexthdr; in ipv6_rpl_srh_decompress()
47 outhdr->type = inhdr->type; in ipv6_rpl_srh_decompress()
48 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_decompress()
54 ipv6_rpl_segdata_pos(inhdr, i), in ipv6_rpl_srh_decompress()
55 inhdr->cmpri); in ipv6_rpl_srh_decompress()
58 ipv6_rpl_segdata_pos(inhdr, n), in ipv6_rpl_srh_decompress()
59 inhdr->cmpre); in ipv6_rpl_srh_decompress()
62 static unsigned char ipv6_rpl_srh_calc_cmpri(const struct ipv6_rpl_sr_hdr *inhdr, in ipv6_rpl_srh_calc_cmpri() argument
72 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri()
94 const struct ipv6_rpl_sr_hdr *inhdr, in ipv6_rpl_srh_compress() argument
101 cmpri = ipv6_rpl_srh_calc_cmpri(inhdr, daddr, n); in ipv6_rpl_srh_compress()
102 cmpre = ipv6_rpl_srh_calc_cmpre(daddr, &inhdr->rpl_segaddr[n]); in ipv6_rpl_srh_compress()
104 outhdr->nexthdr = inhdr->nexthdr; in ipv6_rpl_srh_compress()
113 outhdr->type = inhdr->type; in ipv6_rpl_srh_compress()
114 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_compress()
120 &inhdr->rpl_segaddr[i], cmpri); in ipv6_rpl_srh_compress()
123 &inhdr->rpl_segaddr[n], cmpre); in ipv6_rpl_srh_compress()