-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Added Graphviz integration to Explorer - Updated IDT * - WIP * - WIP
- Loading branch information
Showing
19 changed files
with
493 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) MOSA Project. Licensed under the New BSD License. | ||
|
||
namespace Mosa.DeviceSystem; | ||
|
||
/// <summary> | ||
/// IP Address | ||
/// </summary> | ||
public struct IPAddress | ||
{ | ||
public static readonly IPAddress Default = new IPAddress(0, 0, 0, 0); | ||
public static readonly IPAddress Local = new IPAddress(127, 0, 0, 1); | ||
|
||
private readonly uint address; | ||
|
||
public readonly byte A => (byte)address; | ||
|
||
public readonly byte B => (byte)(address >> 8); | ||
|
||
public readonly byte C => (byte)(address >> 16); | ||
|
||
public readonly byte D => (byte)(address >> 24); | ||
|
||
public IPAddress(IPAddress ipAddress) => address = ipAddress.address; | ||
|
||
public IPAddress(byte a, byte b, byte c, byte d) => address = a | ((uint)b << 8) | ((uint)c << 16) | ((uint)d << 24); | ||
|
||
public override readonly string ToString() => $"{A}.{B}.{C}.{D}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.