17#ifndef included_Retro_RethBuf
18#define included_Retro_RethBuf 1
29 typedef std::shared_ptr<RethBuf>
pbuf_t;
39 uint16_t
Size()
const;
42 const uint8_t*
Buf8()
const;
43 const uint16_t*
Buf16()
const;
44 const uint32_t*
Buf32()
const;
55 uint16_t
Type()
const;
60 ssize_t
Write(
int fd)
const;
64 void Dump(std::ostream& os,
int ind=0,
const char* text=0,
void SetTime()
FIXME_docs.
ssize_t Read(int fd)
FIXME_docs.
bool IsMcast() const
FIXME_docs.
static const size_t kCrcSize
size of ethernet CRC
static const size_t kMinSize
min ethernet frame size
bool IsBcast() const
FIXME_docs.
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
static const size_t kWOffTyp
offset type in 16 bit wrds
RethBuf()
Default constructor.
void SetMacSource(uint64_t mac)
FIXME_docs.
const uint8_t * Buf8() const
FIXME_docs.
uint8_t fBuf[kMaxSize+kCrcSize]
void SetMacDestination(uint64_t mac)
FIXME_docs.
uint64_t MacDestination() const
FIXME_docs.
uint64_t MacSource() const
FIXME_docs.
static const size_t kWOffDstMac
offset dst mac in 16 bit wrds
static const size_t kWOffSrcMac
offset src mac in 16 bit wrds
static const size_t kMaxSize
max ethernet frame size
const uint16_t * Buf16() const
FIXME_docs.
std::shared_ptr< RethBuf > pbuf_t
std::string FrameInfo() const
FIXME_docs.
void SetSize(uint16_t size)
FIXME_docs.
uint16_t Size() const
FIXME_docs.
const uint32_t * Buf32() const
FIXME_docs.
ssize_t Write(int fd) const
FIXME_docs.
uint16_t Type() const
FIXME_docs.
const Rtime & Time() const
FIXME_docs.
Declaration of class ReventLoop.