Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with .Net Core package, Ubuntu 14.04 #53

Closed
Pedestrian22 opened this issue Mar 23, 2018 · 7 comments
Closed

Problem with .Net Core package, Ubuntu 14.04 #53

Pedestrian22 opened this issue Mar 23, 2018 · 7 comments

Comments

@Pedestrian22
Copy link

I would like to ask you if somebody knows how to help with this problem. I cannot run my project in Ubuntu 14.04. There is missed package "PacketDotNet" and I need to run it in .Net Core project.
Thanks for any idea and help.

screen1

@chmorgan
Copy link
Collaborator

chmorgan commented Mar 23, 2018 via email

@Pedestrian22
Copy link
Author

So, after this action, should it work? I mean, is it even possible to run .Net Core with PacketDotNet/SharpPcap on Ubuntu 14.04?

@chmorgan
Copy link
Collaborator

chmorgan commented Mar 24, 2018 via email

@chmorgan
Copy link
Collaborator

Hi @Pedestrian22.

I've updated packetdotnet to build against .net standard 2.0. I think you'll still see an issue unless you run under mono due to the necessary library mapping. I'm looking to make it more compatible with dotnet but it would require runtime library loading and mapping and I'm not sure what the performance impact is of that approach or how much work it could be.

@nono3551
Copy link

nono3551 commented Feb 12, 2019

Hi,

I am working on small packet sniffer for Linux and Windows. I didn't tested anything on Windows yet. I hope it won't be such painful for me as Linux. For Linux (Ubuntu 18.04) I made this package work in two ways:

I installed libpcap with apt-get install libpcap-dev.

  1. I created .NET Framework 4.6.1 project. Added SharpPcap.dll.config file for mapping wpcap <= libpcap. Run MyProject.exe with mono. Everything is working.

  2. I created .NET Core 2.1 project. Copied libpcap.so => wpcap.so. Run project with 'dotnet run' command. Everything is working.

In both approaches everything seems to be working fine but something doesn't feel right about their background.

I new in this kind of issues. Could you please help me to chose between those two or help me find some other way to make package working on both Linux and Windows?

Thank you

@chmorgan
Copy link
Collaborator

chmorgan commented Mar 7, 2019

Hi @nono3551. Please check out the latest sharppcap release. It has much better cross platform support that doesn't require monkeying around with libraries.

@chmorgan chmorgan closed this as completed Mar 7, 2019
@nono3551
Copy link

nono3551 commented Mar 8, 2019

Hi @chmorgan. I just checked it out and everything seems to be working fine. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants