Lines Matching refs:totlen
109 servername_len, optlen, prefix_len, totlen; in dispatch_imsg() local
149 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t); in dispatch_imsg()
150 if (hdr.len < totlen) in dispatch_imsg()
155 totlen += filename_len + sizeof(size_t); in dispatch_imsg()
156 if (hdr.len < totlen || filename_len == SIZE_T_MAX) in dispatch_imsg()
166 totlen += servername_len + sizeof(size_t); in dispatch_imsg()
167 if (hdr.len < totlen || servername_len == SIZE_T_MAX) in dispatch_imsg()
178 totlen += prefix_len; in dispatch_imsg()
179 if (hdr.len < totlen || prefix_len == SIZE_T_MAX) in dispatch_imsg()
189 totlen += sizeof(optlen); in dispatch_imsg()
190 if (hdr.len < totlen) in dispatch_imsg()
196 totlen += optlen; in dispatch_imsg()
197 if (hdr.len < totlen || optlen == SIZE_T_MAX) in dispatch_imsg()