Layer 3 is ARP. More...
Classes | |
| struct | Header |
| ARP header. More... | |
Enumerations | |
| enum | Opcode { Opcode::Reserved = 0x0000, Opcode::Request = 0x0100, Opcode::Reply = 0x0200 } |
Functions | |
| Opcode | get_opcode (const Header *header) |
| Extract the Opcode from the ARP packet. More... | |
| const Header * | get_header (const uint8_t *ptr) |
| Get the layer 3 ARP header. More... | |
| const Header * | get_header (const L2::Header *l2) |
| Get the layer 3 ARP header. More... | |
| bool | is_request (const Opcode &opcode) |
| Determine if the ARP packet represents a request or a reply. More... | |
| bool | is_reply (const Opcode &opcode) |
| Determine if the ARP packet represents a request or a reply. More... | |
| bool | is_request (const Header *header) |
| Determine if the ARP packet represents a request or a reply. More... | |
| bool | is_reply (const Header *header) |
| Determine if the ARP packet represents a request or a reply. More... | |
Layer 3 is ARP.
|
strong |
| Enumerator | |
|---|---|
| Reserved |
RFC 5494. |
| Request |
Host 0x0001, net 0x0100, RFC 826, RFC 5227. |
| Reply |
Host 0x0002, net 0x0200, RFC 826, RFC 1868, RFC 5227. |
|
inline |
Get the layer 3 ARP header.

|
inline |
Get the layer 3 ARP header.

|
inline |
Extract the Opcode from the ARP packet.

|
inline |
Determine if the ARP packet represents a request or a reply.

|
inline |
Determine if the ARP packet represents a request or a reply.

|
inline |
Determine if the ARP packet represents a request or a reply.

|
inline |
Determine if the ARP packet represents a request or a reply.
