Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Marschall-dev/DhcpDotNet in…
Browse files Browse the repository at this point in the history
…to main
  • Loading branch information
maxlluky committed Dec 5, 2020
2 parents edb8768 + 84df5c5 commit 8ab074c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
</a>

# DhcpDotNet
DHCP packet implemented with C#. Build DHCP-packages with nearly all possibilities.
DhcpDotNet allows the programming of a DHCP server or client with full controll.
DHCPv4 packet implemented with C#. Build DHCPv4-packages with nearly all possibilities.
DhcpDotNet allows the programming of a DHCPv4 server or client with full controll.

- Build DHCP Packets
- Sending DHCP Packets (via UdpClient, Socket (advanced: sharppcap or Pcap.Net)
- Receiving DHCP Packets (see sending)
- Parse incoming DHCP Packets
- Build DHCPv4 Packets
- Sending DHCPv4 Packets (via UdpClient, Socket (advanced: sharppcap or Pcap.Net)
- Receiving DHCPv4 Packets (see sending)
- Parse incoming DHCPv4 Packets
- Read parsed Packets

## Become a contributor
Expand Down Expand Up @@ -128,7 +128,7 @@ See the <a href="/DhcpDotNet/Examples/">Examples</a> folder for a range of examp
A DHCPv4 server under C# will soon appear under the name DhcpSharp

## Usage
Example of a DHCP Discover package. The payload can be sent with a UdpClient or socket.
Example of a DHCPv4 Discover package. The payload can be sent with a UdpClient or socket.
```csharp
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
IPAddress serverAddr = IPAddress.Parse("192.168.2.1");
Expand All @@ -155,19 +155,23 @@ Please take a look at the DhcpSharp-Project for detailed information.
## NuGet
Package Manager
```
PM> Install-Package DhcpDotNet -Version 2.0.1
PM> Install-Package DhcpDotNet -Version 2.0.2
```

.NET CLI
```
> dotnet add package DhcpDotNet --version 2.0.1
> dotnet add package DhcpDotNet --version 2.0.2
```
<a href="https://www.nuget.org/packages/DhcpDotNet/">NuGet-Page</a>

## Latest Version and Changelog
Version: 2.0.1
Version: 2.0.2

```
V 2.0.2
- Renamed class and methods with "v4". Dhcp with IPv6 comming soon...
V. 2.0.1
- Added dhcpOption parsing support. DhcpDotNet is now able to parse incoming DhcpPackets and their DhcpOptions. You can read each DhcpOption cotained in a DhcpPacket. This allows you to read all information provided by the options above listed.
- Renamed DhcpPacket-Bytes. Each byte or byte-array in a DhcpPacket is now named as in the RFC 2132.
- Added the possibility to define DhcpOptions with an enmu or single byte. This offers more flexibility and simplicity at the same time.
Expand Down

0 comments on commit 8ab074c

Please sign in to comment.