mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
🎉Implemented networking🎉
This commit is contained in:
27
include/net/ipv6.hpp
Normal file
27
include/net/ipv6.hpp
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef __FENNIX_KERNEL_IPv6_H__
|
||||
#define __FENNIX_KERNEL_IPv6_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
namespace NetworkIPv6
|
||||
{
|
||||
struct IPv6Header
|
||||
{
|
||||
uint32_t Version;
|
||||
uint8_t TrafficClass;
|
||||
uint16_t FlowLabel;
|
||||
uint16_t PayloadLength;
|
||||
uint8_t NextHeader;
|
||||
uint8_t HopLimit;
|
||||
uint32_t SourceIP;
|
||||
uint32_t DestinationIP;
|
||||
};
|
||||
|
||||
struct IPv6Packet
|
||||
{
|
||||
IPv6Header Header;
|
||||
uint8_t Data[];
|
||||
};
|
||||
}
|
||||
|
||||
#endif // !__FENNIX_KERNEL_IPv6_H__
|
Reference in New Issue
Block a user