Lines Matching refs:smb_hdr
141 struct smb_hdr *
144 struct smb_hdr *ret_buf = NULL;
155 memset(ret_buf, 0, sizeof(struct smb_hdr) + 3);
178 struct smb_hdr *
181 struct smb_hdr *ret_buf = NULL;
190 /* memset(ret_buf, 0, sizeof(struct smb_hdr) + 27);*/
285 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
296 (2 * word_count) + sizeof(struct smb_hdr) -
384 checkSMBhdr(struct smb_hdr *smb, __u16 mid)
411 checkSMB(struct smb_hdr *smb, __u16 mid, unsigned int length)
417 if (length < 2 + sizeof(struct smb_hdr)) {
418 if ((length >= sizeof(struct smb_hdr) - 1)
423 } else if ((length == sizeof(struct smb_hdr) + 1) &&
427 if (tmp[sizeof(struct smb_hdr)] == 0) {
435 tmp[sizeof(struct smb_hdr)+1] = 0;
492 is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
516 sizeof(struct smb_hdr)+60); */
612 dump_smb(struct smb_hdr *smb_buf, int smb_buf_length)