sahlberg / libsmb2

SMB2/3 userspace client
Other
310 stars 126 forks source link

A couple of questions: (mainly SMBv3 traffic generation) #322

Closed RidaShamasneh closed 3 months ago

RidaShamasneh commented 4 months ago
sahlberg commented 4 months ago

Hi,

On Thu, 22 Feb 2024 at 22:54, Rida Shamasneh @.***> wrote:

  • Is this library supported on Ubunto?

Yes.

  • Can it generate an SMBv3 traffic?

Yes. It supports smb 3.0 including AES-256-CCM signing and encryption. There is partial support for 3.1.1 but I have not had need for that dialect yet, so have not implemented it. It does not support AES-256-GCM, mostly because most of the platforms I target has no vector instruction set and thus can not benefit fom GCM instead of CCM.

  • I need a library that has a support for byte range lock and change notification features? I could not see any of these features implemented in this repo? I wonder if repo is ready to accept changes intended to accomplish these features?

It does not support SMB2 LOCK command but it should be fairly trivial to add. Same for SMB2 CHANGE NOTIFY. Not implemented but should be trivial to add.

If you want to implement LOCK and CHANGE NOTIFY and contribute it, that would be great. Make sure to mimic how things are done in the other smb2-cmd-*.c files Conributions need to be made under he LGPLv2.1 license

Regards ronnie sahlberg

— Reply to this email directly, view it on GitHub https://github.com/sahlberg/libsmb2/issues/322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADY3EAWXPCBWUDVDYCOPM3YU45XVAVCNFSM6AAAAABDU4VBUKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DSMBRGQ3TKOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

smbproton commented 3 months ago

I think that all the features mentioned in this thread are supported in the ynq library which is written in C: https://visualitynq.com/products/ynq/