hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/ipv6/rpl.c
....@@ -32,7 +32,8 @@
3232 size_t ipv6_rpl_srh_size(unsigned char n, unsigned char cmpri,
3333 unsigned char cmpre)
3434 {
35
- return (n * IPV6_PFXTAIL_LEN(cmpri)) + IPV6_PFXTAIL_LEN(cmpre);
35
+ return sizeof(struct ipv6_rpl_sr_hdr) + (n * IPV6_PFXTAIL_LEN(cmpri)) +
36
+ IPV6_PFXTAIL_LEN(cmpre);
3637 }
3738
3839 void ipv6_rpl_srh_decompress(struct ipv6_rpl_sr_hdr *outhdr,