Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Francis Dupont
Eric Graham writes: > I am looking into the possibility of writing a Rust hook. I understand that= > using C++ is likely the simplest alternative, but Rust is attractive for i= > ts memory safety and speed. I have not had luck finding any Kea hook in Rus= > t to use as a starting point. The C FFI

Re: [Kea-users] ipv6 being ignored

2022-12-09 Thread Alan Batie
Doh! Firewall issue, never mind... On 12/9/22 10:18 AM, Darren Ankney wrote: Try removing the "relay" statement as you don't need it as far as I can tell. You are supposed to only need to use that if you need to select a different subnet than what matches the IP in the "Link address" option o

Re: [Kea-users] ipv6 being ignored

2022-12-09 Thread Darren Ankney
Try removing the "relay" statement as you don't need it as far as I can tell. You are supposed to only need to use that if you need to select a different subnet than what matches the IP in the "Link address" option of the relayed packet. But you have the same subnet configured as what you have l

Re: [Kea-users] ipv6 being ignored

2022-12-09 Thread Eric Graham
Hi Alan, What does Kea have in the DHCPv6 log for this request? It may help to increase verbosity. Since this is subnet id 11, I assume you have other subnets that are already configured and working; is this accurate? From: Kea-users on behalf of Alan Batie Se

[Kea-users] ipv6 being ignored

2022-12-09 Thread Alan Batie
Looking for suggestions - tshark shows forwarded dhcpv6 requests being received, however they're being ignored: User Datagram Protocol, Src Port: 547, Dst Port: 547 Source Port: 547 Destination Port: 547 Length: 341 Checksum: 0x712b [unverified] [Checksum Status: Unverified]

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Eric Graham
That's a good idea. At the very least, I can confirm whether the hook is expected to load if only implementing version(). According to the docs, I believe it to be so, but there's a lot there and I may be mistaken. I'll see what comes of it and post back here for future readers. If you or anyone

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Scott Seekamp
We went through a similar discussion as C++ is not a preferred language in our company. I ended up modifying the example script hook to call another executable and it works very well. As a bonus, you don’t have to touch the hook code once you have it doing what you need. I think you will be bet

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Darren Ankney
maybe if you develop a simple hook that does something very simple in c++ it will become more obvious how to do the same in Rust? On Fri, Dec 9, 2022 at 11:01 AM Eric Graham wrote: > > Thanks for the link! I have gone through that page and the instructions are > thorough. There are projects like

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Eric Graham
Thanks for the link! I have gone through that page and the instructions are thorough. There are projects like CXX (https://cxx.rs/) that help with the Rust <--> C++ stuff, but to be honest, I am new to Rust (Python is one I'm more familiar with, but I am not interested in writing the hook in Pyt

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Darren Ankney
Apologies if you've already found this guide, but here is a link to the hook developers guide: https://reports.kea.isc.org/dev_guide/df/d46/hooksdgDevelopersGuide.html I'm not super familiar with rust myself (though I have played around with it) but you can't just include header files that were m

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Eric Graham
Hi Darren, Thanks for the link! I actually have already done so, but for a few reasons (I believe it is slower than a hook, and it's limited) I would prefer to write a "native" one. I sure wish it would have been implemented differently