dotnetprojects / sharp-dhcp-server-lib Goto Github PK
View Code? Open in Web Editor NEWThis project forked from clusterm/sharp-dhcp-server-lib
DHCP server with option 82 support .NET library
This project forked from clusterm/sharp-dhcp-server-lib
DHCP server with option 82 support .NET library
When calling DHCPServer.Dispose from a .NET Core application I am getting a PlatformNotSupportedException.
This is mentioned in the documentation.
System.PlatformNotSupportedException: Thread abort is not supported on this platform.
at System.Threading.Thread.Abort()
at DotNetProjects.DhcpServer.DHCPServer.Dispose()
I'm getting this error when doing this: dhcpRequest.SendDHCPReply(DHCPMsgType.DHCPOFFER, ip, replyOptions);
I'm binding to 0.0.0.0
and receiving requests just fine.
System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.UdpClient..ctor(Int32 port, AddressFamily family)
at System.Net.Sockets.UdpClient..ctor(Int32 port)
at DotNetProjects.DhcpServer.DHCPRequest.SendDHCPReply(DHCPMsgType msgType, IPAddress ip, DHCPReplyOptions replyData, Dictionary`2 otherForceOptions, IEnumerable`1 forceOptions) in C:\projects\sharp-dhcp-server-lib\SharpDHCPServerLib\DHCPRequest.cs:line 331
at DotNetProjects.DhcpServer.DHCPRequest.SendDHCPReply(DHCPMsgType msgType, IPAddress ip, DHCPReplyOptions replyData) in C:\projects\sharp-dhcp-server-lib\SharpDHCPServerLib\DHCPRequest.cs:line 259
When sending a DHCP reply to a DHCPRequest message, the server should use the BOOTPS port (67) for sending. Some DHCP clients will otherwise direct additional responses to the randomly chosen port where no listener exists.
The IPAddressLeaseTime, RenewalTimeValue_T1 and RebindingTimeValue_T2 can not be set to different values.
All get set to the value of RebindingTimeValue_T2.
The private nuget API key was published in the file https://github.com/dotnetprojects/sharp-dhcp-server-lib/blob/f79141c5e01ba90a5364eb278165b00993483a10/appveyor.yml.
I suppose githubs secret functionality should be used instead of putting the key there in plain text.
I would like to use this library on a project, but no clear license was published here on github. On nuget.org I found a MIT license. This ambiguous situation makes it a little difficult to decide whether to use the library or not. Would it possible to add a license file here on github?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.