Sponge
CS144's user-space TCP library
|
Ethernet frame. More...
#include <ethernet_frame.hh>
Public Member Functions | |
ParseResult | parse (const Buffer buffer) |
Parse the frame from a string. More... | |
BufferList | serialize () const |
Serialize the frame to a string. More... | |
Accessors | |
const EthernetHeader & | header () const |
EthernetHeader & | header () |
const BufferList & | payload () const |
BufferList & | payload () |
Private Attributes | |
EthernetHeader | _header {} |
BufferList | _payload {} |
Ethernet frame.
Definition at line 8 of file ethernet_frame.hh.
|
inline |
Definition at line 23 of file ethernet_frame.hh.
|
inline |
Definition at line 22 of file ethernet_frame.hh.
ParseResult EthernetFrame::parse | ( | const Buffer | buffer | ) |
Parse the frame from a string.
Definition at line 11 of file ethernet_frame.cc.
|
inline |
Definition at line 26 of file ethernet_frame.hh.
|
inline |
Definition at line 25 of file ethernet_frame.hh.
BufferList EthernetFrame::serialize | ( | ) | const |
Serialize the frame to a string.
Definition at line 19 of file ethernet_frame.cc.
|
private |
Definition at line 10 of file ethernet_frame.hh.
|
private |
Definition at line 11 of file ethernet_frame.hh.