Home
last modified time | relevance | path

Searched refs:smb1_protos (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/fs/smb/server/
Dsmb_common.c34 static struct smb_protocol smb1_protos[] = { variable
103 int offt = ARRAY_SIZE(smb1_protos) - 1; in ksmbd_lookup_protocol_idx()
107 if (!strncmp(str, smb1_protos[offt].prot, len)) { in ksmbd_lookup_protocol_idx()
109 smb1_protos[offt].prot, offt); in ksmbd_lookup_protocol_idx()
110 return smb1_protos[offt].index; in ksmbd_lookup_protocol_idx()
205 for (i = ARRAY_SIZE(smb1_protos) - 1; i >= 0; i--) { in ksmbd_lookup_dialect_by_name()
216 if (!strcmp(dialect, smb1_protos[i].name)) { in ksmbd_lookup_dialect_by_name()
217 if (supported_protocol(smb1_protos[i].index)) { in ksmbd_lookup_dialect_by_name()
220 smb1_protos[i].name); in ksmbd_lookup_dialect_by_name()
221 if (smb1_protos[i].index == SMB1_PROT) in ksmbd_lookup_dialect_by_name()
[all …]