Lines Matching refs:inhdr
33 const struct ipv6_rpl_sr_hdr *inhdr, in ipv6_rpl_srh_decompress() argument
38 outhdr->nexthdr = inhdr->nexthdr; in ipv6_rpl_srh_decompress()
41 outhdr->type = inhdr->type; in ipv6_rpl_srh_decompress()
42 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_decompress()
48 ipv6_rpl_segdata_pos(inhdr, i), in ipv6_rpl_srh_decompress()
49 inhdr->cmpri); in ipv6_rpl_srh_decompress()
52 ipv6_rpl_segdata_pos(inhdr, n), in ipv6_rpl_srh_decompress()
53 inhdr->cmpre); in ipv6_rpl_srh_decompress()
56 static unsigned char ipv6_rpl_srh_calc_cmpri(const struct ipv6_rpl_sr_hdr *inhdr, in ipv6_rpl_srh_calc_cmpri() argument
66 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri()
88 const struct ipv6_rpl_sr_hdr *inhdr, in ipv6_rpl_srh_compress() argument
95 cmpri = ipv6_rpl_srh_calc_cmpri(inhdr, daddr, n); in ipv6_rpl_srh_compress()
96 cmpre = ipv6_rpl_srh_calc_cmpre(daddr, &inhdr->rpl_segaddr[n]); in ipv6_rpl_srh_compress()
98 outhdr->nexthdr = inhdr->nexthdr; in ipv6_rpl_srh_compress()
107 outhdr->type = inhdr->type; in ipv6_rpl_srh_compress()
108 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_compress()
114 &inhdr->rpl_segaddr[i], cmpri); in ipv6_rpl_srh_compress()
117 &inhdr->rpl_segaddr[n], cmpre); in ipv6_rpl_srh_compress()