MoonState
include
mbuf.hpp
Go to the documentation of this file.
1
#ifndef MBUF_HPP
2
#define MBUF_HPP
3
4
#include <cstdint>
5
#include <rte_mbuf.h>
6
9
struct
mbuf
:
public
rte_mbuf {
10
void
*
getData
() {
return
rte_pktmbuf_mtod(
this
,
void
*); }
11
uint16_t
getDataLen
() {
return
this->data_len; };
12
void
setDataLen
(uint16_t l) { this->data_len = l; };
13
uint16_t
getBufLen
() {
return
this->buf_len; }
14
};
15
16
#endif
/* MBUF_HPP */
mbuf::getDataLen
uint16_t getDataLen()
Definition:
mbuf.hpp:11
mbuf::getBufLen
uint16_t getBufLen()
Definition:
mbuf.hpp:13
mbuf::setDataLen
void setDataLen(uint16_t l)
Definition:
mbuf.hpp:12
mbuf
Wrapper aroung DPDK rte_mbuf.
Definition:
mbuf.hpp:9
mbuf::getData
void * getData()
Definition:
mbuf.hpp:10
Generated by
1.8.14