Rewrite networking in package dhcpd to only use gopacket
#4.923 aberto em 15 de set. de 2022
Métricas do repositório
- Stars
- (34.000 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Prerequisites
-
I have checked the Wiki and Discussions and found no answer
-
I have searched other issues and found no duplicates
-
I want to request a feature or enhancement and not ask a question
Description
What problem are you trying to solve?
Package dhcpd currently uses a lot of different modules and packages for networking, including github.com/google/gopacket, github.com/insomniacslk/dhcp, github.com/mdlayher/ethernet, and the deprecated github.com/mdlayher/raw. This creates all sorts of issues, including but not limited to:
- portability;
- API compatibility;
- difficulty of package update and maintenance.
Proposed solution
Module github.com/google/gopacket seems to have either all or most of the things we require. If I am not mistaken, we could even enable DHCP on Windows, if we make sure that the networking works well there.
Alternatives considered
Go on as we do. See the problems with this approach above.