Remove unnesessary usings
This commit is contained in:
parent
912945a142
commit
3fb36213b4
16 changed files with 28 additions and 64 deletions
16
src/IPMeow.Dhcp/AddressTable.cs
Normal file
16
src/IPMeow.Dhcp/AddressTable.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using System.Net;
|
||||||
|
|
||||||
|
namespace IPMeow.Dhcp;
|
||||||
|
|
||||||
|
public class AddressTable
|
||||||
|
{
|
||||||
|
public IPAddress GetFor(string host)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public IPAddress Next()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,3 @@
|
||||||
using IPMeow.Dhcp.Server;
|
|
||||||
using IPMeow.Dhcp.Server.Dhcp4;
|
using IPMeow.Dhcp.Server.Dhcp4;
|
||||||
|
|
||||||
namespace IPMeow.Dhcp
|
namespace IPMeow.Dhcp
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.NetworkInformation;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IPMeow.Lib;
|
using IPMeow.Lib;
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp4;
|
namespace IPMeow.Dhcp.Server.Dhcp4;
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp4;
|
namespace IPMeow.Dhcp.Server.Dhcp4;
|
||||||
|
|
||||||
|
@ -41,8 +37,6 @@ public class DhcpServer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Console.WriteLine("Solicitation: ");
|
Console.WriteLine("Solicitation: ");
|
||||||
Console.WriteLine(packet.ToString());
|
Console.WriteLine(packet.ToString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
public readonly struct AddressAssociation
|
public readonly struct AddressAssociation
|
||||||
{
|
{
|
|
@ -1,8 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
public enum DhcpMessageType : byte
|
public enum DhcpMessageType : byte
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IPMeow.Lib;
|
using IPMeow.Lib;
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IPMeow.Dhcp.Server.Dhcp4;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
|
@ -30,7 +26,7 @@ public struct DhcpStatus
|
||||||
public ushort Code { get; set; }
|
public ushort Code { get; set; }
|
||||||
public string? Message { get; set; }
|
public string? Message { get; set; }
|
||||||
|
|
||||||
public byte[] Serialize()
|
public readonly byte[] Serialize()
|
||||||
{
|
{
|
||||||
byte[] buf = new byte[2 + Message?.Length ?? 0];
|
byte[] buf = new byte[2 + Message?.Length ?? 0];
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
public enum DuidType : short
|
public enum DuidType : short
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server.Dhcp6;
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
public struct IdentityAssociation
|
public readonly struct IdentityAssociation
|
||||||
{
|
{
|
||||||
public int IAId { get; }
|
public int IAId { get; }
|
||||||
public int TimeToRefresh { get; }
|
public int TimeToRefresh { get; }
|
||||||
|
|
9
src/IPMeow.Dhcp/Server/Dhcp6/StateMonitor.cs
Normal file
9
src/IPMeow.Dhcp/Server/Dhcp6/StateMonitor.cs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
namespace IPMeow.Dhcp.Server.Dhcp6;
|
||||||
|
|
||||||
|
public class StateMonitor
|
||||||
|
{
|
||||||
|
public bool IsAssigned(int xid)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Dhcp.Server;
|
namespace IPMeow.Dhcp.Server;
|
||||||
|
|
||||||
public interface IDhcpServer
|
public interface IDhcpServer
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace IPMeow.Server.Provider;
|
namespace IPMeow.Server.Provider;
|
||||||
|
|
||||||
public interface IAddressProvider
|
public interface IAddressProvider
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
using Microsoft.AspNetCore.Components.Web;
|
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
builder.Services.AddRazorPages();
|
builder.Services.AddRazorPages();
|
||||||
|
|
Loading…
Reference in a new issue