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

usrsctp in cygwin under windows 64-bit #585

Open
jerabekj-but opened this issue May 5, 2021 · 7 comments
Open

usrsctp in cygwin under windows 64-bit #585

jerabekj-but opened this issue May 5, 2021 · 7 comments

Comments

@jerabekj-but
Copy link

jerabekj-but commented May 5, 2021

I am trying to make usrsctplib in Cygwin (maybe not a good idea).
I am not experienced with Linux-like systems and commands.
I was able to run "./bootstrap", "./configure with --disable-inet6" succesfully. And when i run "make" I got:
"
user_environment.c:383:2: error: #error "Unknown platform. Please provide platform specific RNG."
383 | #error "Unknown platform. Please provide platform specific RNG."
| ^~~~~
make[1]: *** [Makefile:635: libusrsctp_la-user_environment.lo] Error 1
make[1]: Opouští se adresář „/cygdrive/d/usrsctp-cygwin/usrsctplib“
make: *** [Makefile:407: all-recursive] Error 1
"
Is there a way how to solve this issue?
Thanks a lot.
btw: please do not advice me to install Linux instead. I was able to install usrsctp in Ubuntu, now I would like to have it in Windows, if possible.

@tuexen
Copy link
Member

tuexen commented May 5, 2021

You can compile usrsctp in Windows without using cygwin. @weinrank can tell you what you need.

@jerabekj-but
Copy link
Author

jerabekj-but commented May 5, 2021

You can compile usrsctp in Windows without using cygwin. @weinrank can tell you what you need.

I am using cygwin to compile iperf3 for windows. I would like to compile iperf3 with SCTP support. Therefore, I am trying to get usrsctp to cygwin. Is there a way how to do it? @tuexen

@tuexen
Copy link
Member

tuexen commented May 5, 2021

Then you need to port it to cygwin...

@jerabekj-but
Copy link
Author

Then you need to port it to cygwin...

I cannot imagine what should be done to port it to cygwin. I have no idea how complicated is such a thing. Is there some guideline? @tuexen

@tuexen
Copy link
Member

tuexen commented May 5, 2021

Unfortunately, I have no experience with cygwin or Windows at all...

@jerabekj-but
Copy link
Author

@tuexen Ok, I will leave the cygwin solution for a while.
I am trying to use your test programs compiled in Visual Studio in my computer. I am able to run client.exe and discard_server.exe in UDP encapsulation mode over Loopback interface (in administrator mode) as shown in example. However, it does not work properly, it ends with exchange of INIT and INIT_ACK messages (see figure).
obrazek

Unfortunately, I am not able to understand the code of the example programs (client, client_upcall, ...). So it is very hard for me to use these files. For instance, I have no idea how to force any of your programs to use IPv4 instead of IPv6. I have no idea what is the difference between client and client_upcall, for istance. What is ekr_client and ekr_server for? Is there some manual or some other examples of usage of your programs?
I would just like to try to make some succesful SCTP/IP communication over the network (without NAT).
Thanks for your help.

@tuexen
Copy link
Member

tuexen commented May 6, 2021

Please compile the examples with SCTP_DEBUG being defined. Then you get some debug output which might help.
client and client_upcall are examples how to use different API for implementing a client. The ekr_client and ekr_server where intended to show certain aspects of the API.

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

2 participants