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

running Demo error on client #145

Open
lonnietc opened this issue Oct 29, 2021 · 1 comment
Open

running Demo error on client #145

lonnietc opened this issue Oct 29, 2021 · 1 comment

Comments

@lonnietc
Copy link

Hello,

I am testing out coredhcp for possible use in a project on my Ubuntu 20.04 system.

I was able to compile it in Go and then copied over the config.ml-example in the coredhcp server director for use to test. After that, I compile the client.

Once that was done, I had to make an empty leases.txt file and then started up the server:

sudo ./coredhcp

and then tried the client:

sudo ./client

but get an error in the client:

:~/go/src/coredhcp/cmds/client$ sudo ./client

[2021-10-29T19:08:59-04:00] INFO main: &{ReadTimeout:3s WriteTimeout:3s LocalAddr:[::1]:546 RemoteAddr:[::1]:547 SimulateRelay:false RelayOptions:[]}
[2021-10-29T19:08:59-04:00] FATAL main: short hardware addrss: less than 4 bytes

Not sure how to fix this?

Also, can coredhcp be compiled for the Windows platform as well?

Thanks in advance

@Natolumin
Copy link
Member

The client implementation doesn't live in this repo - this is just a way to make the upstream implementation executable and available as a debugging tool. As far as I can see here the client is broken - it doesn't even send anything. You'll want to look for the implementation in here: https://github.com/insomniacslk/dhcp/blob/master/dhcpv6/client6/client.go and maybe open an issue for the upstream

Also, can coredhcp be compiled for the Windows platform as well?

Currently it is not possible to build for windows, and we use a few unix-specific interfaces so it is unlikely to work without explicit porting work for windows

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