MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / ARPHeader

Class ARPHeader

Kernel/include/net/net.h:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93} __attribute__((packed));
94
95struct ARPHeader {
96 BigEndianUInt16 hwType; // Hardware Type
97 BigEndianUInt16 prType; // Protocol Type
98 uint8_t hLength = 6; // Hardware Address Length
99 uint8_t pLength = 4; // Protocol Address Length
100 BigEndianUInt16 opcode; // ARP Operation Code
101 MACAddress srcHwAddr; // Source hardware address
102 IPv4Address srcPrAddr; // Source protocol address
103 MACAddress destHwAddr; // Destination hardware address
104 IPv4Address destPrAddr; // Destination protocol address
105} __attribute__((packed));
106
107struct UDPHeader {
108 BigEndianUInt16 srcPort;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected