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

Adding EOE function calls and an eoe example #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zob314
Copy link

@Zob314 Zob314 commented Dec 10, 2024

Adding EOE function calls.
Also adding EOE example that creates a virtual network of EOE devices.
Virtual network example only works on Linux because there aren't any OS-independent virtual network interfaces.

Virtual switch code was shamelessly taken from here

…etwork of eoe devices.

Virtual network example only works on Linux because there aren't any OS-independant virtual network interfaces.
@bnjmnp
Copy link
Owner

bnjmnp commented Jan 5, 2025

Hi @Zob314, thank you for sharing your addition. This is very substantial. I will probably need more time to dig trough it and I want to figure out how to test it on my side.

@Zob314
Copy link
Author

Zob314 commented Jan 7, 2025

That's fine, take your time. I'd recommend double checking the ntohl calls in eoe_set_ip

ipsettings.ip.addr = ntohl(ipAddr._ip)

I'm developing my own subdevice alongside this and was able to get it working with the ntohl on the controller or device side and I'm not sure which is 'correct'.

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

Successfully merging this pull request may close these issues.

3 participants