• Home
  • Raw
  • Download

Lines Matching refs:len

31 	u16 actual = ssh_crc(src->ptr, src->len);  in sshp_validate_crc()
43 return src->len >= 2 && get_unaligned_le16(src->ptr) == SSH_MSG_SYN; in sshp_starts_with_syn()
73 for (i = 0; i < src->len - 1; i++) { in sshp_find_syn()
76 rem->len = src->len - i; in sshp_find_syn()
81 if (unlikely(src->ptr[src->len - 1] == (SSH_MSG_SYN & 0xff))) { in sshp_find_syn()
82 rem->ptr = src->ptr + src->len - 1; in sshp_find_syn()
83 rem->len = 1; in sshp_find_syn()
87 rem->ptr = src->ptr + src->len; in sshp_find_syn()
88 rem->len = 0; in sshp_find_syn()
127 payload->len = 0; in sshp_parse_frame()
135 if (unlikely(source->len < SSH_MESSAGE_LENGTH(0))) { in sshp_parse_frame()
142 sf.len = sizeof(struct ssh_frame); in sshp_parse_frame()
145 if (unlikely(!sshp_validate_crc(&sf, sf.ptr + sf.len))) { in sshp_parse_frame()
151 sp.len = get_unaligned_le16(&((struct ssh_frame *)sf.ptr)->len); in sshp_parse_frame()
152 if (unlikely(SSH_MESSAGE_LENGTH(sp.len) > maxlen)) { in sshp_parse_frame()
154 SSH_MESSAGE_LENGTH(sp.len)); in sshp_parse_frame()
159 sp.ptr = sf.ptr + sf.len + sizeof(u16); in sshp_parse_frame()
162 if (source->len < SSH_MESSAGE_LENGTH(sp.len)) { in sshp_parse_frame()
168 if (unlikely(!sshp_validate_crc(&sp, sp.ptr + sp.len))) { in sshp_parse_frame()
177 (*frame)->type, (*frame)->len); in sshp_parse_frame()
211 if (unlikely(source->len < sizeof(struct ssh_command))) { in sshp_parse_command()
214 command_data->len = 0; in sshp_parse_command()
222 command_data->len = source->len - sizeof(struct ssh_command); in sshp_parse_command()