mOS API description
|
struct pkt_info is the struct that is actually exposed to the monitor application. More...
#include <mos_api.h>
Data Fields | |
uint32_t | cur_ts |
packet receiving time (read-only:ro) More... | |
uint16_t | eth_len |
uint16_t | ip_len |
uint64_t | offset |
TCP ring buffer offset. More... | |
uint16_t | payloadlen |
uint32_t | seq |
uint32_t | ack_seq |
uint16_t | window |
struct ethhdr * | ethh |
struct iphdr * | iph |
struct tcphdr * | tcph |
uint8_t * | payload |
struct pkt_info is the struct that is actually exposed to the monitor application.
NOTE: When you retrieve the packet information using mtcp_getlastpkt() via MOS_SOCK_MONITOR_RAW socket, you can only use up to L3 information. (cur_ts, eth_len, ip_len, ethh, iph)
uint32_t pkt_info::ack_seq |
uint32_t pkt_info::cur_ts |
packet receiving time (read-only:ro)
uint16_t pkt_info::eth_len |
struct ethhdr* pkt_info::ethh |
uint16_t pkt_info::ip_len |
struct iphdr* pkt_info::iph |
uint64_t pkt_info::offset |
TCP ring buffer offset.
uint8_t* pkt_info::payload |
uint16_t pkt_info::payloadlen |
uint32_t pkt_info::seq |
struct tcphdr* pkt_info::tcph |
uint16_t pkt_info::window |